MMCC MASTHEAD
Mid-Michigan Computer Consultants - Bay City, Michigan
 


CONTENTS       (old style)
Mid-Michigan Computer Consultants
509 Center
Bay City, Michigan

Sales (989) 892-9242
Support (989) 686-8860

Plb-0240.cfm v1.0


plb-t010.cfm
 

ANSI Standard PL/B Language and Visual PL/B

EditText Object Notes

NOTE TO OUR READERS
This web resource is written for our own use. But we feel strongly that the PL/B language should be shared with the software community. So feel free to use this at will! BUT PLEASE... if you find errors or omissions or have a better way to do something. TELL US! Dialog helps us all. Send e-mail to: support@mmcctech.com


EditText Object

The EditText object is one of the most fundamental objects for the Visual PL/B programmer. It's so common that it seems easy. These notes are just to remind us of some things that we seldom use. I won't even write about the basics for now, just the things I need to remember.

RichEditText Object

There has been some question about how to use this object in PL/B. The following discussion was found on the Sunbelt Forum in the "Example Programs" section under the topic "Richedittext" posted by Matthew Lake on 8/06/2004.

Matt has an example program: Download Link

Robert Leidy came back on 3/05/2012 with the following:
Where the text is formatted like a word document? If so I've found a way to accomplish this using the rich-text object. What I do is build the document I want in Micorosoft Word (because I need a spell checker), and then save in the rich-text format. As this point you could open that .rtf file in a text editor and view the rich text code, it will looks somewhat like this...
"\cf2\f1\'b7\tab\b\f0 ASCII Printable Characters\cf0\b0 : ASCII decimal values from 32 to 126."
...lots of jibberish but still plain-old-ascii data.

If you want to distribute the .rtf file with your application, you could at runtime open the .rtf file as a "file" and read the contents into a string and then setprop the richtextobject,text=thatbigstring.

Or if you didn't want to distribute the .rtf you could take that data and within your program...

rtfData init "(cut and paste the rtf data here)" and then at runtime just setprop richtext,text=rtfData

I've found an optional-additional step that makes things I little cleaner. I re-open the .rtf document in Microsoft WordPad (aka write.exe), and hit the save button. A lot of the fluff-extra-jibberish gets removed making that bigString of data smaller.




v1.10

Write to MMCC Technical Support at:               Send e-mail to MMCC.
MMCC - Technical Support
600 W. Midland
Bay City, MI 48708
(989) 686-8860
© 1997 - 2021 MMCC - All Rights Reserved


Debugging Information
ColdFusion Server Enterprise 2021,0,0,323925
Template /pl-b/plb-0240.cfm
Time Stamp 02-Aug-21 08:14 PM
Locale English (US)
User Agent CCBot/2.0 (https://commoncrawl.org/faq/)
Remote IP 3.231.230.177
Host Name 3.231.230.177


Execution Time

Total Time Avg Time Count Template
0 ms 0 ms 1 D:/Websites/bcra-mlscom/mmcctech/PL-B/PLB-Disclaimer.cfm
0 ms 0 ms 1 D:/Websites/bcra-mlscom/mmcctech/PL-B/Plb-t010.cfm
0 ms 0 ms 1 D:/Websites/bcra-mlscom/mmcctech/PL-B/Plb-t900.cfm
0 ms 0 ms 1 top level D:\Websites\bcra-mlscom\mmcctech\pl-b\plb-0240.cfm
0 ms  STARTUP, PARSING, COMPILING, LOADING, & SHUTDOWN
0 ms  TOTAL EXECUTION TIME
red = over 250 ms average execution time


Scope Variables

CGI Variables:
AUTH_PASSWORD=
AUTH_TYPE=
AUTH_USER=
CERT_COOKIE=
CERT_FLAGS=
CERT_ISSUER=
CERT_KEYSIZE=
CERT_SECRETKEYSIZE=
CERT_SERIALNUMBER=
CERT_SERVER_ISSUER=
CERT_SERVER_SUBJECT=
CERT_SUBJECT=
CF_TEMPLATE_PATH=D:\Websites\bcra-mlscom\mmcctech\pl-b\plb-0240.cfm
CONTENT_LENGTH=0
CONTENT_TYPE=
CONTEXT_PATH=
GATEWAY_INTERFACE=CGI/1.1
HTTPS=off
HTTPS_KEYSIZE=
HTTPS_SECRETKEYSIZE=
HTTPS_SERVER_ISSUER=
HTTPS_SERVER_SUBJECT=
HTTP_ACCEPT=text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
HTTP_ACCEPT_ENCODING=br,gzip
HTTP_ACCEPT_LANGUAGE=en-US,en;q=0.5
HTTP_CONNECTION=Keep-Alive
HTTP_COOKIE=
HTTP_HOST=mmcctech.com
HTTP_REFERER=
HTTP_URL=/pl-b/plb-0240.cfm
HTTP_USER_AGENT=CCBot/2.0 (https://commoncrawl.org/faq/)
LOCAL_ADDR=192.168.162.152
PATH_INFO=
PATH_TRANSLATED=D:\Websites\bcra-mlscom\mmcctech\pl-b\plb-0240.cfm
QUERY_STRING=
REMOTE_ADDR=3.231.230.177
REMOTE_HOST=3.231.230.177
REMOTE_USER=
REQUEST_METHOD=GET
SCRIPT_NAME=/pl-b/plb-0240.cfm
SERVER_NAME=mmcctech.com
SERVER_PORT=80
SERVER_PORT_SECURE=0
SERVER_PROTOCOL=HTTP/1.1
SERVER_SOFTWARE=Microsoft-IIS/10.0
WEB_SERVER_API=
Session Variables:
PLB_PRIVDIAG=0
Debug Rendering Time: 15 ms