how to do searching ?

how to do searching ?

Post by Seow L » Thu, 04 Mar 1999 04:00:00



can anyone explain to me how the VFP example doing the searching? i just
know the form is find order in tastrde example, i can't understand how i can
return back to the previous recno() if the user click the cancel button, i
don't now from where and how to define the variable, i tried b4, but error
message show that the variable that i define is not a variable for the
program....

can anyone show me the way, please

 
 
 

how to do searching ?

Post by Gene Wirchen » Thu, 04 Mar 1999 04:00:00



>can anyone explain to me how the VFP example doing the searching? i just
>know the form is find order in tastrde example, i can't understand how i can
>return back to the previous recno() if the user click the cancel button, i
>don't now from where and how to define the variable, i tried b4, but error
>message show that the variable that i define is not a variable for the
>program....

>can anyone show me the way, please

     Not exactly, but the trouble you are having appears to be that
you defined a private or local memvar and it is out of scope as you
are referring to it in another method of the class.  If this is so,
add the save value as a property instead.  That way it will have a
scope of the whole class.

Sincerely,

Gene Wirchenko

Computerese Irregular Verb Conjugation:
     I have preferences.
     You have biases.
     He/She has prejudices.

 
 
 

how to do searching ?

Post by Anders Altber » Thu, 04 Mar 1999 04:00:00


The variable is likely a Property. Every class can have properties added to
it when you define the class in The Class Designer. When you're in the Form
Designer you can use the menu pad Form - Add Property to add a property to
the form. I haven't seen the Fond Order example in Tastrade but look for
Thisform.nOldOrder or something similar.
If you create a variable b4 for use in a procedure of an object, the
variable goes out of scope and dies when the procedure ends. Properties
remain as long as the object they are members of remain.

-Anders


>can anyone explain to me how the VFP example doing the searching? i just
>know the form is find order in tastrde example, i can't understand how i
can
>return back to the previous recno() if the user click the cancel button, i
>don't now from where and how to define the variable, i tried b4, but error
>message show that the variable that i define is not a variable for the
>program....

>can anyone show me the way, please

 
 
 

1. HELP! Doing Search On Database

What kind of database are you using (e.g. Access, SQL Server, Oracle, etc.)
and what sort of data access method are you using (e.g. bound controls, DAO,
ADO, etc.)?

In general I would use an ADO recordset object to pull data coressponding to
the users choice and then right it into the listbox.  If this is the method
you are thinking about using respond back and I can be more precise.


2. ADVICE ON Text/Data Retrieval Products

3. timeout while doing full-text search?

4. Request Power-4GL info

5. Help!Doing a Search on Database?

6. A little ADO help PLS

7. Doing a data search using VB 3.0?

8. Foxpro Database compression

9. Doing a search in a one to many database

10. Doing database searches....Im lost....HELP!!!

11. Doing case-insensitive searches