Re: [fpc-pascal] fpc + linux, problem with VarArrayCreate, variant

2006-04-23 Thread Flávio Etrusco
You can simplify the use-case a lot: simply trying to assign any value to a Variant after it's been assigned an array throws an exception. It seems one is not allowed to reassign a Variant which was already initialized to a VarArray - which IMHO is a good thing ;-) Variable reuse should have a capi

[fpc-pascal] fpc + linux, problem with VarArrayCreate, variant

2006-04-21 Thread Ryszard Kadow
helllo!     Variable V is variant type, in first step V must be  array type (V := VarArrayCreate)in second step type varBYte.   In delphi and lazarus everything is ok.   in  fpc 2.0.2 (linux) program show  error  EVariantInvalidOpError.   See example below.   where is error?   ==