>>Hi everybody,
>>
>>I have this code in form's button:
>>
>>********************************************************************
>>* Description.......: cmdSelectFiles.Click
>>* Calling Samples...:
>>* Parameter List....:
>>* Created by........:
>>* Modified by.......: Nadya Nosonovsky 11/14/2001 04:09:00 PM
>>********************************************************************
>>local DTitle, lcFilter, lcPath, lcStartDir, lnFiles, lnI
>>local array laTbls[1]
>>laTbls[1]=''
>>DTitle = "Select BldMstr like Files to check structure..."
>>* Text (*.txt)|*.txt|Pictures (*.bmp;*.ico)|*.bmp;*.ico
>>lcFilter = "BldMstr Files (*.dbf)|*.dbf|All Files (*.*)|*.*"
>>lcPath=''
>>lcStartDir= "\redp\work\"
>>lnFiles = File_Chooser(@laTbls, @lcPath, m.DTitle, m.lcStartDir, m.lcFilter)
>>
>>if m.lnFiles > 0
> <b>dimension thisForm.aTbls(alen(laTbls))</b>
>> for lnI=1 to m.lnFiles
>> thisform.aTbls[m.lnI]=addbs(m.lcPath)+laTbls[m.lnI]
>> next
>>endif
>>thisform.nSelFiles =m.lnFiles
>>
>
>Nadya,
>
>I created a modal form (using the form base class) and did this with no problem, except I had to move the dimension statement (see above). I only ran it within the development environment (VFP6 SP5, I'm running W2K).
>
>Does your code after the file_chooser() function call execute? Or does it hang right there? My guess is it hangs there, or else you would have caught the dimension problem...
I have Windows 95, main menu calls unvisible form, which in turns calls my application non-modal form. This form has a button, which calls modal form, this modal form has a button to invoke File_Chooser. I haven't caught the bolded problem yet (thanks), because I was testing for only one selection. It was at the end of the day, so I didn't play with it much.
I doubt, your correction will help with fixing this problem, though...
If it's not broken, fix it until it is.
My Blog