Bryan - Gendev
Programmer
I have a problem in my single form app. The app opens over 30 tables and reports statistics on them.
The results are to be stored in a table I have named STORAGE. This is created early in the app.
Two sets of results are put into this table with the REPL command at two differnt points in the program.
To ensure I have the right table open I LOCATE a project name in the storage table and message to the user.
On my development PC it works flawlessly but after an installation via Inno compiler the program misses the second storage opening somehow.
Can I use any other opening commands to make certain the table is SELECTED when needed?
The values I want to place in STORAGE table are in storage4
Part of my code is
Thanks
GenDev
The results are to be stored in a table I have named STORAGE. This is created early in the app.
Two sets of results are put into this table with the REPL command at two differnt points in the program.
To ensure I have the right table open I LOCATE a project name in the storage table and message to the user.
On my development PC it works flawlessly but after an installation via Inno compiler the program misses the second storage opening somehow.
Can I use any other opening commands to make certain the table is SELECTED when needed?
The values I want to place in STORAGE table are in storage4
Part of my code is
Code:
Set Default To (mysystempath)
If !Used('storage')
Use storage In 0
Endif
Select storage
Go Top
Locate For Project = myproject
If Found()
If 'SHU'$compname()
nAnswer = Messagebox('Found correct project table for TMG tables values')
Endif
Endif
Set Default To (mysystempath)
If !Used('storage4')
Use storage4 In 0
Endif
Select storage4
nhits = 0
Go Top
Scan
nfield = storage4.NPER
nhits = storage4.NTAGS
Select storage
Do Case
Case nfield = 0
Replace storage.N_et00 With nhits
etc etc
Thanks
GenDev