Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
BUG: Set class's Name change the object's Class property
Message
De
06/12/2007 09:22:01
Lutz Scheffler (En ligne)
Lutz Scheffler Software Ingenieurbüro
Dresden, Allemagne
 
 
À
06/12/2007 08:40:30
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Divers
Thread ID:
01273530
Message ID:
01273567
Vues:
12
Fabio,

what do you expected if you mix up the clases name?

in a
DEFINE CLASS classname	AS class
 NAME	= 'classname'
the name classname need to be consitent. If not, it's your fault. The only thing is, that it compiles.

use a vcx, then anything will be fine.


BTW, have tried to skip name completely?

Agnes
>
>Agnes, is already difficult write programs with a deterministic language,
>but with one not deterministic is an insanity.
>
>Check this:
>
>CLEAR
>
>w = CREATEOBJECT("OptionButton")
>
>z = CREATEOBJECT("MyOpt2")
>
>* this hide the VFP baseclass !!!
>
>x = CREATEOBJECT("OptionButton")
>
>* this return .F.
>? PEMstatus(z.Class,"Newproperty",5)
>
>y = CREATEOBJECT("MyOpt3")
>
>* this return .T. NOW !!!
>? PEMstatus(z.Class,"Newproperty",5)
>
>DEFINE CLASS MyOpt2	AS OPTIONBUTTON
> NAME	= 'OptionButton'
>
>ENDDEFINE &&MyOpt2	AS OPTIONBUTTON
>
>DEFINE CLASS MyOpt3	AS OPTIONBUTTON
> NAME	= 'OptionButton'
>
> Newproperty = "ghost property"
>
>ENDDEFINE
>
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord

Weeks of programming can save you hours of planning.

Off

There is no place like [::1]
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform