removing trailing ascii(0)

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
rullbandspelare
Pro Scripter
Posts: 149
Joined: Tue Mar 23, 2004 9:11 pm

removing trailing ascii(0)

Post by rullbandspelare » Mon Mar 17, 2008 11:27 am

I have a ini file that has trailing ASCII(0)
And the result is that readinifile cant read beyond the first occurance of ASCII(0)

I have tried to readLN and stringreplace on the file. But how do I remova a ascii(0)?

Any ideas?
Thanks!

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Mon Mar 17, 2008 11:41 am

0 is a null char. It normally marks the end of a string.

But, you could try:

VBSTART
VBEND
VBEval>CHR(0),NullChar

StringReplace>text,NullChar,,text
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts