Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Multiuser environment question
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01151640
Message ID:
01152017
Vues:
40
This message has been marked as the solution to the initial question of the thread.
No very easy way.
Make one class as following
**************************************************
*-- Class:        changesetting (f:\wda\myvcx.vcx)
*-- ParentClass:  custom
*-- BaseClass:    custom
*-- Time Stamp:   09/07/06 09:14:12 PM
*
DEFINE CLASS changesetting AS custom
	*-- Save Exclusive setting
	cexclusive = .F.
	*-- XML Metadata for customizable properties
	_memberdata = [<VFPData><memberdata name="cexclusive" type="property" display="cExclusive"/><memberdata name="getexclusive" type="property" display="GetExclusive"/></VFPData>]
	*-- SET EXCLUSIVE OFF BY DEFAULT
	getexclusive = .F.
	Name = "changesetting"

	PROCEDURE Destroy
		LOCAL lmacro
		lMacro = THIS.cExclusive
		SET EXCLUSIVE &lMacro
	ENDPROC

	PROCEDURE Init
		THIS.cExclusive = SET("EXCLUSIVE")
		IF this.GetExclusive
		   SET EXCLUSIVE ON
		ELSE
		   SET EXCLUSIVE OFF
		ENDIF
	ENDPROC


ENDDEFINE
*
*-- EndDefine: changesetting
**************************************************
after that insert this class in all your forms.
By default all this forms are with SET EXCLUSIVE OFF.
IF you want in form SET EXCLUSIVE ON set GetExclusive property to .t.


>any easy way to write set exculsive off in load method in each mothod.( i have more than 100 forms).
_______________________________________________________________
Testing displays the presence, not the absence of bugs.
If a software application has to be designed, it has to be designed correctly!
_______________________________________________________________
Vladimir Zografski
Systems Analyst
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform