Prikazi cijelu temu 19.02.2015-21:50
zxz Offline
Administrator
Registrovan/a od: 03.02.2009-16:22
Lokacija: Tuzla


Subject: Kako iscitati tip variable
Jeste li koristili komandu VarType.
Vjerovatno niste ali mozda vam nekada zatreba.
DownloadIzvorni kod (Visual Basic):
  1. Function TipVar()
  2. Dim MojaVar As Double
  3. Dim DrugaVar As String
  4.  
  5. DrugaVar = VarType(MojaVar)
  6. End Functio

Tipovi varijabli i kodovi:
vb nazivsifraopis
vbEmpty Empty (uninitialized)
vbNull1Null (no valid data)
vbInteger2Integer
vbLong3Long integer
vbSingle4Single-precision floating-point number
vbDouble5Double-precision floating-point number
vbCurrency6Currency value
vbDate7Date value
vbString8String
vbObject9Object
vbError10Error value
vbBoolean11Boolean value
vbVariant12Variant (used only with arrays of variants)
vbDataObject13A data access object
vbDecimal14Decimal value
vbByte17Byte value
vbArray8192Array

Pozdrav