Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
GetLineFromChar method of RichText control
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Third party products
Title:
GetLineFromChar method of RichText control
Miscellaneous
Thread ID:
00164680
Message ID:
00164680
Views:
69
I need to use the GetLineFromChar method of the RichText control to
determine how many lines are in the text box. I pass the position of
the last character, and sometimes it returns an empty string, a NULL, or sometimes an outrageous number such as 30500 or -24772. Does anyone know what is going on?

As an alternative, is there anyway to determine the length of the text
in inches? I thought I could use the FontMetric function to return the height in pixels and multiply by the number of lines in the textbox, then divide by the number of pixels in an inch for the current resolution.

Any help would be greatly appreciated.

Thanks, Gary
Reply
Map
View

Click here to load this message in the networking platform