Could you help?

Ruslan Zasukhin sunshine at public.kherson.ua
Tue Dec 16 21:35:40 CST 2003


on 12/16/03 9:05 PM, Michael de Haan at mdeh at comcast.net wrote:

> 
> On Dec 16, 2003, at 5:28 AM, Ruslan Zasukhin wrote:
> 
> 
> 
> Empty table have RecID = 0.
> 
> 
> 
> 
> Ruslan,  
> So, if you were to do something like this
> 
> found = BaseObject.GoToRecID( recID )
> 
> where recID=0, as soon as there was even 1 record in the bo, found would
> return "false" ? 

yes

> Ie there is only one condition where recID is true and that
> is when the record is undefined, by which you mean empty base object?

Yes, empty Table/BaseObject have RecID = 0
    this means undefined record.


Note, that with case of GoToRecID( recID ) you can also return false if you
- try access DELETED record
- try access record with some big ReCID that not exists in table.


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