Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
File Chooser doesn't want to disappear
Message
De
14/11/2001 19:32:07
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00581793
Message ID:
00581855
Vues:
29
This message has been marked as a message which has helped to the initial question of the thread.
>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...
Steve Gibson
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform