Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Form gives error when modifying in VFP8 or when running
Message
 
 
À
13/02/2003 10:23:18
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00752686
Message ID:
00752695
Vues:
27
Just a SWAG, but since you have DODEFAULT() in the INIT, the following could cause the errors if the parent method code relies on the private variables. You declare a private variable, but when you initialize its value, you left off the "a". e.g., PRIVATE m.acondensed then you have m.condensed = .F. Private variables are a little different that local or public. They have to be initialized before they can be "seen" by other methods being called by this method. The same applies to your m.amultcopies and m.multcopies variables. Once the INIT finishes running, these variables would lose scope as well.

>
>PROCEDURE Init
>	set STEP on
>	*--To see datasession window, unremark the next two lines:
>	*set step on
>	*activate window view
>	*UPDATES
>	*03/06/2002 TCHolzer Modified to add user forms to ctrlset table
>	PRIVATE m.acondensed,;
>	        m.amultcopies,;
>	        m.acn_name,;
>	        m.acn_printer,;
>	        m.acn_port
>	m.condensed=.F.
>	m.multcopies=.F.
>	m.acn_name=""
>	m.acn_printer=""
>	m.acn_port=""
>	DODEFAULT()
>ENDPROC
Mark McCasland
Midlothian, TX USA
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform