' Collection of code snippets by Arne Vajhøj 
' (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) 
Function int2str(v As Integer) As String
   Dim digit
   digit = Array("0", "1", "2", "3", "4", "5", "6", "7", "8", "9")
   Dim res As String
   res = ""
   Dim v2 As Integer
   v2 = v
   While (v2 > 0)
       res = digit(v2 Mod 10) + res
       v2 = v2 / 10
   Wend
   int2str = res
End Function

Function testint2str()
   MsgBox int2str(1234)
End Function
