Home » Developer & Programmer » Forms » How set image value null (winxp or 2000)
How set image value null [message #283858] Wed, 28 November 2007 05:36 Go to next message
hamidmahmood
Messages: 30
Registered: August 2006
Member
dear
any one tell me that how can i set image value null
for eg
if :abc.a='Y'
then
:imag=read_image_file('path', , )

else

image set null -- how can i do this

Note

image does not store only show at run time.

[Updated on: Wed, 28 November 2007 05:38]

Report message to a moderator

Re: How set image value null [message #283862 is a reply to message #283858] Wed, 28 November 2007 05:39 Go to previous messageGo to next message
azamkhan
Messages: 548
Registered: August 2005
Senior Member
Dear you cann't set an image value to NULL...
But.. But..! a good programmer must not has the word IMPOSSIBLE in his/her dictionary...

Now what you can do is. You create an image with same color as the colour of image item on canvas. When you want to clear the image just call that image and the user will feel that the image is cleared.

Regards,
Azam Khan
Re: How set image value null [message #283921 is a reply to message #283862] Wed, 28 November 2007 07:16 Go to previous messageGo to next message
Littlefoot
Messages: 20891
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
I'd rather hide image item; something like this simplified example:
:system.message_level := 25;

  read_image_file('image_name.gif', 'GIF', 'image_item_name');
  if not form_success then
     set_item_property('image_item_name', displayed, property_false);
  end if;

:system.message_level := 0;
Re: How set image value null [message #284102 is a reply to message #283862] Wed, 28 November 2007 22:06 Go to previous messageGo to next message
hamidmahmood
Messages: 30
Registered: August 2006
Member
Thnaks brother for replay

i have this idea which u say i create othe image file when on when find it appear .but i want know this for information
Re: How set image value null [message #284185 is a reply to message #284102] Thu, 29 November 2007 02:06 Go to previous message
Littlefoot
Messages: 20891
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
In my opinion, that's an overkill; why, but WHY would you do the extra effort by creating an image which looks exactly like a form background and display this "nothing" when there's no real image to display? Just hide that item, for heaven's sake!

Or is there something wrong with me?
Previous Topic: Prevent from leaving TEXT_ITEM
Next Topic: history of all error
Goto Forum:
  


Current Time: Sun Dec 04 20:51:04 CST 2016

Total time taken to generate the page: 0.11193 seconds