Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help with CursorAdapter Generate Class for MySQL (CABuilder.prg)

Status
Not open for further replies.

lazarocd

Programmer
Aug 27, 2013
1
AR
Hi, Greetings to all members of the group:
I lower the CABuilder, generating a library VCX a CursorAdapter object for each table in the remote database, I am using it with MySQL 5.1.71 and 5.1.12 with ODBC, wanting to create the library with me every single table generated for a table and throws me this error:

Last Logged Error During Build:
Error: Error: 1752 Method: AddClass Line: 608
1752
_cabase Class is in use by MODIFY CLASS.
_cabase
. NULL.
. NULL.
. NULL.
. NULL.

May be due to this error and it does not generate a class for each table that I have in the database? Someone used the CABuilder to do with MySQL? I think the original file only worked with Oracle, SQL Server and this is a modification to work on MySQL, the file it down here:


Thank you very much.
Greetings.

PD: My English is bad
 
> _cabase Class is in use by MODIFY CLASS.

Close the class designer.
Close the library node of the base class
In the command window issue: Clear All Extended

Now you can be sure that class is not in use anymore.

Or restart VFP.

Because if you create your final table CA classes based on _cabase, that can't be done, if the class is modified. Or the other way: If a class is currently modified you can't instanciate it and even not inherit it. And a class can be in the modification state, even though the class designer already is closed.

What's your code to generate child classes? Do you do this programmatically at all?

Bye, Olaf.
 
I googled a bit and found what CABuilder.prg is.

Whatever caused _cabase to be in the state it was. Just restart foxpro, don't open any class, just your project, if cabuilder.prg depends on it being open to add vcxes to it (I still haven't downloaded and used cabuilder.prg yet and don't know how you set it up, configure it or what other prerequisites it requires you to care for).

Then start it.

Also perhaps see the tutorial by Bernard Bout: And the download should come with a readme, shouldn't it?

Bye, Olaf.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top