Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
C0000005 with TEXTMERGE()
Message
De
12/06/2002 06:59:20
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Allemagne
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00666832
Message ID:
00667265
Vues:
23
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]
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform