Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Bug -> ???
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
01133402
Message ID:
01133433
Vues:
12
This message has been marked as a message which has helped to the initial question of the thread.
Hi Rodolfo,

It's not a ??? bug but VFP documentation omission. From Fox 2.x help
  • Use braces { } to send printer codes or ASCII characters.
    For example,
    	
    ??? Chr(27) + Chr(65)
    * could be send as
    ??? "{27}{65}"
    As Jim suggested, you can use Chr(123) instaed of "{"


    >I have to send an instruction to the printer and I always got "Syntax Error". It looks strange, maybe a BUG. Take a look:
    >
    >
    >   ??? Chr(27)+"{"+Chr(65)
    >
    >
    >The problem is "{".
    >
    >
    >   ??? Chr(27)+Chr(65) && Works fine!
    >   ??? Chr(27)+"0" && Works fine!
    >   ??? "Etc..."  && Works fine!
    >
    >
    >This instruction Chr(27)+"{"+Chr(65) is to tell OKIDATA printer emulates Epson Commands.
    >
    --sb--
  • Précédent
    Suivant
    Répondre
    Fil
    Voir

    Click here to load this message in the networking platform