main logo
Subject: Re: unable to update the cursor error
Author: Richard Knierim
Posted: 2001/01/05 09:17:24
 
View Entire Thread
New Search


<I><FONT COLOR="#663300">I don't know if it helps but I listed all the readonly problems in thread 5965 on 10/21/2000</FONT></I>

This situation has happened to me so many times that I decided to document the steps that I took to get this error to occur. they are as Follows:

1) Created the Project and set the default diectory.
2) I then ran =StartCb(.T.)
3) then I created a subclass of the iDeLoader named testdataenvironment.
4) then I modified the adaaenv.prg with the following:
***************************************************
DEFINE CLASS TestDataEnvironment AS testEnvironment
FUNCTION LoadCursors()
DIMENSION this.aCursors[1]
this.aCursors[1] = 'v_TerminalLocation'
ENDFUNC
ENDDEFINE

DEFINE CLASS v_TerminalLocation AS CDynamicViewCursor
CursorSource = 'v_TerminalLocation'
ENDDEFINE
****************************************************
5) Then I created a subclass of iSessionEnvironment called testEnvironment and set the cDatabase property to Test(the name of my DBC)
6) Then I created a subclass of the iBizObjRetValForm called test form and I added the subclassed iSessionEnvironment class to the new form class, along with the subclass of the DeLoader, and a grid of my remote SQL view. (iSecureGrid)and Volla! I got the error 'Cannot Update the Cursor'!
7) I then started to remove all of my changes that I made to the project... 1 by 1 in reverse order and I tried to recompile after each step. Unfortaunately nothing helped.


I am sure that the normal process of creating a Codebook Application is done somewhat differently, but I am unable to find any books on 6.0, so
any help in that area would be appreciated as well.

Thanks to all of you for your continued help!
Rick
 
©2001 Richard Knierim
<-- Prior Message New Search Next Message -->