Page 1 of 1

Linking setvaluesets to images

Posted: September 27th, 2017, 12:37 pm
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.

Re: Linking setvaluesets to images

Posted: October 4th, 2017, 1:21 pm
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);