Chain

GCC Consulting rkreiss at gccconsulting.net
Tue Jul 17 08:01:48 PDT 2012


I am writing a new program( file A) where the user selects a record from a
browse lookup to be updated from file B.  The browse was started from IUA
@key function.

On starting the chained program, the screen is switched, a lookup is
executed to the record in file B and loaded into dummy fields. The user is
ten put into update mode and can then change any of the fields.  When finish
these values are posted back to the record.

At this point, I am chaining back to the original record and screen.  My
problem is that I am place in the update mode on the original screen.  

I would like to return to the original screen and re-execute the browse.

I have a declare global variable that I am setting to control what happens
when I chain back to the input program since the return starts at the first
line of the program.

If:IsSplit="Y"
Then: IsSplit-"";switchto (ScreenNum);END

In this case ScreenNum was equal to 1 and I was left in update mode on the
first available field.

I originally had:

If:IsSplit="Y"
Then: IsSplit-"";switchto (ScreenNum);GOTO showtran;END

Questions:
1. How do I switch back without being in update
2. I assume I can use pushkey "TN" to redisplay the browse
	a. function @keyT
	b. N is the value from a listbox which selects the status of the
record to be displayed

Any suggestions as to how to accomplish this?


Richard Kreiss
GCC Consulting

Office: 410-653-2813





More information about the Filepro-list mailing list