Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Pull a line of text from a multi-line memo field
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00545541
Message ID:
00545551
Vues:
10
This message has been marked as the solution to the initial question of the thread.
You can use ALINES() to parse lines from a memo filed into an array and ASCAN to find the row in the array.

>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.
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform