Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Empty cursoradapter cursor
Message
From
14/01/2004 14:08:35
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00866479
Message ID:
00866849
Views:
20
>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform