clearing imageData!

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
haitham
Posts: 6
Joined: Fri Dec 19, 2008 7:47 pm

clearing imageData!

Post by haitham » Mon Mar 23, 2009 7:13 pm

Hi,

When I have something like the following code:

-- MyImage is an image area
-- SomeData is a binary data of an image
set the imageData of image "MyImage" to SomeData


Now the image of "SomeData" appears in the "MyImage" area.
How can I clear and remove the the image from the image area "MyImage"?

I tried:
set the imageData of image "MyImage" to ""
set the imageData of image "MyImage" to empty

but both didn't work.

Anyone can help please.

Thanks,
Haitham

Klaus
Posts: 14198
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Post by Klaus » Mon Mar 23, 2009 7:39 pm

Hi Haitham,

like this:
...
put empty into img "MyImage"
## :)
...


Best from germany

Klaus

haitham
Posts: 6
Joined: Fri Dec 19, 2008 7:47 pm

Post by haitham » Mon Mar 23, 2009 8:24 pm

Hi Klaus,

Well .. that's tricky :/ but still nice.

It seems that I am still didn't get familiar with Revolution. Programming in Revolution is different somehow from programming using C++, Visual Basic or ActionScript 3.0. In Revolution, you have to know exactly how you should write the right sentence.

Anyway, thank you very much for you quick response.

Regards,
Haitham

Post Reply