Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

variable length declaration in string type

Former Member
0 Likes
7,875

hi all

can anyone tell me how to declare length for string type of variables

7 REPLIES 7
Read only

Former Member
0 Likes
2,567

Hi,

Data str(20) type c.

Hope this helps.

Read only

anversha_s
Active Contributor
0 Likes
2,567

hi,

data: string(100) type c.

rgds

anver

Read only

Former Member
0 Likes
2,567

data : lstr type str.

Read only

gopi_narendra
Active Contributor
0 Likes
2,567

data : str type srting.

Read only

Former Member
0 Likes
2,567

hi,

data:string(20).

regards,

sudha

Read only

Former Member
0 Likes
2,567

data : v1 type string.

this itself is a sequence of characters. no need to define explicit length for STRING data type.

alternatively,

data : v1(100) type C.

this also you can use.

Regards

Srikanth

Read only

0 Likes
2,567

Hi,

The length of a string is not static but variable and adjusts itself to the current field content at runtime. Dynamic memory management is used internally. Strings can have any length. The initial value of a string is an empty string with length 0.

Hope this will make you clear. Please reward if answer satisfy you !!!

Regards,

Jignesh