V4RB NilObject question

Ruslan Zasukhin sunshine at public.kherson.ua
Fri Dec 19 10:47:12 CST 2003


on 12/19/03 7:11 AM, Hugh Justham at hugh at bullmedia.com.au wrote:

Hi Hugh,

Please check 

 if you have call ValentinaInit() in the Application.open() event?


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

-- 
Best regards,
Ruslan Zasukhin      [ I feel the need...the need for speed ]
-------------------------------------------------------------
e-mail: ruslan at paradigmasoft.com
web: http://www.paradigmasoft.com

To subscribe to the Valentina mail list go to:
http://lists.macserve.net/mailman/listinfo/valentina
-------------------------------------------------------------



More information about the Valentina mailing list