User command in @key processing

Fairlight fairlite at fairlite.com
Mon Aug 13 11:38:58 PDT 2018


Your mistake is likely in not using CLOSE.

After your "aa=xxx" line, use this line:

::close xxx:

Should it -technically- close upon re-hitting the user command?  That's a
mattter one could debate either way.  I strongly suspect it is not closing,
however, leaving you with a dead file descriptor.

mark->

On Mon, Aug 13, 2018 at 02:02:04PM -0400, James Flanagan via Filepro-list thus spoke:
> Filepro 5.8.01.06D6
> Redhat Exnterprise 6.8
> 
> /bin/test_script
> echo 23
> 
> Input processing
> ::end:
> ::?:
> @keyx::?:
> ::aa(2,.0):
> ::user xxx = /bin/test_script
> ::aa=xxx:
> ::msgbox aa:
> ::end:
> 
> The first iteration of this code, when hitting the ?X? key works and the msgbox contains ?23?.  Every subsequent time, however, the msgbox is blank.   
> 
> I found the following in the manual, but I am not quite certain that this is the issue.  
> IMPORTANT: When reading from a user program, filePro Plus executes the program only once, not over and over. Therefore, make sure the user program itself loops until it reaches an end-of-file. 
> 
> Can input processing keep re-running a user command each time in @key processing, however many times the key is pressed for a given record.
> 
> Thank you very much, in advance.  
> 
> 
> James Flanagan
> Flantec.com <http://flantec.com/>
> 
> email:	James at Flantec.com <mailto:James at Flantec.com>
> mobile:	760-458-8498
> home: 	219-221-6219
> text:		7604588498 at txt.att.net <mailto:7604588498 at txt.att.net>
> 
> Skype:	Flantec
> ichat:	James at Flantec.com <mailto:James at Flantec.com>	
> 
> home:	1901 Cidermill Road
> 		Michigan City, IN 46360
> 
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <http://mailman.celestial.com/pipermail/filepro-list/attachments/20180813/98c7c5f6/attachment.html>
> _______________________________________________
> Filepro-list mailing list
> Filepro-list at lists.celestial.com
> Subscribe/Unsubscribe/Subscription Changes
> http://mailman.celestial.com/mailman/listinfo/filepro-list

-- 
Audio panton, cogito singularis.


More information about the Filepro-list mailing list