On Friday, May 30, 2003, at 12:38 AM, Alain Pastor wrote: > > > Robert Covington wrote: >> How does one get the active edit field ID in a window which has 3 of >> them? >> I need to attach a numerical filter to the edit fields and want to >> have just 1 filter, not 3. >> Wish I could just call activeField = Edit$(_outputField) >> (too easy huh ) > > I suppose the usual function works in the Appearance runtime although > I have yet to try: > > WINDOW(_efNum) > > Alain > >> How does one get the active edit field ID in a window which has 3 of >> them? >> >> I need to attach a numerical filter to the edit fields and want to >> have just 1 filter, not 3. >> > > "WINDOW(_efNum) returns the ID number of the currently active edit > field or picture field; or zero if there is no currently active edit > field or picture field." --Ref Man p. 608 > < argh > Damn, I knew that a year ago! That's embarassing. Can you tell I don't work with edit fields very much? It would be more intuitively obvious to really tired burnt out people if this was id = Edit$(_outputEf) and not a Window FN. Now that I am not really tired, I can see that clearly. :) Trick seems to be in the fn FBgetControlRef( c as ControlRef ) (was looking for that before I posted, but forgot the Window() connection) Robert