LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
jmburnod
- VIP Livecode Opensource Backer

- Posts: 2729
- Joined: Sat Dec 22, 2007 5:35 pm
-
Contact:
Post
by jmburnod » Mon Jun 07, 2010 6:37 pm
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
https://alternatic.ch
-
jmburnod
- VIP Livecode Opensource Backer

- Posts: 2729
- Joined: Sat Dec 22, 2007 5:35 pm
-
Contact:
Post
by jmburnod » Mon Jun 07, 2010 6:42 pm
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
https://alternatic.ch
-
dunbarx
- VIP Livecode Opensource Backer

- Posts: 10330
- Joined: Wed May 06, 2009 2:28 pm
Post
by dunbarx » Mon Jun 07, 2010 10:03 pm
Yes, I never understood why a behavior had to point to a button, as opposed to any object. I'll ask...