CPB Mailing List
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
re: Variants and arrays
> Is there some longer discussion of variants anywhere in the Builder
> documentation?
>
> Apparently I need a variant array in order to Locate a record by more
> than one field. And apparently variant arrays bear no resemblance to C
> arrays. They are declared, filled, and used in a Pascal like manner.
>
> I've looked at the example supplied in help under TVariant and managed to
> get 2 small portions of it to work for me.
I am not sure what you are talking about and I could not find anything about
TVariant, but there is a TVarRec in the help. In Pascal, I have often used
variant records (in C known as unions) to do bit ands and ors or to set fields
of a variable (known in Pascal as packing). FWIW -- Clifton
W Komornicki's Home Page |
Main Index |
Thread Index