Casting question

Ruslan Zasukhin sunshine at public.kherson.ua
Wed Dec 17 16:32:33 CST 2003


on 12/17/03 4:23 PM, Michael de Haan at mdeh at earthlink.net wrote:

> Ruslan,
> 
> (I do not think this has posted yet...apologise if duplicate)
> 
> Please help understand...not sure again if this is Valentina or good
> OOP issue.
> 
> 
> 
> InDataBase(TestAddRecords)
> 
>  dim RecID as integer  <-----RecID declared as integer
> .
> .
> .
> .
> curs = SQLSelect( "SELECT RecID FROM Person") // select all records
> res = curs.FirstRecord
> .
> .
> RecID =  VULong(curs.Field(1) ).value <---value of the Recid of
> boPerson is now Cast as VUlong   (originally typed as integer)
> 
> mTask.TestAddRecords(  RecID )

So you wonder, why ulong is assigned to integer?

Just RB have ONLY integer type.  4 bytes

Valentina use C/C++ - like names.


In c++ ulong  also is integer 4 bytes



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