Board index » delphi » Convert Variant array to string...

Convert Variant array to string...

VAR a: variant; s: string;
....
a := VarArrayOf(['454047','Morning st.', '30', '', '', '33']);
s := a;
At this breakpoint application create the exception(of EVariantError
class). Message is 'Invalid variant type conversion'. Please, say me
how can i get string value from this variable "a".
 

Re:Convert Variant array to string...


On 11 Jan 2002 00:41:50 -0800, Tony wrote:
By Index s := a[0] + a[1] ... etc
Quote
>VAR a: variant; s: string;
>....
>a := VarArrayOf(['454047','Morning st.', '30', '', '', '33']);
>s := a;
>At this breakpoint application create the exception(of EVariantError
>class). Message is 'Invalid variant type conversion'. Please, say me
>how can i get string value from this variable "a".

Other Threads