Assigning selection to a string variable

Post Reply
jrfoster
Posts: 1
Joined: Tue Jan 14, 2025 11:27 pm

Assigning selection to a string variable

Post by jrfoster »

I am trying to parse text within a textmaker document.
The following code appears to be valid:
tm.ActiveDocument.Selection.SetRange ParagraphStart, ParagraphStart + 11

But the following does not work (generates a syntax error):
A$ = tm.ActiveDocument.Selection.SetRange ParagraphStart, ParagraphStart + 11

Can I assign paragraph text to a string so that I can search within that string (using InStr(), for example)?
Post Reply

Return to “BasicMaker NX and 2024 for Windows”