|
-
Sep 21st, 2012, 08:24 AM
#1
Thread Starter
Junior Member
[RESOLVED] Advices for 2 Forms, same buttons, box, functions but 1 difference ?
Hi,
In my application for Pocket PC, CF 3.5, WM 5.0, I have 2 forms almost identical... One is for customers, the other one for guests.
The only difference, is in my select requests, I use to difference them a value like 1 for customers, 0 for others.
So I tried to do something like this:
FORMA:
Code:
sub pro()
{
SetDataSet("Select * FROM users WHERE type = 1", SDS)
treatment(SDS);
}
FORMB:
Code:
sub guest()
{
SetDataSet("Select * FROM users WHERE type = 0", SDS)
treatment(SDS);
}
MODULE:
Code:
function treatment(SDS..)
{
...
...
if (something = true) then
TextBox1.Text = "MyValue"
else
TextBox1.Text = "MyOtherValue"
endif
...
}
My problem is that I get " TextBox1.Text is not declared ". Yes, but I can't say if it's FORMA.Texbox1 or FORMB.Textbox1 !
Do you have any advices, I didn't try in this example, but one day I tried to do something like this :
Code:
ExitForm(Byval o as system.object)
{
o.close()
}
FormA
And it didn't works, maybe because it's for pocketPC..
Thank you!
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|