Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Opposite of APPEND GENERAL
Message
From
05/02/2002 08:49:21
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
05/02/2002 08:19:14
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00615383
Message ID:
00615409
Views:
21
This message has been marked as a message which has helped to the initial question of the thread.
>Is there an opposite of APPEND GENERAL? One that allows me to copy a general field into a file on disk?
>
>Hilmar.

No direct way. Copy particular record to a temp table and extract from its .fpt :
Hin = fopen(lcTemp+".fpt")
hout=fcreate(lcOutFileName)
lnSize=fseek(hin,0,2)
fseek(hin,0x204,0) && Move file pointer to offset 0x204 where file size is stored
lnSize = 0
for ix=4 to 1 step -1 && Get file size
  lnSize=lnSize+asc(fread(hin,1))*256^(ix-1)
endfor
fwrite(hout,fread(hin,lnSize),lnSize)
=fclose(hin) and fclose(hout)
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
Previous
Reply
Map
View

Click here to load this message in the networking platform