View previous topic :: View next topic
|
Author |
Message |
nutakkimurali
New User
Joined: 15 Nov 2005 Posts: 22
|
|
|
|
Hi All,
I appriciate if any one answer my question.
Is it possible to Initialize the Pointer Variable to Blanks? If not please provide some sample code to how to achive this.
Regards,
Muralee |
|
Back to top |
|
|
hsourabh
New User
Joined: 24 May 2005 Posts: 12 Location: Z?rich
|
|
|
|
Hi Murali,
U can initialize a pointer variable as :
dcl ptr1 ptr init(sysnull());
This is equivalent to initializing a char string with blanks.
Regards,
Sourabh |
|
Back to top |
|
|
nutakkimurali
New User
Joined: 15 Nov 2005 Posts: 22
|
|
|
|
Thank you Sourabh |
|
Back to top |
|
|
nutakkimurali
New User
Joined: 15 Nov 2005 Posts: 22
|
|
|
|
Sourbh,
Still i feel that we can't initialize the pointer to blanks.my concern is always pointer represents some address in the memory and we can't blankout the memory.Plz correct me if i'm thinking in wrong way. |
|
Back to top |
|
|
|