Page 1 of 1

setting the behavior of a field

Posted: Mon Jun 07, 2010 6:37 pm
by jmburnod
Hi All,

Someone have an idea about this ?

Code: Select all

set the behavior of btn "bNextImage" to the long id of button "bNextImage" of card "theme1"
work fine but

Code: Select all

 set the behavior of fld "Texte" to the long id of fld "Texte" of card "theme1"
return
Message execution error:
Error description:

Regards

Jean-Marc

Re: setting the behavior of a field

Posted: Mon Jun 07, 2010 6:42 pm
by jmburnod
OUppS !!!
The answer is in the doc

The behavior property is a reference to a button containing the script to use. It is in the format of a long ID.

Maeby this post is useful for someone

Re: setting the behavior of a field

Posted: Mon Jun 07, 2010 10:03 pm
by dunbarx
Yes, I never understood why a behavior had to point to a button, as opposed to any object. I'll ask...