Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Empty cursoradapter cursor
Message
De
14/01/2004 14:08:35
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00866479
Message ID:
00866849
Vues:
22
>So far so good... :)
>
>Only way I could get the VFP CA to work is adding PUBLIC cCust_id to the main program before calling the main form.
>
>PUBLIC cCust_Id
>m.cEmp_Id = CHR(27)+"###########"+CHR(27)
>Do Form MAIN1
>Read Events
>
>now it's working, even the above doesn't seem very nice.
>
>I'v noticed that dataenvironment.cname.cursorrefresh() does the both REQUERY() and TABLEUPDATE(). Do you know if the usage of cursorrefresh() is a must or can you use REQUERY() and TABLEUPDATE() too?
>
>
>AT

Hi Arto,

You should override CursorAdapter.AutoOpen method to open cursor with NODATA.
DEFINE CLASS EmptyCA AS CursorAdapter
	FUNCTION AutoOpen()
		NODEFAULT
		RETURN this.CursorFill(.F.,.T.)
	ENDFUNC
ENDDEFINE
Thanks,
Aleksey.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform