On 1/18/07, Ryan Pusztai <[EMAIL PROTECTED]> wrote: > I have tried to use wxString in a wxLua script and I can't get it to work. > Is there a special way to create the variable. Here is an example of what I > tried so far. > > filename = wx.wxString( "Test String" ) > if ( not filename:IsEmpty() ) then > print( "Cancel was pressed" ) > else > print( filename ) > end >
wxString is not used in wxLua. Someone had asked that it be added for some special purpose so you can create it and get the string back from it, but lua strings are used exclusively. This means that any functions that takes or returns a wxString uses a lua string. You can use the lua string.XXX functions to get most of what wxString offers and it should work faster since it doesn't have to convert it in the case where you've build wxWidgets for unicode. http://wxlua.sourceforge.net/docs/wxluaref.html#wxString Regards, John Labenski ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ wxlua-users mailing list wxlua-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxlua-users