Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Help with a Foxpro programming question
Message
De
09/09/2000 12:57:36
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
09/09/2000 12:44:44
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00414601
Message ID:
00414607
Vues:
16
>Dear Cetin Thank you, but how do I declare the variables for the directories and text files. I assume I must do that first ?
>
>Thanks.
>
>
>Phil


Phil,
Declarations for variables can be done but not necessary all the time.
lcDir = getdir()
Declares variable 'lcDir' and assigns value of getdir() result. You could say (and better do it that way) :

local lcDir
m.lcDir = getdir()

m.lcDir variable type is determined by the value assigned (here character as getdir() returns).

You could also say for your case (where path is already known) :
m.lcDir = 'c:\data\'
_AppendFiles(m.lcDir)

function _AppendFiles
lparameters tcPath
local lnFiles, ix
m.lnFiles = adir(aTextFiles, m.tcPath+'*.txt')
for m.ix =  1 to m.lnFiles
 wait window nowait 'Appending : '+m.tcPath+aTextFiles[m.ix,1] 
 append from (m.tcPath+aTextFiles[m.ix,1]) delimited with character :
endfor
wait clear
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform