Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

loading Icon file from database (very very urgent)

Status
Not open for further replies.

FaisalHenry

Programmer
Dec 19, 2000
32
US
is there a way to load icon files (*.ico) from a database
to imagelist instead of hardcoding them using loadpicture?
 
Read the image paths into a variable (sIconPath, say), and then do LoadPicture sIconPath

Simon
 
ok, so if my database structure is like this:
PictureName|thePicture
myicon (BLOB file)--> the icon, BLOB type

i changed it to someting like this
PictureName|thePicture
myicon c:\database\icons\myicon.ico --> string type

and do a loop
while not rsPicture.EOF
sPath = rsPicture.fields("thePicture").value
loadpicure sPath
rsPicture.Next
Wend

is this what you are suggesting ?
 
You may have to change the line loadpicture sPath, but that is essentially what I am talking about.
Simon
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top