Get A String From An Array In VSL

From Virtools Wiki

Jump to: navigation, search


From kmemarzia of the forum.

  
   String tmp;
   int lengthToRead;
     
   lengthToRead = myarray.GetElementStringValue(i, 0, null); //Get  the length of the String to read.
   tmp.Resize(lengthToRead-1); //set the length of String
   myarray.GetElementStringValue(i, 0, tmp.Str()); //Get the actual String content

Personal tools
The Swap-Meet