For 2 years, Val Valentino wore a mask and revealed on TV the secret behind one magic trick after another.
What a looser!
Not only he ruined it for the magicians, but worse (I think) for the audience. You no longer wow when you see these magic tricks since now you know how they are done.
In one thread after another, I have heard enough from those who wow about UDF's and what they do, making UDF's look like magic tricks. Debating & debunking myths doesn't seem to make anyone change their mind that Santa is only an imaginary figure. There is no point in debating anymore. So now what: reveal the magic? I am not that stupid to repeat Valentino's blunder and make a looser out of myself. So, rather than delving into the magic behind the UDF's, I let you figure it out for yourself.
Run this simple test, and see what you think.
1-Create & save this function:
Now run the following script:
Then run this script:
What do you see? and what do you think?
This simple test should give you, not only a lot of insight on UDF, but also and as an un-intended consequence, help you better understand how xdlg work.
Have at it.
What a looser!
Not only he ruined it for the magicians, but worse (I think) for the audience. You no longer wow when you see these magic tricks since now you know how they are done.
In one thread after another, I have heard enough from those who wow about UDF's and what they do, making UDF's look like magic tricks. Debating & debunking myths doesn't seem to make anyone change their mind that Santa is only an imaginary figure. There is no point in debating anymore. So now what: reveal the magic? I am not that stupid to repeat Valentino's blunder and make a looser out of myself. So, rather than delving into the magic behind the UDF's, I let you figure it out for yourself.
Run this simple test, and see what you think.
1-Create & save this function:
Code:
FUNCTION reset_x AS C ( ) ui_modeless_dlg_box("Reset X",<<%dlg% {position=2,2} This function resets the value of X to: "B"; {lf};<Close> %dlg%,<<%code% sleep(1) x="B" if a_dlg_button="close" ui_modeless_dlg_close("Reset X") end if %code%) END FUNCTION
Code:
dim global x as c="A" reset_x() ui_modeless_dlg_box("result of X",<<%dlg% The result of x is: {text=20,2 x}; <Close>; %dlg%,<<%code1% if a_dlg_button="close" ui_modeless_dlg_close("result of X") end if %code1%)
Code:
dim global x as c="A" ui_modeless_dlg_box("Reset X",<<%dlg% {position=2,2} This script resets the value of X to: "B"; {lf}; <Close> %dlg%,<<%code% sleep(1) x="B" if a_dlg_button="close" ui_modeless_dlg_close("Reset X") end if %code%) ui_modeless_dlg_box("result of X",<<%dlg% The result of x is: {text=20,2 x}; <Close>; %dlg%,<<%code1% if a_dlg_button="close" ui_modeless_dlg_close("result of X") end if %code1%)
This simple test should give you, not only a lot of insight on UDF, but also and as an un-intended consequence, help you better understand how xdlg work.
Have at it.
Comment