Talk About Network



Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Clipper > Re: Nanfor quer...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 4 of 10 Topic 3837 of 3903
Post > Topic >>

Re: Nanfor query

by Charles Foot <chaz@[EMAIL PROTECTED] > Feb 12, 2008 at 09:34 AM

Klas Engwall wrote:
> Chaz,
> 
>> I can't get NG to run on my XP notebook, so I'm asking here instead.
> 
> Download the excellent Windows-based NG replacement WEG from
> http://www.davep.org/norton-guides/
and you will be back in business.
> 
>> I seem to recall that in the Nanfor file functions, there is a 
>> seek/search function. I thought it was FT_FSeek( string ), but it's
not.
>> Can anybody elucidate?
>> Basically, I want to open a text file and search it for a specific
string.
> 
> There is a whole group of functions for reading and writing text files
> where each line is considered to be a record. Things like FT_Fuse(),
> FT_Frecno(), FT_Fgoto(), FT_Freadln(), FT_Fskip() etc but no
> FT_Fseek(). You would have to do something like this (adapted from the
> NG) and inspect what FT_Freadln() returns:
> 
> FT_FUSE( "text.c" )
> DO WHILE ! FT_FEOF()
>    cRecord := FT_FREADLN()
>    // Check cRecord for the string you are looking for
>    FT_FSKIP()
> ENDDO
> 
> Regards,
> Klas
> 
> -------
> klas dot engwall at engwall dot com
> 
> http://www.engwall.com/clipper/
> 
> The LFN Library for Clipper
> The LanMan Library for Clipper
> The NFPAT1A Timeslice release patch for the Nanforum Toolkit
Hi Klas
thanks for the link to WEG... now installed. As you say, there is no 
FT_FSeek function.... I'll just have to do it the long way. Cheers




 10 Posts in Topic:
Nanfor query
Charles Foot <chaz@[EM  2008-02-11 10:28:59 
Re: Nanfor query
"N:dlzc D:aol T:com   2008-02-10 17:35:24 
Re: Nanfor query
klas.engwall@[EMAIL PROTE  2008-02-11 01:41:11 
Re: Nanfor query
Charles Foot <chaz@[EM  2008-02-12 09:34:49 
Re: Nanfor query
"AUGE_OHR" <  2008-02-11 19:34:45 
Re: Nanfor query
Charles Foot <chaz@[EM  2008-02-12 09:40:11 
Re: Nanfor query
"Stephen Quinn"  2008-02-11 21:40:46 
Re: Nanfor query
sebas22 <nospam@[EMAIL  2008-02-11 23:20:55 
Re: Nanfor query
sebas22 <nospam@[EMAIL  2008-02-11 23:27:03 
Re: Nanfor query
"Stephen Quinn"  2008-02-11 23:48:12 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri May 16 23:35:07 CDT 2008.