Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Unicode
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Titre:
Divers
Thread ID:
00924042
Message ID:
00925301
Vues:
16
Because VFP 9 uses Unicode to render characters in a report, you actually can do this in a report, Eric.

In the following example, the text file contains the unicode characters that you want. For example, you say you got them from the charmap in Windows, so paste them into a TXT file using Notepad. At least in XP (haven't tried with other OS versions), Notepad understands Unicode. This will provide the unicode results you're after in the report output.

I am not sure how you could do the equivalent in a textbox.


>L<
ox = CREATEOBJECT("rl")

REPORT FORM ? object ox next 1

DEFINE CLASS rl as ReportListener
  ListenerType = 1
  
  PROCEDURE Render(;
        nFRXRecno, nLeft, nTop, nWidth, ;
        nHeight, nObjectContinuationType, ;
        cContentsToBeRendered, ;
        GDIPlusImage)

    DODEFAULT(;
        nFRXRecno, nLeft, nTop, nWidth, ;
        nHeight, nObjectContinuationType, ;
        FILETOSTR("c:\temp\Unicode.txt"), ;
        GDIPlusImage)

    NODEFAULT

  ENDPROC
  
ENDDEFINE  
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform