Hi everyone,
I'm trying to add a code into a specific form only, but I don't really understand how MagicCode/MagicEvent work.
(I'm trying to put this code https://forum.4dsystems.com.au/node/45814 into my form14)
I tried to create MagicCode and MagicEvent with this follow example:
All this example display nothing on the screen.
I read https://www.4dsystems.com.au/appnote/4D-AN-00199/ and https://www.4dsystems.com.au/appnote/4D-AN-00182/ , but these docs don't explain a lot.
If you have something better to explain or solution to do what I want !
Best Regards,
Toragan
EDIT:
I finally find a solution using a MagicCode as Const/Global/Data and another one as PostActivateForm.
But, I'm still interested in informations about MagicCode and MagicEvent in general.
Best regards,
Toragan
I'm trying to add a code into a specific form only, but I don't really understand how MagicCode/MagicEvent work.
(I'm trying to put this code https://forum.4dsystems.com.au/node/45814 into my form14)
I tried to create MagicCode and MagicEvent with this follow example:
Code:
func MagicEvent6(var newval) in MagicCode file in MagicCode file if(CurrentForm == 14) if(CurrentForm == 14) print("Example"); OR print("Example") OR print("Example") endfunc
I read https://www.4dsystems.com.au/appnote/4D-AN-00199/ and https://www.4dsystems.com.au/appnote/4D-AN-00182/ , but these docs don't explain a lot.
If you have something better to explain or solution to do what I want !
Best Regards,
Toragan
EDIT:
I finally find a solution using a MagicCode as Const/Global/Data and another one as PostActivateForm.
But, I'm still interested in informations about MagicCode and MagicEvent in general.
Best regards,
Toragan
Comment