Getting the present form

Discussions about CSEntry
Forum rules
New release: CSPro 8.0
Post Reply
AriSilva
Posts: 591
Joined: July 22nd, 2016, 3:55 pm

Getting the present form

Post by AriSilva »

Like the getsymbol function, is there a way to know in which form the user is working?
For example, a GetForm function?
For me, this is useful in the onstop function, then I would know the form name where the stop key was pressed (besides, of course, the procedure).
Best
Ari
Best
Ari
Gregory Martin
Posts: 1777
Joined: December 5th, 2011, 11:27 pm
Location: Washington, DC

Re: Getting the present form

Post by Gregory Martin »

There is no GetForm-style function, but you can get GetRecord to get the name of the record that you're on. If you want to take different action based on the record that you're entering, you can use that.
AriSilva
Posts: 591
Joined: July 22nd, 2016, 3:55 pm

Re: Getting the present form

Post by AriSilva »

Yeah, I saw the getRecord, but in my case the forms have different records.
I know that in the mobiles the Form concept is meaningless, but...
I´m playing with the getSymbol and getRecord to take the appropriate logic actions.
Thanks
Ari
Best
Ari
Post Reply