[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Any easy way to change a string ? and a bug (or maybe a feature ?)


For example:

DIM myString as String ="RETUIOPLJBDNLQSXNKNSXKSXKBSKXKBBB"

I would like to change the 10th character, replacing it with another. I can't 
find an easy way to do it.

Is it a bug ?:

DIM myByte as Byte = &hFF&
DIM myString as String = "test string :"

myString &= CStr(myByte)

gives "test string :0\x00FF" instead of "test string :0\xFF", Byte is 
converted to a Short value, so unusual. As a workaround, i use chr$(myByte)

Regards,
Laurent Carlier

Attachment: signature.asc
Description: This is a digitally signed message part.