Basic4ppc - Windows Mobile Development  

Go Back   Basic4ppc - Windows Mobile Development > Main Category > Questions & Help Needed
Home Register FAQ Members List Search Today's Posts Mark Forums Read

Questions & Help Needed Post any question regarding Basic4ppc.


retrieve images and index


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-18-2008, 12:48 PM
Newbie
 
Join Date: May 2008
Posts: 2
Default retrieve images and index

hi,

I have 2 great problems,

1) i used AddEvent for create multiple call at same sub which is the method for retrieve the number of control that have generated the event?

i.e.

sub myevent
for x=1 to 33
if sender=control("image"&x) 'don't work!!!!
generator=x
endif
next
end sub


2) if I put many images in several Image controls using Imagelist control

for example:

Control("Image" & A).image = Imagelist1.item(4)

if I want retrieve the image contents in this Image control i try to use:

if Image1.image = Imagelist1.item(4) then
....
....
endif

but don't work!!!


thanks for help and excuse me for the incorrect english
Reply With Quote
  #2 (permalink)  
Old 05-18-2008, 01:08 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 1,466
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
Default

1) If sender = "image" & x Then ' sender returns a string

2) Not sure what you want to do here but you cannot compare images. You will need to keep a separate record of index of the image assigned to an Image control if you want to check the image being used.
Reply With Quote
  #3 (permalink)  
Old 05-18-2008, 01:29 PM
Newbie
 
Join Date: May 2008
Posts: 2
Default

great!!!

I named my control "Image" but sender return "image".

I used compare 2 picture with visual basic... ok i'll use separate record index



thank you very much.. agraham
Reply With Quote
  #4 (permalink)  
Old 05-18-2008, 01:42 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 1,466
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
Default

Quote:
Originally Posted by lux1963 View Post
I named my control "Image" but sender return "image".
Yes. B4PPc lower-cases all control names used internally.
Quote:
I used compare 2 picture with visual basic...
Probably it was comparing the image names or filenames. TIn b4PPC the Image property is the actual bitmap of the Image.[/quote]
Quote:
thank you very much.. agraham
You're welcome
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Embed and retrieve images in a data file Erel Code Samples & Tips 10 02-18-2008 07:23 AM
Addrow like removerow(index) Vito Questions & Help Needed 3 02-04-2008 01:09 PM
TextBox, Index & Arraylist Peptone Questions & Help Needed 3 11-19-2007 03:58 PM
Index problem in the IF statement markus Questions & Help Needed 2 06-03-2007 01:10 PM
Index was out of range error in version 5 HARRY Questions & Help Needed 6 05-20-2007 08:16 AM


All times are GMT. The time now is 10:56 PM.


Powered by vBulletin® Version 3.6.10
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0