[futurebasic] [FB] Button/Return/EFs

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : July 2002 : Group Archive : Group : All Groups

From: Stu Cram <Stu.Cram@...>
Date: Fri, 19 Jul 2002 07:29:47 -0600
>Ken
>
>Many thanks for the 2 examples. What does the @ indicate in the @ fn
>CaptureEFReturn?
>Martin
>     <---large area clipped--->
>
>  > filterFN = @ fn CaptureEFReturn
>  > EDIT FIELD 2,    "", (10, 35)-(190, 70), _framed,, filterFN
>     <---more clipped--->
>
-----------------------

The @ symbol in this syntax provides the memory address of the given 
function. It's the same as this older but less common way:
LET filterFN = VARPTR(FN CaptureEFReturn)

Then that address is used on the next line that creates an edit 
field; it indicates that this function will be called to examine the 
keystrokes as they are typed in edit field #2. It is called every 
time the user presses a key destined for this edit field -- they all 
'pass through' this routine and are sometimes modified, hence the 
term 'filter'.

This option for a 'key filter function' at the end of the EDIT FIELD 
statement only works with the appearance manager (FB^3.6). In 
previous versions, one had to use ON EDIT FN CaptureEFReturn to 
achieve something similar.

HTH
-Stu