With VBA, VB6, you can simply declare a byte array and assign it a string value, and it will be converted for you. Then you can just iterate over it like a regular array.
eg.
Dim b() as byte
Dim iter As Long
b = CStr(Nz(fld.value, ""))
For iter = 0 To UBound(b)
if b(iter) > 127 then
addlog "Export contains ascii character > 127"
end if
next
source
share