http://www.newton-inc.com/dev/techinfo/qa/qa.htm
'string
. Next, you need to use the global function BinaryMunger
to munge an empty string into the VBO. This will properly prepare the binary object to be used as a NewtonScript string.StrMunger
as often as needed to copy new string data into the VBO. Here is a code example:// Prepare a VBO to be the string
local myString := GetDefaultStore():NewVBO( 'string, Length("") );
BinaryMunger( myString, 0, nil, "", 0, nil );
StrMunger( myString, StrLen( myString ), nil, "My new string", 0, nil );
// Repeat with more data if necessary...
stdio
library function, the NewtonScript StrLen
function does not need to traverse the string to determine the string length, so you probably don't need to worry about performance hits from its usage.Stringer
global function or the & or && operators, the result is currently a non-VBO string. Be aware that if you accidentally create a very large non-VBO string, the code may throw a "out of NewtonScript heap memory" evt.ex.outofmem
exception.