Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Refresh or Requery?
Message
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Miscellaneous
Thread ID:
00101032
Message ID:
00101588
Views:
23
>Hi Jess!
>
>Thanks for your answer, my first problem was resolved.
>
>Thanks a Kevin Mcneish too.
>
>Approach the message, to tell you:
>
>I have two combos, the list in the second combo depend of the first combo's value. So, how or where especify the parameter of the view displayed in sencon combo?, is the parameter like public variable?, and the requery command must be to the combo or to buzobj?
>
>uff, I expect don't trouble you.
>
>New Thanks!
>
>Enrique Ramírez L.

You declare and use public variable or custom property.

At InteractiveChangeEvent of the First Combo put:

cPublicVar = This.Value or anything or Thisform.cVariable

Thisform.SecondCombo.Requery()

The Rowsource property of 2nd combo should be:

IF public variable:
SELECT any_thing FROM mytable WHERE mytable.field1 = cPublicVar INTO CURSOR tempcursor

IF custom property:
SELECT any_thing FROM mytable WHERE mytable.field1 = Thisform.cVariable INTO CURSOR tempcursor

HTH

>
>>Requery applies to Listbox and Combox when Rowsourcetype is SQL. It also applies to SQL Views.
>>
>>Refresh can be used to re-display the new value of controls (if any).
>>
>>Could please specify what specific control you are using. Is it Grid, List etc?
JESS S. BANAGA
Project Leader - SDD division
...shifting from VFP to C#.Net

CHARISMA simply means: "Be more concerned about making others feel good about themselves than you are in making them feel good about you."
Previous
Reply
Map
View

Click here to load this message in the networking platform