Linking setvaluesets to images

Discussions about creating CAPI applications to run on Android devices
Post Reply
kakinyim
Posts: 42
Joined: January 16th, 2012, 6:38 am
Location: Remote/Virtual

Linking setvaluesets to images

Post by kakinyim »

Does anyone have an example of a setvalueset where the values are images (links to images)? I see "SetValueSet Function" documentation supports this through an array.
Gregory Martin
Posts: 1845
Joined: December 5th, 2011, 11:27 pm
Location: Washington, DC

Re: Linking setvaluesets to images

Post by Gregory Martin »

It is what you would expect. For example:
vsCodes(1) = 1;
vsLabels(1) = "Milk";
vsImages(1) = "milk.jpg";

vsCodes(2) = 2;
vsLabels(2) = "Soda";
vsImages(2) = "soda.jpg";

vsCodes(3) = notappl; // mark the end of the array

setvalueset(DISTRICT,vsCodes,vsLabels,vsImages);
Post Reply