The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information....



ConvertVariant


Unit:SDL_stringl
Class: none
Declaration: function ConvertVariant (const val: variant): string;

The function ConvertVariant converts the variant value val into a string. Depending on the type of the value the returned string is generated using the one of the following conversion routines:

Type of Variant Conversion Routine
double, single strff (val,12,-2)
integer, uint64, int64, byte,
word, smallint, longword, shortint
IntToStr (val)
boolean BoolToStr (val,0)
string, ustring (unchanged)

If the variant value contains an array of 1 to 3 dimensions, the first N elements are displayed (N depends on the number of dimensions: first dimension N=12, second dimension N=10, third dimension N=3).


Last Update: 2023-Feb-06