Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21271

[RESOLVED] Question for Unicode Gurus about Rtrim$

$
0
0
I need to save unicode font names and paths to disk for reloading and need to do so in fixed length strings.

If I pad the string with spaces after strconv(Name,vbunicode) then on reload, I trim, check the length and add back a chr$(32) if it’s an odd number. It works fine but it does mean that I will lose a Unicode character that is composed of two Chr$(32)s.

Does such a character exist?


If I pad the sting before converting to Unicode, I would avoid this problem but I don’t know if rtrim$ works on the Unicode string.

Any advice appreciated!

Viewing all articles
Browse latest Browse all 21271

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>