Hi,

Look at the following:

local s = "HELLO"
local wxSCD = wx.wxStringClientData(s)
wxCLB:SetClientObject(wxSCD)

...
...
local temp = wxCLB:GetClientObject()
print(temp:GetData())


The last line of the code shown above gives error: Attempt to call an 
invalid method 'GetData'.

When I call GetClientObject it returns a object of type wxClientData(not 
wxStringClientData)
I need to convert temp to be of type wxStringClientData in order to 
retrieve the string saved inside.

How would I be able to do this?

I hope it is just something small that I don't know about.

Thanks a lot

-- 
Regards,
Stewart Allen
[EMAIL PROTECTED]
[EMAIL PROTECTED] 


-------------------------------------------------------------------------
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

Reply via email to