Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Unicode
Message
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Title:
Miscellaneous
Thread ID:
00924042
Message ID:
00925301
Views:
18
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  
Previous
Reply
Map
View

Click here to load this message in the networking platform