how to react on same Event in different Form

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

Post Reply
User avatar
AUGE_OHR
Posts: 2117
Joined: Sun Aug 25, 2019 3:12 pm
DBs Used: DBF, PostgreSQL, MySQL, SQLite
Location: Hamburg, Germany

how to react on same Event in different Form

Post by AUGE_OHR »

hi,

i do have

Code: Select all

   ON KEY ADD OF Form_1 ACTION AAA()
and

Code: Select all

   ON KEY ADD OF Form_2 ACTION BBB()
Form_2 is called from Form_1 and when i press "ADD"-Key in Form_2 it also "react" in Form_1, WHY :?:

how can i "control" my "ON KEY" that they work only in PARENT Form :idea:
have fun
Jimmy
franco
Posts: 921
Joined: Sat Nov 02, 2013 5:42 am
DBs Used: DBF
Location: Canada

Re: how to react on same Event in different Form

Post by franco »

Not sure but would it be different when Form_2 is modal or child.
maybe in this case take out the form statement and on release of form_1 release set statement

Code: Select all

form_1
on key add Action A
form_2
on key add action B
form_1 
on release 
on key add action nil
Not sure if this would work.
All The Best,
Franco
Canada
User avatar
Rathinagiri
Posts: 5482
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Contact:

Re: how to react on same Event in different Form

Post by Rathinagiri »

You can disable one event and enable another one for the safer side.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
Post Reply