Re: [Gambas-user] Question on Class.Load

2014-11-02 Thread Fabien Bodard
Just one question ... have you exported those classes ? tmpClass is just a class ... not an instanciate object You need to call Object.New Or just new Public Sub Main() Dim hObj As Object Dim sSym As String For Each sSym In Classes[MyClass].Symbols Print sSym Next hObj =

Re: [Gambas-user] Question on Class.Load

2014-11-02 Thread Ian
Merci Fabien, That solution worked very well. I had thought that you only needed to export classes when using them for a component ? (from the Gambas Wiki on Components - Which is the only reference I can find to exporting classes.) One other question. So what would Class.Load be used for ?

Re: [Gambas-user] Question on Class.Load

2014-11-02 Thread Fabien Bodard
Well A class is the caneva... a dead container If you want to use it you must to make it alive to interact with it. so a class is the description of what can be the object. An object is an instanciated class A static class then is a self instanciated class (like module)

[Gambas-user] Question on Class.Load

2014-11-01 Thread Ian
Class.Load allows you to create a reference to a named class. Dim TempClass as Class TmpClass = Class.Load(myclass) This works and I can get the names of the public instances of variables and procedures For each TmpString in TmpClass.Symbols Message(TmpString) Next Is there a way to call a