Switching to update mode from @ENTSEL

Barry Wiseman barry at gensoftdes.com
Mon Jul 9 09:52:19 PDT 2007


Kenneth Brody wrote:
> Quoting Barry Wiseman (Mon, 09 Jul 2007 12:04:54 -0400):
> [...]
>> Is there some graceful method (that hasn't occurred to me) of dropping
>> into update mode at any arbitrary point deep within @ENTSEL processing?
>> I know I can
>>
>> 	::pushkey "U"; end:
>>   	@UPDATE::' do whatever:
>>
>> but then I need flags and a jump table to know why I came there and it
>> all gets pretty messy.
> [...]
> 
> One possibility would be to use different @KEY events for the different
> reasons you want to enter update, and use different PUSHKEYs.
> 

Thanks, Ken.  I had thought of that but wrongly imagined it would be as obfuscational 
as a jump table.  Now that you've suggested it, I realize it could be done in-line 
without having to reorganize any legacy code:

	::' some code that doesn't update the master:
	::pushkey "A"; end:
	@KEYA::' continue with code that does update the master:
	::goto exit  ' finish up and return to @entsel:
	::':
	::' some other code that doesn't update the master
	::pushkey "B"; end:
	@KEYB::' continue with the other code now in update mode:
	::goto exit:



-----------------------------------------------------------------
  Barry Wiseman                              barry at gensoftdes.com
  Genesis Software Designs, Inc.            Voice: (212) 889-9191
  55 West 45 Street, New York, NY 10036       Fax: (212) 889-1589
-----------------------------------------------------------------



More information about the Filepro-list mailing list