[JW Lua] enigmaStrings:CreateString()

Jari Williamsson jari.williamsson at mailbox.swipnet.se
Sun Nov 30 11:16:56 CET 2014


Bruce,

You're correct. Nowadays, always use the parameters if they are found in 
the docs (default parameters are just for C++, and I try to gradually 
not depend on them in my C++ code to make the interface to Lua better). 
In this case, CreateString(nil) would also work for the FCStrings object.


Best regards,

Jari Williamsson


On 2014-11-30 08:30, Bruce Olson wrote:
> Hi Jari,
>
> While browsing the archives I found a reply to Charles where you said in
> part:
> "After browsing the string for tags, you can transform your "enigmaStrings"
> string collection back to a full string with "resultstr =
> enigmaStrings:CreateString()"."
>
> I wanted to create PageText using the default text font, but found that I
> needed to have an empty string as a parameter for CreateString(""). See the
> attached code for what I was trying to do.
>
> Best regards,
> Bruce
>
> P.S. Thanks to you and Charles for all the pointers regarding my trials with
> FCPageTexts table manipulations.
>
>
>
> _______________________________________________
> JWLua mailing list
> JWLua at jwmusic.nu
> http://jwmusic.nu/mailman/listinfo/jwlua_jwmusic.nu
>






More information about the JWLua mailing list