Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Cursoradapters
Message
From
03/10/2003 13:58:58
 
 
To
03/10/2003 09:15:24
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Miscellaneous
Thread ID:
00834752
Message ID:
00834927
Views:
17
>Ok, I have read almost everything I can find about cursoradapters and I can get them to work fairly well, but maybe I am missing something.
>
>I have created a form with a grid, a button and a textbox, visually. Added a cursoradapter to the form with a parameter, visually with the builder. When I run my form, a box opens up to accept the parameter for my cursoradapter. I key in the initial parameter and the form opens and displays the selected data. It all seems to work fine, but to display another list, I would just like to key in my next parameter into the textbox and click the button.
>
>What I would like it to do is open the form without asking for the parameter and display my empty grid, then allow me to put in my parameter into the textbox, click on the button and display my data in the grid. I feel this can be done, but for the life of me I can not seem to get it right.

Hi, Ronald.

You have to delay the call to CursorFill(). Instead of letting the parameters inputbox pop-up, put a textbox in your form and a button to read data. On the button click, call a method (don't put this code on the Click event, please) which creates the parameter variable, assings it the textbox.value, and then calls the CA CursorFill() method.

Hope this helps,
Previous
Reply
Map
View

Click here to load this message in the networking platform