Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Vfp50 - Setting the Data Path
Message
De
13/03/1997 11:51:56
 
 
À
13/03/1997 11:14:45
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00024068
Message ID:
00024111
Vues:
48
>>>>>>>I would like to make a form that lets the user set the data path. How do I tell vfp50 where the data files will
>>>>>>>be?
>>>>>>
>>>>>>You can use two ways: either use SET PATH TO, or OPEN DATABASE using LOCFILE() when you start app. It's a good idea to have config.dbf placed in default directory with Datadirectory field.
>>>>>
>>>>>Good Morning Ed...
>>>>>
>>>>>If I use the SET PATH TO option... would that look something like this.
>>>>>
>>>>>1. Have form to ask for the PATH
>>>>>2. in the CLICK EVENT code would be..
>>>>> set path to thisform.path_name.value
>>>>>
>>>>>Would I put this code in the INIT EVENT of a form that needs the data
>>>>>path?
>>>>>
>>>>>and
>>>>>
>>>>>What about the oApp property value that you told me before. You
>>>>>said to add a property called DATAPATH. How do I use this?
>>>>
>>>>Use textbox bound to oApp.datapath or Config.datapath, and prompt user to accept or change this value.
>>>
>>>ok... where do I invoke the code that changes my data path?
>>>What EVENT?
>>
>>Thisform.cmdSave.click() or Thisform.textbox.valid()
>
>ok.. Do I set this up off an option off an menu? like...
>
>menu option - SETUP DATA PATH

There are million ways of doing application design.
Edward Pikman
Independent Consultant
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform