Bill white
August 10th, 2001, 11:02 PM
Hi,
I have a problem. I am building a app, in which there are a lot of forms. I don't want to have them existed in exe file, I have built each form as a module file(.bas) and kept the propertys of controls of this form in a text file, i.e. each form corresponds with two files, a text file and a module file(*.bas).
Now I have built the form according to the text file, but I don't know how to associate this form with the module file.
What should I do?
option Explicit
Dim str1 as string
Dim str2 as string
private Sub Command1_Click()
Text1.Text = str2
End Sub
private Sub Form_Load()
Init
Text1.Text = str1
End Sub
private Function Init()
str1 = "Hello!"
str2 = "This is a test! Thanks."
End Function
' ###### The above is a module file, just a sample.
' ###### The below is a text file.
item: TextBox
Name = Text1
Alignment = 0
Appearance = 1
BorderStyle = 1
Format=
TabStop = 1
Rect=77,56,153,33
End
item: CommandButton
Name = Command1
Appearance = 1
TabStop = 1
Rect=77,128,153,33
End
Thanks.
I have a problem. I am building a app, in which there are a lot of forms. I don't want to have them existed in exe file, I have built each form as a module file(.bas) and kept the propertys of controls of this form in a text file, i.e. each form corresponds with two files, a text file and a module file(*.bas).
Now I have built the form according to the text file, but I don't know how to associate this form with the module file.
What should I do?
option Explicit
Dim str1 as string
Dim str2 as string
private Sub Command1_Click()
Text1.Text = str2
End Sub
private Sub Form_Load()
Init
Text1.Text = str1
End Sub
private Function Init()
str1 = "Hello!"
str2 = "This is a test! Thanks."
End Function
' ###### The above is a module file, just a sample.
' ###### The below is a text file.
item: TextBox
Name = Text1
Alignment = 0
Appearance = 1
BorderStyle = 1
Format=
TabStop = 1
Rect=77,56,153,33
End
item: CommandButton
Name = Command1
Appearance = 1
TabStop = 1
Rect=77,128,153,33
End
Thanks.