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
Code:
sub {
     oclose(Me)
}
And it didn't works, maybe because it's for pocketPC..

Thank you!