CREATE TABLE Ships ( Name C( 40 ), Desc M ) INSERT INTO Ships ( Name, Desc ) VALUES ( "Exxon Valdez", "Billions unpaid! is used to place the contents of a disk file into a string memory variable. TXT" ) && 3.2 mb in size FOR i = 1 TO ALEN( wp Lines ) wp Lines[i] = FGETS( h ) ENDFOR t2 = SECONDS() ?
t2-t1, "seconds" && 0.000 seconds FOR i = 1 TO ALEN( wp Lines ) ?
On the surface, handling text isnt very sexy and seemingly not very interesting. This document is split into three sections: , included on the conference CD as War And Peace.
TXT, which along with thousands of works of literature, are available on the web, including here among others.
wp Lines[i] ENDFOR FCLOSE( h ) LOCAL t1, t2, x, h LOCAL ARRAY wp Lines CLEAR t1 = SECONDS() h = FOPEN( "War And Peace.
TXT" ) && 3.2 mb in size FSEEK( h, 1500000 ) && Move the pointer x = FREAD( h, 1000 ) && Read 1000 bytes t2 = SECONDS() ?
This article was originally written using Visual Fox Pro version 6, and has since been updated for VFP 7 and VFP 8.
Some facts about VFP strings Here are a few things you need to know about VFP strings: In functional terms, there is no difference between a character field and a memo field.