TypeName Function; VarType Function

αžαŸ’αžšαž‘αž”αŸ‹β€‹αžαŸ’αžŸαŸ‚β€‹αž’αž€αŸ’αžŸαžšβ€‹αž˜αž½αž™ (TypeName) αž¬β€‹αžαž˜αŸ’αž›αŸƒβ€‹αž‡αžΆβ€‹αž›αŸαž (VarType) αžŠαŸ‚αž›β€‹αž˜αžΆαž“β€‹αž–αŸαžαŸŒαž˜αžΆαž“β€‹αžŸαž˜αŸ’αžšαžΆαž”αŸ‹β€‹αž’αžαŸαžšβ€‹αž˜αž½αž™Β αŸ”

αžœαžΆαž€αŸ’αž™β€‹αžŸαž˜αŸ’αž–αž“αŸ’αž’ αŸ–


TypeName (Variable) / VarType (Variable)

αžαž˜αŸ’αž›αŸƒβ€‹αžαŸ’αžšαž‘αž”αŸ‹ αŸ–

αžαŸ’αžŸαŸ‚β€‹αž’αž€αŸ’αžŸαžš αž…αŸ†αž“αž½αž“β€‹αž‚αžαŸ‹

αž”αŸ‰αžΆαžšαŸ‰αžΆαž˜αŸ‰αŸ‚αžαŸ’αžš αŸ–

Variable αŸ– αž’αžαŸαžšβ€‹αžŠαŸ‚αž›β€‹αž’αŸ’αž“αž€β€‹αž…αž„αŸ‹β€‹αž€αŸ†αžŽαžαŸ‹β€‹αž”αŸ’αžšαž—αŸαž‘Β αŸ” αž’αŸ’αž“αž€β€‹αž’αžΆαž…β€‹αž”αŸ’αžšαžΎβ€‹αžαž˜αŸ’αž›αŸƒβ€‹αžŠαžΌαž…β€‹αžαžΆαž„β€‹αž€αŸ’αžšαŸ„αž˜ αŸ–

αž–αžΆαž€αŸ’αž™β€‹αž‚αž“αŸ’αž›αžΉαŸ‡

Named constant

VarType

αž”αŸ’αžšαž—αŸαž‘β€‹αž’αžαŸαžš

Boolean

11

αž’αžαŸαžšβ€‹αž”αŸŠαžΌαž›αžΈαž“

Byte

17

Byte variable

Date

V_DATE

7

αž’αžαŸαžšβ€‹αž€αžΆαž›β€‹αž”αžšαž·αž…αŸ’αž†αŸαž‘

Currency

V_CURRENCY

6

Currency variable

Double

V_DOUBLE

5

αž’αžαŸαžšβ€‹αž‘αžŸαž—αžΆαž‚β€‹αž‘αŸ’αžœαŸ

Integer

V_INTEGER

2

αž’αžαŸαžšβ€‹αž…αŸ†αž“αž½αž“β€‹αž‚αžαŸ‹

Long

V_LONG

3

αž’αžαŸαžšβ€‹αž…αŸ†αž“αž½αž“β€‹αž‚αžαŸ‹β€‹αž’αŸ†

Object

9

αž’αžαŸαžšβ€‹αžœαžαŸ’αžαž»

Single

V_SINGLE

4

αž’αžαŸαžšβ€‹αž‘αžŸαž—αžΆαž‚β€‹αžαŸ‚β€‹αž˜αž½αž™

String

V_STRING

8

αž’αžαŸαžšβ€‹αžαŸ’αžŸαŸ‚β€‹αž’αž€αŸ’αžŸαžš

Variant

12

αž’αžαŸαžšβ€‹αžœαŸ‰αžΆαžšαŸ’αž™αž„αŸ‹ (αž’αžΆαž…β€‹αž˜αžΆαž“β€‹αž”αŸ’αžšαž—αŸαž‘β€‹αž‘αžΆαŸ†αž„αž’αžŸαŸ‹ αžŠαŸ‚αž›β€‹αž”αžΆαž“β€‹αž”αž‰αŸ’αž‡αžΆαž€αŸ‹β€‹β€‹αžŠαŸ„αž™β€‹αž€αžΆαžšβ€‹αž€αŸ†αžŽαžαŸ‹β€‹)

Empty

V_EMPTY

0

αž’αžαŸαžšβ€‹αž˜αž·αž“β€‹αžαŸ’αžšαžΌαžœβ€‹αž”αžΆαž“β€‹αž•αŸ’αžαž›αŸ‹β€‹αžαž˜αŸ’αž›αŸƒβ€‹αž…αžΆαž”αŸ‹αž•αŸ’αžαžΎαž˜

Null

V_NULL

1

αž‚αŸ’αž˜αžΆαž“β€‹αž‘αž·αž“αŸ’αž“αž“αŸαž™β€‹αžαŸ’αžšαžΉαž˜αžαŸ’αžšαžΌαžœ


Error codes:

5 αž€αžΆαžšβ€‹αž αŸ…β€‹αž”αŸ‚αž”αž”αž‘β€‹αž˜αž·αž“β€‹αžαŸ’αžšαžΉαž˜αžαŸ’αžšαžΌαžœ

αž§αž‘αžΆαž αžšαžŽαŸ αŸ–


Sub ExampleType
Dim iVar As Integer
Dim sVar As String
Dim siVar As Single
Dim dVar As Double
Dim bVar As Boolean
Dim lVar As Long
Dim cVar as Currency
Dim tVar as Date
 MsgBox TypeName(iVar) & " " & VarType(iVar) & Chr(13) &_
 TypeName(sVar) & " " & VarType(sVar) & Chr(13) &_
 TypeName(siVar) & " " & VarType(siVar) & Chr(13) &_
 TypeName(dVar) & " " & VarType(dVar) & Chr(13) &_
 TypeName(bVar) & " " & VarType(bVar) & Chr(13) &_
 TypeName(cVar) & " " & VarType(cVar) & Chr(13) &_
 TypeName(tVar) & " " & VarType(tVar) & Chr(13) &_
 TypeName(lVar) & " " & VarType(lVar),0,"Some types in LibreOffice Basic"
End Sub

Please support us!