Hi guys, when making dialogs and it's associated controls, I always made each control seperate. ie on * sclick, dclick, edit init etc all had their own controls. For my control panel I'm working on I'm using a different tact. This time i'm grouping it together using if ($devent == sclick) etc etc. So far it's working out ok, though it's many several lines long, and after tackling various bracket issues I have it working for the most part.
Now I'm onto the on edit events and for the life of me, it's just not working.
I've tried this...
if ($devent == edit) {
if ($did = 96) {
if ($left($did(96).text,96) != $null) did -e $dname 97
else did -b $dname 97
Then tried to clean it up using an $iif (though I'm not sure the syntax is correct)...
if ($devent == edit) {
if ($did = 96) {
did $iif($did(96).text) == $null,-b,-e) $dname 97
}
}
I've tried nesting it using different bracket forms to no avail. I have two questions.
(A) Does the code look ok?
(
Do I need to place this in any specific area?
All of the varios *click events are all on the same section, though the init has it's own area. SOrry for the long winded post. I hope someone can offer me some advice ![]()
Thanks ![]()
*EDIT* To correctly add my second code in