Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How can I recognize a file to delete
Message
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00573345
Message ID:
00573369
Views:
24
>>1. You can use ADIR() function to get a list of the files in the specified directory into array.
>>
>>2. You can split first field into two fields 160 characters long for import and than join them again during processing. You can use a memo field to store it after processing.
>
>Thanx for the responce Sergey...
>ADIR sounds like what I want
>I am on a new workstation which does not contain help files until next week


VFP 7 help file is online at http://msdn.microsoft.com/nhp/default.asp?contentid=28000961&frame=true

ADIR() help is at http://msdn.microsoft.com/library/en-us/foxhelp98/lraddco_22.asp?frame=true

>I have-to ask
>When I
>? ADIR(*.*)
>I get 'function name is missing'
>What's the correct way to use this function?
DIMENSION laFileList[1]
lnFiles = ADIR(laFileList, "*.*")
FOR i=1 TO lnFiles
  ? laFileList[i, 1]   && File Name
ENDFOR
>So after an FREAD() [I think that's it) I can partition the line in two and put it back together for fwrite() right?

The FREAD() function can read up to 64k characters.
The size of the character field in the foxpro table is limited to 254 characters. The size of character variable can be up to 16 Mb.
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform