Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
How we can load images(JPEG,.bmp etc) in to QV so that we can use them in text boxes, buttons etc. based on some conditions. I dont want to use info load. I want to pull the images into the scripts (if possible) and then display them conditionally. Is it possible?
Regards,
Sharma
Here is the script which load image from particular directory specified into QVW.
for each image in filelist ('*.png'); // Here it loads png image
let j= subfield(subfield(image,'\',-1),'.',1);
Smiley: // Table name
LOAD * INLINE [
Smile, Location // Fields under the table
$(j), $(image) // Image name and the location
];
next image; // loop to load all images
bundle info load * // Which load and save images from external location.
resident Smiley;
Regards,
Srini.
Hi,
Don't you want to use Bundle Load ?
Regards,
Srini.
Hi Srini,
Can you please explain if possible ?
Here is the script which load image from particular directory specified into QVW.
for each image in filelist ('*.png'); // Here it loads png image
let j= subfield(subfield(image,'\',-1),'.',1);
Smiley: // Table name
LOAD * INLINE [
Smile, Location // Fields under the table
$(j), $(image) // Image name and the location
];
next image; // loop to load all images
bundle info load * // Which load and save images from external location.
resident Smiley;
Regards,
Srini.
Hi Srini,
Thanks for your help but I have done it other way around. This is also quite a logic.
Regards,
Sharma