|
Hi,
I want to declare a form using a variable, is this possible, cause this function needs to work in several project and so the forms are never known. I habe a way to extract their names to a table, but how can i use them?
This is what i'm trying to do:
'normally you do this:
dim frm as new <form_name>
'I want to do this:
formid = <record in my table>
dim frm as new formid
But I can't get it to work:(
any ideas?
|
|
|
Declaring a form dynamically is possible
dim frm as form
or
dim frm as new <formname>
But ur requirement is that the form which u create dynamically should have the variable name which is stored in a table
well if u require the name for some processing purpose
a better way is make the form using the above logic, the name of the variable can be anything, but the name which you get from the table can be stored in the form's tag property for further processing
I think this will help u find a solution
Mike Mckenzie
|
|
|
|
|
|
|
// |