>>It represents a zero based offset of the icon in the actual executable. An executable or dynamic link library can contain multiple icons. This little code snippet, demonstrates how to find out how many icons are in a particular EXE or DLL
DECLARE INTEGER ExtractIcon IN Shell32;
>> INTEGER hInst, STRING @lpszExeFileName,;
>> INTEGER nIconIndex
>>lcfile = "C:\Program Files\Microsoft Office\Office\Winword.exe"
>>? ExtractIcon(0, @lcfile, -1)
>
>George,
>
>Very cool. I understand a bit more of this stuff each time I ask you something... Thanks!
>
Renoir,
Sure thing. BTW, you can (although it's not very stable in VFP) actually display these icons on a VFP form. It's a bit tough, but you could, for example, use the technique to create an About... dialog that you could use with any application. In fact, I've done just that.
George
Ubi caritas et amor, deus ibi est