position of an object (from Script)
Mark Schonewille
m.schonewille at economy-x-talk.com
Thu Apr 22 14:57:58 EDT 2010
Hi Shani,
"Amir" is a string, not an object description. Object descriptions (or
object references or object expressions) look like:
field x
field "Address"
the long id of fld "Address"
button 52 of card "Settings" of stack "Preferences"
stack "Special Dialog" of stack "Main Project"
et cetera.
--
Best regards,
Mark Schonewille
Economy-x-Talk Consulting and Software Engineering
Homepage: http://economy-x-talk.com
Twitter: http://twitter.com/xtalkprogrammer
We have updated TwistAWord. Download TwistAWord 1.1 at http://www.twistaword.net
Op 22 apr 2010, om 20:28 heeft Shani het volgende geschreven:
> I use this
> set the location of "amir" to 350,200
> but it give error
> execution error at line n/a (Chunk: error in object expression) near
> "aamir", char 1
>
> -----Original Message-----
> From: use-revolution-bounces at lists.runrev.com
> [mailto:use-revolution-bounces at lists.runrev.com] On Behalf Of Mark
> Schonewille
> Sent: Thursday, April 22, 2010 7:28 PM
> To: How to use Revolution
> Subject: Re: position of an object (from Script)
>
> Hi Shani,
>
> You might want to search the dictionary for "location". You also might
> want to search for "width" and "height".
>
> You also will want to know that you can change almost all properties
> of objects with the "set" command.
>
> Spending an evening with the documentation will definitely be very
> useful. Reading the messages on this list would help you too.
>
> --
> Best regards,
>
> Mark Schonewille
>
> Economy-x-Talk Consulting and Software Engineering
> Homepage: http://economy-x-talk.com
> Twitter: http://twitter.com/xtalkprogrammer
>
> We have updated TwistAWord. Download TwistAWord 1.1 at
> http://www.twistaword.net
>
> Op 22 apr 2010, om 19:04 heeft Shani het volgende geschreven:
>
>> How can i set the position of an object through script.
>>
>>
>>
>> Like in object property profile. We set size and position (location).
>>
>>
>>
>> How can I set the value like
>>
>>
>>
>> Position of ball x"243" and y= 22
>>
>>
>>
>> Object start from that position
>>
>>
>>
>> Regards,
>>
>> SHANI
More information about the use-livecode
mailing list