Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Combobox Problem
Message
From
23/07/2003 10:28:10
Luis Navas
Independent Consultant
Auckland, New Zealand
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Combobox Problem
Miscellaneous
Thread ID:
00812772
Message ID:
00812772
Views:
59
Hi, i just can't think why this is causing me problems, i will explain:

I have a form, in this form I have 2 combos, each one of them are RowSourceType=3, and Row Source goes like this:
Combo1= Select nombre_cad,codigo_Cad FROM cadenas INTO CURSOR sys(2015)

Combo2= Select nombre_tie,codigo_tien FROM tiendas WHERE codigo_Cad=THISFORM.Combo1.Value) INTO CURSOR sys(2015)
In the Interactive Change of the first combo, I make a Requery to second one.
Both combos, are boundto=.T., and boundcolumn=2, and in this form they work great, but in a new form that I'm using, I'm getting this error:

THISFORM can only be used within a method, and the help file says this:

One of the following commands was used outside of a method: THIS, THISFORM, or THISFORMSET.

You used the statement in a procedure, but it can only be used within a method.
Move the THIS, THISFORM, or THISFORMSET command into the appropriate method.


Ok why this works in the first form, and it doesn't works in the second one?.
Thanks for your time.
Luis
I never forget a face, but in your case I will make an exception :-)
Next
Reply
Map
View

Click here to load this message in the networking platform