[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 ?)
[Thread Prev] | [Thread Next]
- Subject: Any easy way to change a string ? and a bug (or maybe a feature ?)
- From: Laurent Carlier <lordheavym@xxxxxxxxx>
- Date: Mon, 14 Oct 2024 17:19:41 +0200
- To: user@xxxxxxxxxxxxxxxxxxxxxx
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.
Re: Any easy way to change a string ? and a bug (or maybe a feature ?) | Benoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx> |
Re: Any easy way to change a string ? and a bug (or maybe a feature ?) | Tim Dickson <dickson.tim@xxxxxxxxxxxxxx> |
Re: Any easy way to change a string ? and a bug (or maybe a feature ?) | Gianluigi <gradobag@xxxxxxxxxxx> |
Re: Any easy way to change a string ? and a bug (or maybe a feature ?) | Brian G <brian@xxxxxxxxxxxxxxxx> |