>>>>>Do you mean OFN_ALLOWMULTISELECT ? If that's what you mean, it's a flag to allow you to select more than one file. However my function is returning a STRING. So to get this to work you have to change it to return as LONG (pointer).
>>>>>
>>>>
>>>>Yes, that's what I mean. Can you please add a sample to the dialog form?
>>>>
>>>
>>>Yes I can. But before I add this, are there anymore request/problems ? So I can upload it once <vbg>
>>>
>>
>>Don't know yet <g> I was playing with SavePicture VFP function and displaying icons in the grid. I have it all working now, but as usual, I don't like the result :) The icons look too big and I'm not sure, they are true icons. I don't know how exactly should I create an icon file having an object reference to it. I'm using IconBuddy class, I can send you my modified version, if you'd like and have a minute <g> to look into it.
>>
>>
>
>Since you say that, I think I just put the sample here <g>
>
>
>#Define c0 chr(0)
>#Define OFN_ALLOWMULTISELECT 0x00000200
>
>Declare Long CD_GetFile in HTWindow as CD_GetMultiFiles ;
> String cStartDir, String cStrFilter, Long hWndParent, ;
> Long nPosition, Long nX, Long nY, ;
> Long uFlags, Long uFlagsEx, ;
> String cWndTitle, String cBtnCaption
>
>pBuffer = CD_GetMultiFiles( 'C:\', Null, 0, 0, 0,0, ;
> OFN_ALLOWMULTISELECT,0, 'Multi select file', '&Select' )
>cBuffer = sys( 2600, pBuffer, 255 )
>nLen = at( c0+c0, cBuffer ) - 1
>If (nLen > 0)
> cBuffer = left( cBuffer, nLen )
> nFileCounts = ALines( aFiles, cBuffer, c0 )
> ? 'Path name: ', aFiles[1]
> If (nFileCounts > 1)
> For nX = 2 to nFileCounts
> ? 'Filename: ', aFiles[ nX ]
> Next nX
> endif
>endif
>
Thanks a million again. Sorry for not answering earlier, I didn't notice I have more replies.
If it's not broken, fix it until it is.
My Blog