Hello again. Long time 2.6 user and trying to convert my program to visual 9. Thanks to the generous help with my first thread, I have made this:
I create a form. I stretched a four tabbed page frame over it and labeled the tabs: Case, Defendant, Merchant, Payment. On each of these page frames I have copied the fields and buttons from my old program and modified them for VFP. When I compile all is looking good. Now I am adding data and need to know where to put my variables:
SELECT wc_case
SCATTER MEMVAR MEMO
* Declare and initialize merchant variables
private me_name, me_id, me_addr, me_city, me_state, ;
me_zip, me_phone, me_contact
m.me_name = merchant.me_name
m.me_id = merchant.me_id
m.me_addr = merchant.me_addr
m.me_city = merchant.me_city
m.me_state = merchant.me_state
m.me_zip = merchant.me_zip
m.me_contact = merchant.me_contact
m.me_phone = merchant.me_phone
* Declare and initialize defendant variables
private name, id, address, address2, city, state, zip,;
race, sex, dob, height_ft, height_in, ssn, hair,;
eyes, license, telephone, employer, emp_phone,;
weight, HISTORY
m.name=wc_writer.name
m.id=wc_writer.id
m.address=wc_writer.address
m.address2=wc_writer.address2
m.city=wc_writer.city
m.state=wc_writer.state
m.zip=wc_writer.zip
m.race=wc_writer.race
m.sex=wc_writer.sex
m.dob=wc_writer.dob
m.height_ft=wc_writer.height_ft
m.height_in=wc_writer.height_in
m.ssn=wc_writer.ssn
m.hair=wc_writer.hair
m.eyes=wc_writer.eyes
m.license=wc_writer.license
m.telephone=wc_writer.telephone
m.employer=wc_writer.employer
m.emp_phone=wc_writer.emp_phone
m.weight=wc_writer.weight
m.history=wc_writer.history
thisform.refresh
There looks to be so many places to put them. Do I put them in the Main form init event and refresh event. Or do I put them in the Frame section init event, etc. I have got errors on nesting too deep or too many variables. When I leave them just in one place, (the init event of the main screen), I get no errors but nothing changes when I run the program. The actual case data will change when I scroll next but the defendant and merchant data stays the same. I run the program that relates the id's to all the databases in the startup program. My main question is, because there are so many places to put the variables, Where do I put them?
Thanks again!
I create a form. I stretched a four tabbed page frame over it and labeled the tabs: Case, Defendant, Merchant, Payment. On each of these page frames I have copied the fields and buttons from my old program and modified them for VFP. When I compile all is looking good. Now I am adding data and need to know where to put my variables:
SELECT wc_case
SCATTER MEMVAR MEMO
* Declare and initialize merchant variables
private me_name, me_id, me_addr, me_city, me_state, ;
me_zip, me_phone, me_contact
m.me_name = merchant.me_name
m.me_id = merchant.me_id
m.me_addr = merchant.me_addr
m.me_city = merchant.me_city
m.me_state = merchant.me_state
m.me_zip = merchant.me_zip
m.me_contact = merchant.me_contact
m.me_phone = merchant.me_phone
* Declare and initialize defendant variables
private name, id, address, address2, city, state, zip,;
race, sex, dob, height_ft, height_in, ssn, hair,;
eyes, license, telephone, employer, emp_phone,;
weight, HISTORY
m.name=wc_writer.name
m.id=wc_writer.id
m.address=wc_writer.address
m.address2=wc_writer.address2
m.city=wc_writer.city
m.state=wc_writer.state
m.zip=wc_writer.zip
m.race=wc_writer.race
m.sex=wc_writer.sex
m.dob=wc_writer.dob
m.height_ft=wc_writer.height_ft
m.height_in=wc_writer.height_in
m.ssn=wc_writer.ssn
m.hair=wc_writer.hair
m.eyes=wc_writer.eyes
m.license=wc_writer.license
m.telephone=wc_writer.telephone
m.employer=wc_writer.employer
m.emp_phone=wc_writer.emp_phone
m.weight=wc_writer.weight
m.history=wc_writer.history
thisform.refresh
There looks to be so many places to put them. Do I put them in the Main form init event and refresh event. Or do I put them in the Frame section init event, etc. I have got errors on nesting too deep or too many variables. When I leave them just in one place, (the init event of the main screen), I get no errors but nothing changes when I run the program. The actual case data will change when I scroll next but the defendant and merchant data stays the same. I run the program that relates the id's to all the databases in the startup program. My main question is, because there are so many places to put the variables, Where do I put them?
Thanks again!