All pastes #189760 Raw Edit

Anonymous

public text v1 · immutable
·published 2006-10-03 12:37 UTC
rendered paste body
Function StringToHex(str as String) as String
   dim x as long, hexchar as string
   for x = 1 to len(str)
      hexchar = hex$(asc(mid$(str, x, 1)))
      if len(hexchar) = 1 then hexchar = "0" & hexchar
      StringToHex = StringToHex & hexchar
   next x
End Function