Programming question

Richard Kreiss rkreiss at gccconsulting.net
Thu Jun 1 08:11:38 PDT 2017


I have written an application for my community and are using some programming techniques I do not normally use.

The database of residents already exists in filePro as I updated the records from an Excel import of current residents.

When a unit is sold and there is a new owner and/or other residents moving into a home, I wrote  Library routines to handle this.

>From a menu option the user is presented with a 2 menu options

\fp\rclerk library -s Blank -x start_new_resident -y !!


1.      New Owner

2.      New Resident

When an option is selected, the program chains to the proper input program


1.      New_owner

2.      New_resident

The initial programming is the same for both except for the screen used for input.

Question: Program had to change screens from blank to either the new_owner screen or the new_resident screen.

Code:

If: @sn ne "new_owner"
Then: SCREEN "new_Owner",AD
This code doesn't place the cursor in field AD (address).  The cursor just sits waiting for <U> to be pressed. I have tried pushkey "U" before and after the screen command.

The filePro manual states that using screen "name",Field # in an input table will put the cursor in the field specified.   Why is this not working?

The code that does work is:
If: @sn ne "new_owner"
Then: swithto "new_owner";pushkey "U"

The reason for two separate programs is that the new owner program will delete all the peripheral files associated with that owner but leave the files that are associated with the unit(home).

Richard Kreiss






-------------- next part --------------
A non-text attachment was scrubbed...
Name: winmail.dat
Type: application/ms-tnef
Size: 18729 bytes
Desc: not available
URL: <http://mailman.celestial.com/pipermail/filepro-list/attachments/20170601/d054d950/attachment.bin>


More information about the Filepro-list mailing list