Hi Folks
I am hoping to exploit the season's good will, because I fear my question is a bit basic and I probably deserve to be hauled over the coals for not knowing how to do this....
I have searched and tried to find the action I want to do.... without avail.
OK so (and no criticism yet please) .... I am converting a much loved FPDos program to run on VFP8... I AM NOT rewriting everything yet... (just replacing FORMS with print outs that I wrote in HP PCL5 escape codes... and trying to replace browse commands with Grids etc)
SO...
In my original prg, one command brings up a BROWSE with some fields editable, some not... It works... It is S-L-O-W but it works... OK so no problems so far.
To upgrade, I thought I would use SQL Select either into a CURSOR or into a BROWSE screen... I can do this... but these are READ ONLY temporary files.
So here is the question:
1. How do I change the data in the READ ONLY screens ( [READWRITE] didn't seem to do anything ) to make it editable.
and
2. If I do manage to change the data in the CURSOR or BROWSE screens... how do I then convey that data change back to and alter the original table ...
My original FPD program line was
It still works in VFP8 but in both FPD and VFP8 it is slow....
My latest attempt is
I do know how to use GRIDS ... (but the calibre of my excellence is better described as 'trial and error')
OK so be nice... Its my birthday soon, so don't carve me up.
Fox Egg
I am hoping to exploit the season's good will, because I fear my question is a bit basic and I probably deserve to be hauled over the coals for not knowing how to do this....
I have searched and tried to find the action I want to do.... without avail.
OK so (and no criticism yet please) .... I am converting a much loved FPDos program to run on VFP8... I AM NOT rewriting everything yet... (just replacing FORMS with print outs that I wrote in HP PCL5 escape codes... and trying to replace browse commands with Grids etc)
SO...
In my original prg, one command brings up a BROWSE with some fields editable, some not... It works... It is S-L-O-W but it works... OK so no problems so far.
To upgrade, I thought I would use SQL Select either into a CURSOR or into a BROWSE screen... I can do this... but these are READ ONLY temporary files.
So here is the question:
1. How do I change the data in the READ ONLY screens ( [READWRITE] didn't seem to do anything ) to make it editable.
and
2. If I do manage to change the data in the CURSOR or BROWSE screens... how do I then convey that data change back to and alter the original table ...
My original FPD program line was
Code:
BROW fields ENTRY_NUM :2 :H= '#', PRINT :P='!' :2 :H= 'Pr', TRANSFER :4 :P='!!!' :H= 'T/F' , percent_fe :3 :H= '%', FILE_NUM :R :18 :P='!!!!!!!!!!!!!!!!!!' :H= 'File Number', LAST_NAME :R :12 :H= 'Last Name', item_numb :R :6 :H= 'Item #', idx_sequen :2, SERVICE :19 :R TIMEOUT(15) NOMENU WINDOW MARY for file_num = fnum && 250299 removed -->> service :10
It still works in VFP8 but in both FPD and VFP8 it is slow....
My latest attempt is
Code:
SELECT entry_num, print, transfer, percent_fe, file_num, last_name, item_numb, idx_sequen, service from 1 ;
WHERE file_num = fnum;
INTO cursor brwser2 readwrite
I do know how to use GRIDS ... (but the calibre of my excellence is better described as 'trial and error')
OK so be nice... Its my birthday soon, so don't carve me up.
Fox Egg