>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.