Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Why CursorFill() is faster than CursorRefresh() in a CA?
Message
De
01/12/2010 11:12:31
 
 
À
01/12/2010 11:09:52
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows 7
Divers
Thread ID:
01491162
Message ID:
01491411
Vues:
52
>try with PACK or CursorFill()

I said I didn't know about the rest - but ZAP works fine





>
>PUBLIC oform1
>
>oform1=NEWOBJECT("form1")
>oform1.Show
>RETURN
>
>DEFINE CLASS form1 AS form
>
>
>	DoCreate = .T.
>	Caption = "Form1"
>	Name = "Form1"
>
>
>	ADD OBJECT grid1 AS grid WITH ;
>		Height = 200, ;
>		Left = 24, ;
>		Top = 36, ;
>		Width = 320, ;
>		Name = "Grid1"
>
>
>	ADD OBJECT command1 AS commandbutton WITH ;
>		Top = 6, ;
>		Left = 45, ;
>		Height = 27, ;
>		Width = 84, ;
>		Caption = "PACK", ;
>		Name = "Command1"
>
>
>	PROCEDURE Load
>		CREATE TABLE AA (BB I)
>		APPEND BLANK
>		APPEND BLANK
>		APPEND BLANK
>		APPEND BLANK
>		APPEND BLANK
>		APPEND BLANK
>		APPEND BLANK
>		LOCATE
>	ENDPROC
>
>
>	PROCEDURE command1.Click
>		SELECT AA
>                DELETE RECORD 1
>		PACK
>		APPEND BLANK
>		APPEND BLANK
>		APPEND BLANK
>		APPEND BLANK
>		APPEND BLANK
>		APPEND BLANK
>		APPEND BLANK
>		replace ALL bb WITH 2
>		LOCATE
>		 =m.thisform.grid1.Refresh()  && added this
>		&& BROWSE
>	ENDPROC
>
>ENDDEFINE
>
Gregory
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform