Advertisement
Guest User

Untitled

a guest
May 23rd, 2017
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Function fDataTypeString( intDataType ) As String
  2.     Dim strDataTypes( 35 ) As String
  3.     Dim strBuildDataType As String
  4.        
  5.     fDataTypeString = ""
  6.        
  7.     ' &h0 to &hE
  8.     strDataTypes( 0 ) = "EMPTY"
  9.     strDataTypes( 1 ) = "NULL"
  10.     strDataTypes( 2 ) = "Integer"
  11.     strDataTypes( 3 ) = "Long"
  12.     strDataTypes( 4 ) = "Single"
  13.     strDataTypes( 5 ) = "Double"
  14.     strDataTypes( 6 ) = "Currency"
  15.     strDataTypes( 7 ) = "Date/Time"
  16.     strDataTypes( 8 ) = "String"
  17.     strDataTypes( 9 ) = "Dispatch (OLE object or NOTHING)"
  18.     strDataTypes( 10 ) = "OLE error"
  19.     strDataTypes( 11 ) = "Boolean"
  20.     strDataTypes( 12 ) = "Variant list or array"
  21.     strDataTypes( 13 ) = "IUNKNOWN (OLE value)"
  22.     strDataTypes( 14 ) = "Decimal (12 byte fixed point number)"
  23.    
  24.     ' &h10
  25.     strDataTypes( 17 ) = "Byte"
  26.  
  27.     ' &h20 to &h23
  28.     strDataTypes( 32 ) = " LotusScript client adt handle"
  29.     strDataTypes( 33 ) = "LotusScript TYPE instance"
  30.     strDataTypes( 34 ) = "User-defined object"
  31.     strDataTypes( 35 ) = "Product object"
  32.    
  33.     If intDataType > V_BYREF Then strBuildDataType = " + By Reference" : intDataType = intDataType - V_BYREF
  34.     If intDataType > V_ARRAY Then strBuildDataType = " + Array" + strBuildDataType : intDataType = intDataType - V_ARRAY
  35.     If intDataType > V_LIST Then strBuildDataType = " + List" + strBuildDataType : intDataType = intDataType - V_LIST
  36.     If intDataType > V_DYNAMIC Then strBuildDataType = " + Dynamic" + strBuildDataType : intDataType = intDataType - V_DYNAMIC
  37.     strBuildDataType = strDataTypes( intDataType ) + strBuildDataType
  38.  
  39.     fDataTypeString = strBuildDataType
  40.        
  41. End Function
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement