New Valentina-REALbasic Tutorial

Chuck Pelto cbpelto at pcisys.net
Mon Oct 4 10:37:08 CDT 2004


I've entered the code in the tutorial, up to page 19 of the 
documentation, where it calls for the student to compile and run.

Here are my observations.

Errors(?) in the Tutorial:

Page 9, line of code for instancing the ULong field reads:

	LongFld = new VULong( "ulong_fld” )

It should read as:

	ULongFld = new VULong( "ulong_fld” )

[Note: It's a typo; missing the leading "U".]

Page 11 and 12, documentation says to make new menu handlers, but uses 
Sub FileNew() instead of RB's Function FileNew() when you create a menu 
handler to deal with the command for making a new file.

Page 16,  the documentation says that the Adding records function 
encoded into the boPersons object will be called by a menu item. 
However, the tutorial does not specify how that menu handler is 
supposed to read.

Page 17, documentation calls for an item called mCallerWindow, however 
this item is not created anywhere prior to this line of code. 
Therefore, you get an error about property or method not existing.

Page 17, documentation calls for making calls to the PopulatePanes 
method from Window1. However, this method is not being recognized as 
existing in Window2, despite the method being declared as "Public" in 
Window1.  [Note: Should these have been generated at the App level?]

The source code in the Add, Update and Delete buttons dragged over from 
Window1 into Window 2 is generating multiple errors. Most of them about 
method or property not existing in Window2, specifically PopulatePanes, 
CollectPanes. This despite the fact that these methods in Window1 are 
set to Public. [Note: Should these have been generated at the App 
level?] Also, with respect to the problem about source code for buttons 
from Window1 dragged and dropped into Window2, mDatabase is not 
recognized in Window2.

Still working away on this. Hope you can advise me on what needs to be 
done to resolve these issues.

Regards,

Chuck Pelto


More information about the Valentina mailing list