On 6/6/07, Andre <[EMAIL PROTECTED]> wrote:
> John Labenski <[EMAIL PROTECTED]> writes:
>
> error on this line:
>
> local separator = string.char(wx.wxFileName('.'):GetPathSeparator())
>
> Expected an enumeration for parameter 1, but got user data
>
> probably should be coded differently but use to work

Should use '.' not ':' since GetPathSeparator() is a static function.

local separator = string.char(wx.wxFileName('.').GetPathSeparator())

But, even better, don't even create a temp wxFileName(), call the
static function directly.

local separator = string.char(wx.wxFileName.GetPathSeparator())


I also fixed the docs since originally I had hacked the ':' to work as
well, but found later that it would fail for certain special cases. I
asked on the lua list if there was a way to tell if the '.' or ':' was
used and apparently there isn't... so anything I do to make it work
would be a hack at best.

Regards,
    John Labenski

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
wxlua-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wxlua-users

Reply via email to