Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
101 VFP7 Things, Part 19 - TextMerge()
Message
From
08/01/2001 19:54:36
 
 
To
08/01/2001 19:05:20
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00460905
Message ID:
00460926
Views:
13
Mike,

Textmerge is not new. I believe it was even present in FPW 2.6

Perry


>There's a new function called TextMerge() in VFP7, that works like this. You put in a string and it returns it back.
>
>?TEXTMERGE('Test1') && Returns "Test1"
>
>BUT WAIT! It gets better :-)
>
>It also does TextMerge()s, surprisingly, for example:
>
>?TEXTMERGE('Test1 <<_screen.Caption>>') && Returns "Test1 Microsoft Visual FoxPro"
>
>There is another parameter that lets you recurse through until no more merges need to be done. For example, where:
>
>lcCaption = '<<_screen.caption>>'
>?TEXTMERGE('Test1 <>')

>
>would return "Test1 <<_screen.Caption>>", this:
>
>?TEXTMERGE('Test1 <>',.t.)
>
>return "Test1 Microsoft VisualFoxPro", and of course:
>
>lcCaption = '<>'
>?TEXTMERGE("Test1 <>", .T.)

>
>Would hose the entire app. Also, the 3rd and 4th parameters let you specify the beginning and ending delimiters for the merge, but I think it only lets you specify two characters for each tag, no more no less.
>
>There's also this blip in the help: "This function ignores all non-COM object references, including references to Visual FoxPro objects." whici I can't figure out what its getting at. I've used COM properties and non-COM properties in TextMerge() and they both work fine.

(On an infant's shirt): Already smarter than Bush
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform