Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: khubaib khalid
  Where is khubaib khalid?
 HaroonAbad
 Pakistan
 khubaib khalid
 To: Cetin Basoz
  Where is Cetin Basoz?
 Izmir
 Turkey
 Cetin Basoz
 Tags
Subject: RE: copy to text
Thread ID: 228326 Message ID: 228334 # Views: 1 # Ratings: 0
Version: Visual FoxPro 9 SP2 Category: General VFP Topics
Date: Monday, May 18, 2009 11:02:41 AM         
   


> >
> > COPY TO mytxt.txt DELIMITED WITH , WITH CHARACTER ';'
> > 

> > I want to copy a numaric filed as 1,2,3,4...........
> > but with this command it is being like this
> > ,1,
> > ,2,
> > ,3,
> > ....
> > how it will be done with my desire
>
>
handle = fcreate('myTxt.txt')
> select myTable
> scan
>  if recno() > 1
>     fwrite(m.handle, ',')
>  endif
>  fwrite( m.handle, ltrim(str( myTable.myNumField )))
> endscan
> fclose(m.handle)

>
> Cetin Basoz
>
> .Net has got better.Think about moving - check my blog:
> Blog (main)
> Blog (mirror)

Cetin i error my be in this line fwrite( m.handle, ltrim(str( myTable.myNumField )))
please see again thanks

ENTIRE THREAD

copy to text Posted by khubaib khalid @ 5/18/2009 10:39:26 AM
RE: copy to text Posted by Yousfi Benameur @ 5/18/2009 10:50:05 AM
RE: copy to text Posted by Cetin Basoz @ 5/18/2009 10:50:46 AM
RE: copy to text Posted by khubaib khalid @ 5/18/2009 11:02:41 AM
RE: copy to text Posted by Cetin Basoz @ 5/18/2009 11:10:59 AM
RE: copy to text Posted by khubaib khalid @ 10/4/2009 5:40:09 AM
RE: copy to text Posted by Stefan Wuebbe @ 5/18/2009 10:53:17 AM
RE: copy to text Posted by Anders Altberg @ 10/4/2009 3:40:39 PM
RE: copy to text Posted by khubaib khalid @ 10/4/2009 4:18:21 PM