V4RB NilObject question

Hugh Justham hugh at bullmedia.com.au
Fri Dec 19 15:41:18 CST 2003


Please help,

I am trying to access a database in an RB project

Mostly following the tutorial I have created a database and base object with
fields

The database and base object appear to be fine but when I open a window with
edit fields and buttons to display fields from records I get a
NilObjectException error in this statement

   mDataBase.mItem.SetBlank

And in 

   res = mDataBase.mItem.FirstRecord

 

I have declared 'mDatabase as POSdb' as a property of the  window and also
of the App class


'POSdb' is the name of my vDataBase class
'PLUItem is the name of my vBaseOject class

'mItem as PLUItem'  is a property of POSdb




There must be some pretty fundamental that I am missing in how I instantiate
a database and base object and pass them to the window.

Many thanks

Hugh



More information about the Valentina mailing list