[wxLua] FSVolume()

This forum can be used to talk about general design strategies, new ideas and questions in general related to wxWidgets. If you feel your questions doesn't fit anywhere, put it here.
Post Reply
Nolram_07
Earned a small fee
Earned a small fee
Posts: 11
Joined: Fri Mar 17, 2017 5:56 pm

[wxLua] FSVolume()

Post by Nolram_07 » Sat Apr 29, 2017 6:39 am

I try to get a list of the mounted volumes

Code: Select all

volumes = {}
volumes = wx.wxFSVolume:GetVolumes()
but there is any error "attempt to index field 'wxFSVolume' (a nil value)"
what am I doing wrong

User avatar
doublemax
Moderator
Moderator
Posts: 13993
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: [wxLua] FSVolume()

Post by doublemax » Sat Apr 29, 2017 8:23 am

Are you sure wxFSVolume exists in wxLua? I don't see it here: http://wxlua.sourceforge.net/docs/wxluaref.html
Use the source, Luke!

Nolram_07
Earned a small fee
Earned a small fee
Posts: 11
Joined: Fri Mar 17, 2017 5:56 pm

Re: [wxLua] FSVolume()

Post by Nolram_07 » Sat Apr 29, 2017 6:04 pm

#-o #-o my mistake
I was guided by this: http://docs.wxwidgets.org/3.0/annotated.html
I totally forgot
thanks a lot

Post Reply