Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Buffereing and multiple tablereverts ..
Message
De
07/04/2001 11:17:39
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00493164
Message ID:
00493217
Vues:
15
>Hello Nadya
>
>Thanx for your suggestion.
>
>Oldval() and Curval() are of no help ...
>
>I just wrote a small class to buffer the records.
>Now I can Save() and Restore() them when needed.
>
>Here's the Class Code.
>
>
>
>
>* BufferClass.Prg
>*
>* This was defined by me in a VCX using the class builder.
>* Sorry if ther are any mistakes
>
>DEFINE Class Buffer as Custom
>
>	cTable = ""
>	oData = .f.
>
>	PROCEDURE Save
>
>		LOCAL loData
>		IF type("this.cTable") != "C"
>			RETURN
>		ENDI
>		SELE (this.cTable)
>		SCATTER name loData
>		this.oData = loData
>
>	ENDPROC
>
>	PROCEDURE Restore
>
>		IF type("this.oData") = "O" and type("this.cTable") = "C"
>			SELE (this.cTable)
>			GATHER name this.oData
>		ENDIF
>
>	ENDPROC
>
>ENDDEFINE
>
>
>
>I know this might be a very lame way of doing it but until I get another solution I will stick to this one.
>
>Thanx again !

Oh my. Same thread with a letter difference :)
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform