Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Bug in Class Definitions?
Message
De
19/08/1999 10:23:30
Mark Hall
Independent Developer & Voip Specialist
Keston, Kent, Royaume Uni
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Titre:
Bug in Class Definitions?
Divers
Thread ID:
00255262
Message ID:
00255262
Vues:
52
Here's a problem that I've just encountered. VFP has a problem with & in text literals in class definitions. It's probably getting mixed up with macro substitution somewhere - When there are spaces around the & all is ok.

Here's a demo:-


LOCAL loForm
loForm = CREATEOBJECT("frmDemo")
loForm.show

READ EVENTS


DEFINE CLASS frmDemo AS Form

Caption = "Demo of ampersand problem"
PROCEDURE Unload
CLEAR EVENTS
ENDPROC

Add Object lbl1 AS lblDemo with top = 5, left = 5
ENDDEFINE

DEFINE Class lblDemo AS Label
AutoSize = .t.
Caption = "This&That"
ENDDEFINE
Regards
Mark

Microsoft VFP MCP
Menulib - OO Menus for VFP www.hidb.com/menulib
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform