Programming question
WILLIAM LUCCA
wlucca at prodigy.net
Fri Jun 2 08:39:40 PDT 2017
Perhaps I don't have the full picture here, but why not just make 2 separate options on the Filepro menu, "New Owner" and "New Resident" and call the appropriate program (and screen) directly from the menu line.
On Friday, June 2, 2017 10:55 AM, Richard D. Williams via Filepro-list <filepro-list at lists.celestial.com> wrote:
Richard,
I can't give you a direct answer, I would not recommend using "chain".
I would use "call" and popup the correct screen for each option.
Hope this helps,
Richard D. Williams
On 6/1/2017 10:11 AM, Richard Kreiss via Filepro-list wrote:
> 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>
> _______________________________________________
> Filepro-list mailing list
> Filepro-list at lists.celestial.com
> Subscribe/Unsubscribe/Subscription Changes
> http://mailman.celestial.com/mailman/listinfo/filepro-list
>
>
>
>
> ---
> This email has been checked for viruses by AVG.
> http://www.avg.com
>
>
_______________________________________________
Filepro-list mailing list
Filepro-list at lists.celestial.com
Subscribe/Unsubscribe/Subscription Changes
http://mailman.celestial.com/mailman/listinfo/filepro-list
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.celestial.com/pipermail/filepro-list/attachments/20170602/d006501b/attachment.html>
More information about the Filepro-list
mailing list