Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Pull a line of text from a multi-line memo field
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Pull a line of text from a multi-line memo field
Miscellaneous
Thread ID:
00545541
Message ID:
00545541
Views:
37
I am working on a program that reads a form DB. For example, my form is called myform.scx. I browse the form and see some fields such as class and properties.

I find all of the textbox fields by looking at the class memo field for "textbox" and display the value and row that it is in the form DB. That works, but while I am on that row I also want to look at the Properties memo field and return the ControlSource=whatever line and the HelpContextID=whatever line and plug those values into another DB. How would I do it? I have tried a few different commands, but haven't got the right answer. Here's the code I use to find the textbox fields in my form/form DB.
USE f:\myforms\myform.scx IN 0 SHARED
CLEAR
STORE "textbox" TO gcString1
LOCATE FOR ATCLINE(gcString1,class)!=0
? MLINE(class, ATCLINE(gcString1,class)) + " "
?? recno()
DO WHILE NOT !EOF()
	CONTINUE
	? MLINE(class, ATCLINE(gcString1,class)) + " "
	?? recno()
ENDDO
CLOSE ALL
CLEAR ALL
I tried a similar technique to find "ControlSource=" and "HelpContextID=" in the properties memo field, but I am doing something wrong. Thanks for the help.
Steve Kramer
Kramer & Kramer Design
"Home of Go Cartoons"
Web Site: www.stephenkramer.com
Would you believe Far Side Lite?
More than 270 original cartoons.
Next
Reply
Map
View

Click here to load this message in the networking platform