>>Anyone can help me on this:
>>
>>1. In fp 2.6, I open my database and initialise my variables in setup. In VFP 5.0, where do I do that?
>>
>>Many thanks
>>
>>From Samuel
>
>There are many ways to do this, here are some:
>
>- Place your tables in the Data Environment and define your variables in the Load Event.
>- Open your tables in your startup program.
>- Define your variables as properties in your form.
Samuel, in addition to Benn's suggestions look into Data Buffering. Using buffering means you don't have to initialize variables for the fields you are editing as the data in the tables isn't updated until you tell the buffer to save the data. MUCH easier than scatter/gather or individual field variables.
HTH
Barbara