Linking setvaluesets to images
Linking setvaluesets to images
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.
-
- Posts: 1845
- Joined: December 5th, 2011, 11:27 pm
- Location: Washington, DC
Re: Linking setvaluesets to images
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);
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);