Application Development 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: 

What is the difference between the data types "STRING" and "XSTRING"?

Former Member
0 Kudos
7,778

What is the difference between the data types "STRING" and "XSTRING"?

1 ACCEPTED SOLUTION

Former Member
0 Kudos
1,743

The elementary data type STRING is similar to data type C and refers to a variable-length string. Accordingly, the elementary data type XSTRING is similar to data type X and refers to a variable-length byte sequence.

5 REPLIES 5

Former Member
1,743

STRING - Character sequence.

XSTRING - Hexadecimal Code

Lengths are adjusted directly at runtime.

Former Member
0 Kudos
1,743

Hi,

STRING is of text type which holds characters.

XSTRING is a of byte type which holds values of hexadecimal numbers.

Initial value of both the data types is empty.

Regards,

Sumalatha

Former Member
0 Kudos
1,744

The elementary data type STRING is similar to data type C and refers to a variable-length string. Accordingly, the elementary data type XSTRING is similar to data type X and refers to a variable-length byte sequence.

vaibhav_tiwari
Contributor
0 Kudos
1,743

Hi Suman,

String and XString both are used to contain unlimited amount of data but the difference is in the type of data they contain. String contains data in the form of string i.e. unlimited characters and XString contains data in form of bytes i.e. it is used to contain data from files and any other similar data source.

Regards,

Vaibhav Tiwari.

Former Member
0 Kudos
1,743

hi suman,

Actualy xstring recognize only the HEX values i.e 0 to 9 and A,B,C,D , E and F.

Instead of your string it is character sequence like 'BEA123BF' .

thanx

Sachin