use a parallel array with hashes of the pictures. $MD5_1RF:=Generate digest($FirstBlobRF;MD5 digest <http://doc.4d.com/4Dv16/4D/16.1/Digest-Typ.302-3375503.de.html>)
one problem though: you will need to set the pictures into blobs first PICTURE TO BLOB ( Bild ; BildBlob ; Codec ) should do the trick, so the digest (a rather short string) will be identical for 2 identical pictures and thus easy to compare: for each array element calculate the hash and keep it in a parallel text array then calculating the hash for each picture to compare, you can even search in array! Hope this helps, cheers Alex > Am 12.07.2017 um 19:03 schrieb Chip Scheide via 4D_Tech > <[email protected]>: > > I have a picture array which has icons > I want to use it as a key to the contents of other (parallel) arrays. > > basically > if icon{1} = pic1 - do something > if icon{1} = pic2 - do something else > etc > . > . > . > > > any ideas? code? > > Thanks > Chip > > --------------- > Gas is for washing parts > Alcohol is for drinkin' > Nitromethane is for racing > ********************************************************************** > 4D Internet Users Group (4D iNUG) > FAQ: http://lists.4d.com/faqnug.html > Archive: http://lists.4d.com/archives.html > Options: http://lists.4d.com/mailman/options/4d_tech > Unsub: mailto:[email protected] > ********************************************************************** ********************************************************************** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/archives.html Options: http://lists.4d.com/mailman/options/4d_tech Unsub: mailto:[email protected] **********************************************************************

