Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Strange compiler error
Message
De
21/11/2006 11:19:07
 
 
À
21/11/2006 10:59:07
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Divers
Thread ID:
01171446
Message ID:
01171465
Vues:
7
>Here is a code that generates a compiler error:
>"Unable to find Visual class library ERROR"
>NEWOBJECT('frmMessageBox', 'base.vcx', '', ThisForm, ;
>'This barcode is not recognized as a User ID. ' + CHR(13) + ;
>'Click OK if you want to scan the ID again', 'Error', 2)
>
>If I remove CHR(13) then it compiles without the error. What am I missing?
>
>Thanks

I guess that trying to pass that string, complete with CR/LF is a bridge too far for the general purpose eparameter1, which isn't specifically a char param.

How about you pass it an non-printing char, say "~" as part of the message string, then let the .Init() of frmMessageBox insert the CHR(13) in place of the/each tilde?
- Whoever said that women are the weaker sex never tried to wrest the bedclothes off one in the middle of the night
- Worry is the interest you pay, in advance, for a loan that you may never need to take out.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform