[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Dynamic Classe access


Can we access a Class Public Static Variable Dynamically ?

Ex :

In FMyForm > Static Public Value as string


In my calling Function
dim sMyForm as string = "FMyForm"

Dim f as form
Class.Load(sMyForm)
f = Class[sMyForm].CreateInstance()

f.Value = "MyValue"     '.... < here I have an error even if I try to
change Value to a non static property

f.ShowModal




-- 
Fabien Bodard

Follow-Ups:
Re: Dynamic Classe accessFabien Bodard <gambas.fr@xxxxxxxxx>