Quantcast
Channel: Jason Andrews Blog
Viewing all articles
Browse latest Browse all 33813

RE: Updating a form in Skill

$
0
0
Hi Matthias, Essentially the API access hiSetFieldEnabled(button t) is about the same as accessing the button structure and changing the enabled attribute, but I think that your question is more about the name scoping and access. For example the button variable can (and should be) local to your procedure that builds the form fields and the form, but the form variable itself has to be global - you can refer to it locally as form and this is fine but outside of the scope ( let or prog for example) you can refer to it as myform . So at a global scope you can do myform->button->enabled = ! myform->button->enabled to toggle the enabled state, or you could use hiSetFieldEnabled(myform->button t) to set it to be enabled. If you didn't even use a let() or prog() statement I still would not try to refer to the 'button' variable directly, only through the 'hierarchy' of the form structure; then we are referring to the button that is placed/instantiated on the form. Hopefully this helps explain things a little? Best regards, Lawrence.

Viewing all articles
Browse latest Browse all 33813