Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Boudewijn Lutgerink
  Where is Boudewijn Lutgerink?
 Hoonaardstraat, Driel
 Netherlands
 Boudewijn Lutgerink
 To: Mahesh Trivedi
  Where is Mahesh Trivedi?
 NA
 India
 Mahesh Trivedi
 Tags
Subject: RE: how to add line in memo field
Thread ID: 120983 Message ID: 120985 # Views: 44 # Ratings: 1
Version: Visual FoxPro 7 Category: Databases, Tables and SQL Server
Date: Wednesday, February 07, 2007 10:26:40 AM         
   


> Hi,
>
> how to add line in memo field like...
>
> repl (memofieldname)with exp1
> repl (memofieldname)with exp2
>
> out put
> exp1 exp2
>
> i want to
>
> exp1
> exp2
>
> thanks
>
> Mahesh

You forgot the carriage return and linefeed.

#DEFINE CRLF Chr(13)+chr(10)
replace (memofieldname) with exp1+CRLF
replace (memofieldname) with memofieldname+exp2+CRLF


BTW. The way you coded it could never give an output like exp1 exp2
In the second line you replace the entire content with exp2, meaning that the output can just be exp2


Boudewijn LutgeĀ®ink
The attitude of "An eye for an eye and a tooth for a tooth" will make this world toothless and blind (Gandhi)

COMPLETE THREAD

how to add line in memo field Posted by Mahesh Trivedi @ 2/7/2007 9:25:11 AM
RE: how to add line in memo field Posted by Boudewijn Lutgerink @ 2/7/2007 10:26:40 AM
RE: how to add line in memo field Posted by Borislav Borissov @ 2/7/2007 10:45:09 AM