View Single Post
  #1  
Old 12-01-2006, 11:37 PM
Yen Yen is offline
Banned
Yen's Avatar
Join Date: Oct 2005
Location: Nova Scotia, Canada
Posts: 1,085
Yen is an unknown quantity at this point
Send a message via AIM to Yen Send a message via MSN to Yen
My "0" DOES exist! >=O

I'm angry at gscript right now.

I want to append a '0' taken as a substring to the end of a string, but gscript just won't let me. It seems to be converting the 0 to nothing, and adding nothing to the end of a string isn't really considered adding.

Basically..
PHP Code:
temp."0123456789";
temp."abc";
temp.@= temp.a.substring(0,1);
temp.@= temp.a.substring(1,1);
temp.@= temp.a.substring(2,1);
echo(
temp.b); 
The echo is 'abc12'
The 0 is converted to a NULL.

Can we get some functionality to read "0" as 0, instead of nothing? Or maybe a workaround?
Reply With Quote