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.


Can we compare imagelist items?


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-02-2007, 04:36 PM
Cableguy's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: N 41º11'30.30" W 8º39'46.60"
Posts: 1,313
Default Can we compare imagelist items?

Hi, is it possible to compare two imagelist items?

In my hoppefully soon to be finished Pairs v2, I decided to embed all images into one file, and i'm not to sure on how to go from here...
The logic of the game is to compare two images, but as that is not really possible, I can only compare the file name...So my questions is, if I add each image to an imagelist will I still be able to compare them?

to set the image to its holder I have to do this code

PICn.Image=Imagelist.item(x)

But how to compare?
If PICn.Image=PICz.Image then dosomething - Is this workable?

I don't whant to have to restore al images before each game and then have to deleted them at the end...
__________________
Paulo Gomes
Porto, Portugal

PC: Dual-Core 1,8Ghz, 2GB RAM, 80GB HD
PPC: Qtek9000, 1GB SD

DLL Version Listing
Reply With Quote
  #2 (permalink)  
Old 06-02-2007, 06:03 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 3,132
Default

You could create an array and store the image index in the array:
Picn.Image = Imagelist.Item(x)
images(n) = x
To compare:
If images(n) = images(z) then ...
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
ImageList items as Reference? DaveW Questions & Help Needed 3 11-07-2008 08:35 AM
How I have compare date? epatrik Questions & Help Needed 4 09-20-2007 10:54 AM
How to save images after they have been placed in an imagelist XerVision Questions & Help Needed 2 07-13-2007 09:59 PM
I need examples for imagelist imagebutton sloopa Questions & Help Needed 2 05-19-2007 05:00 PM
How can i compare 2 Dates Fontanus Questions & Help Needed 3 05-04-2007 10:37 PM


All times are GMT. The time now is 11:22 AM.


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