PDA

View Full Version : converting system.strings to mxs strings


Hobbs
10-20-2008, 10:04 PM
is there an easy way to convert a .net string to a mxs string without doing a


local mxsString = ""
for x= 0 to Netstring.length do
append mxsString Netstring.chars[x]

?

ZeBoxx2
10-20-2008, 10:46 PM
I'm not sure if the string object you're using is System.String - but regardless, I'm going to guess that the generic <object>.toString() will do the trick. It does for System.String.

Hobbs
10-20-2008, 11:02 PM
yep, i was using system.string, and the .ToString call worked prefectly, thanks.

CGTalk Moderation
10-20-2008, 11:02 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.