Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
C0000005 with TEXTMERGE()
Message
From
12/06/2002 06:59:20
Lutz Scheffler (Online)
Lutz Scheffler Software Ingenieurbüro
Dresden, Germany
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00666832
Message ID:
00667265
Views:
24
Hi Sergey,
thanks, yes (You throw me out writing an Update) ::).

My Solution:

In an overall Header file
*Problem with VFP 7.0, need to be cleared if solved:
#DEFINE TEXTMERGE _TextMerge
in my UDF file:
*If TEXTMERGE changed
#IFDEF TEXTMERGE
*Store old TEXTMERGE
 #DEFINE d_TextM TEXTMERGE
*CLEAR constant
 #UNDEF TEXTMERGE
#ENDIF &&TEXTMERGE

PROCEDURE _TextMerge
 PARAMETERS;
  tcString AS CHARACTER

  RETURN STRTRAN(TEXTMERGE(tcString+CHR(0)),CHR(0),'')
ENDPROC &&_TextMerge

*If TEXTMERGE changed
#IFDEF d_TextM
*ReStore old TEXTMERGE
 #DEFINE TEXTMERGE d_TextM
*CLEAR constant
 #UNDEF d_TextM
#ENDIF &&d_TextM
But watch out, this will harm the use of SET TEXTMERGE too! You have to #UNDEF before!

Agnes
>Hi Agnes,
>
>You can create a wrapper function MyTextMerge() and change all occurences of TextMerge() to MyTextMerge() in your application.
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord

Weeks of programming can save you hours of planning.

Off

There is no place like [::1]
Previous
Reply
Map
View

Click here to load this message in the networking platform