Notifications
Clear all

[Closed] converting system.strings to mxs strings

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]
  

?

2 Replies

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.

yep, i was using system.string, and the .ToString call worked prefectly, thanks.