Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Programatically inserting text into a Rich Text Control
Message
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00565788
Message ID:
00566042
Views:
14
Kevin,
Try something like this:
lcTextToInsert = "-- " + TTOC(DATETIME()) + " KM --"
lnLen = LEN(lcTextToInsert)
WITH _screen.ActiveForm.oleRTF
	.text = .text + CHR(13)+CHR(10) + lcTextToInsert
	.selStart=LEN(.text) - lnLen
	.selLength=lnLen
	.selColor = 255
ENDWITH
HTH
>Craig,
>
>I also want to do this. I want to insert a date/time stamp with a users
>initials in red like this:
>
>
> -- 10/09/01 09:00 KM --
>

>
>I'd be grateful for any help you can provide.
>
>TIA
>
>Kevin
Daniel
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform