Variant

Delphi

19/02/2003

Pessoal,

Como é que eu faço para saber o tipo de dado que uma variant assumiu?

Abraço,
Carlos.


Anonymous

Anonymous

Curtidas 0

Respostas

Carnette

Carnette

19/02/2003

experimenta comparar com este TIPOS




varEmptyThe Variant is Unassigned.
varNullThe Variant is Null.
varSmallint16-bit signed integer (type Smallint).
varInteger32-bit signed integer (type Integer).
varSingleSingle-precision floating-point value (type Single).
varDoubleDouble-precision floating-point value (type Double).
varCurrencyCurrency floating-point value (type Currency).
varDateDate and time value (type TDateTime).
varOleStrReference to a dynamically allocated UNICODE string.

varDispatchReference to an Automation object (an IDispatch interface pointer).
varErrorOperating system error code.
varBoolean16-bit boolean (type WordBool).
varVariantA Variant.
varUnknownReference to an unknown OLE object (an IUnknown interface pointer).
varByteA Byte
varStrArgCOM-compatible string.
varStringReference to a dynamically allocated string. (not COM compatible)
varAnyA CORBA Any value.


GOSTEI 0
POSTAR