Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Filling a Memo
Message
De
08/08/2000 16:16:22
 
 
À
08/08/2000 15:06:02
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00402429
Message ID:
00402482
Vues:
11
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform