Setting visible

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

Post Reply
Andycal
Posts: 144
Joined: Mon Apr 10, 2006 3:04 pm

Setting visible

Post by Andycal » Mon Sep 17, 2007 2:19 pm

This should work shouldn't it?

on mouseUp
set the visible of "recone" to true
end mouseUp

"recone" is a rectangle. I also tried:

on mouseUp
set the visible of rectangle "recone" to true
end mouseUp

First one says it can't find the object, second says there's a missing 'to'.

Very odd.

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Post by Mark » Mon Sep 17, 2007 2:29 pm

Andy,

This is not odd at all.

"recone" is a string, not rectangle.

rectangle is a keyword, not a rectangle. Check the docs for information about the keyword rectangle.

Maybe you are trying to refer to a graphic or an image?

Best,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

Andycal
Posts: 144
Joined: Mon Apr 10, 2006 3:04 pm

Post by Andycal » Mon Sep 17, 2007 2:46 pm

D'oh!

Yeah, it's a graphic. Works now!

Post Reply