[Gambas-user] how to detect if class.load was susessfully?
PICCORO McKAY Lenz
mckaygerhard at gmail.com
Mon Jul 16 21:43:01 CEST 2018
2018-07-16 15:26 GMT-04:00 Benoît Minisini <g4mba5 at gmail.com>:
> Otherwise, you can use the Class.Stat() method from the gb.util component.
> It will fail if a class name cannot be loaded, without trying to actually
> load it.
in wiki can see examples of stat but not from class.stast(), this will
need a real path ?
>
> Or you can check the existence of the local path ".gambas/CLASSNAME", but
> then you depend on the structure of the executable archive.
>
> Beware that all that won't work if your class/module is not located in the
> main project but in a library or in a component.
works if a library do this ? i mean a library check their own class/modules ?
>
> Regards,
>
>
> --
> Benoît Minisini
>
> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]----
More information about the User
mailing list