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

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

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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

STRING - Character sequence.

XSTRING - Hexadecimal Code

Lengths are adjusted directly at runtime.

Former Member
0 Kudos

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

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

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

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