FM8 get (WindowMode) in a calculation. Possible?

General support questions.
Posts: 58
Joined: Tue Jul 26, 2005 12:08 pm
Location: London
PostPosted: Mon Feb 20, 2006 6:18 am
Hi All,

I wish to show a message dependent on what Mode users are in, primarily when they are in ‘Find’ mode. I.e. not as a dialogue box but as if it were contained in a field on the layout.

I can do this with Browse with a calculation field:

If(get (WindowMode) = 1;”Message”;””)

But of course this will not work in Find mode.

Is there a way to display this ‘flag’ apart from running it as a dialogue box in a script?

All the best,
David
SeedCode Staff
SeedCode Staff
Posts: 2764
Joined: Thu Nov 20, 2003 11:01 am
PostPosted: Mon Feb 20, 2006 6:27 am
You're right about those calcs in find mode. If they are entering Find Mode through a script, you could just set a global field to your find mode message. If you want something that works when they just enter the keyboard shortcut for Find, you could

a) use custom menus to map the find command to your own script that sets the global before moving on, or

b) use the global vs local container trick mentioned here.

HTH.
John Sindelar
SeedCode
Posts: 58
Joined: Tue Jul 26, 2005 12:08 pm
Location: London
PostPosted: Tue Feb 21, 2006 7:12 am
Hmm, as it was me that started the thread your current answer led me back to I should remembered your original answer. Sorry, it's what we call in England 'Having a Senior Moment'.

Thanks once again,

All the best.
David
SeedCode Staff
SeedCode Staff
Posts: 2764
Joined: Thu Nov 20, 2003 11:01 am
PostPosted: Tue Feb 21, 2006 7:23 am
I do it all the time. =)
John Sindelar
SeedCode

Return to General Support

Who is online

Users browsing this forum: No registered users and 1 guest

cron
(855) SEEDCODE
[email protected]
Follow us: