Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Filling a Memo
Message
From
08/08/2000 16:16:22
 
 
To
08/08/2000 15:06:02
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00402429
Message ID:
00402482
Views:
10
>I'm trying to write some code that will fill a memo field. I want it to look like this:
>
>Invoice created. 08Aug00 01:45:00
> FC-3456 "24yd. Fiboptic Cable" was added on 08Aug00 01:45:00
> RT-1234 "NIC 10B-T Concentrator" was added on 08Aug00 01:45:00
> ET-7890 "GYS Ethnet card" was added on 08Aug00 01:45:00
>
>I know the following code brings up errors, but from it I hope you can better understand what I'm trying to say. I'm hoping that someone will have some suggestions on how I can do this correctly.
>
>SELECT products
>local firstline
>firstline = "Invoice Created "
>Thisform.Edit1.Value = firstline + " " + DMY(Date()) + " " + Time() + ;
>CHR(13) + ;
>FOR RECORD 1 TO RECCOUNT()
> prod_id + " " + details + " was added on " + DMY(Date()) + " " + Time() + CHR(13)
>ENDFOR
>

Among other things, DOS/Win expects a CR/LF pair as a line terminator...

>Rodney
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Reply
Map
View

Click here to load this message in the networking platform