Casting question

Ruslan Zasukhin sunshine at public.kherson.ua
Wed Dec 17 16:36:15 CST 2003


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

> RecID =  VULong(curs.Field(1) ).value <---value of the Recid of
> boPerson is now Cast as VUlong   (originally typed as integer)
> 
> mTask.TestAddRecords(  RecID )
> 
> 
> and
> 
> (BoTask:) TestAddRecords(PersonID as integer)
> 
> mPersonPtr.value = PersonID <---- RecID is passed as VUlong(which I
> understand is the type needed for a ptr) but in BoTask,  "PersonID" is
> typed as an integer which is then passed to mPersonPtr.  Why do we have
> to have to follow the order of integer---> cast to Vulong ----->
> integer. I thought that an integer and VUlong are the same thing?  Is
> there something about Valentina or is this good programming? Or have I
> asked enough yet  :-)

Michael,

    VULong -- this is Valentina field type.

Above line can be made in 2 steps:


    dim fldULong as VULong

    fldULong = VULong(curs.Field(1) )

    RecID = fldULong.value
                    ^^^^^^^ this is what we asign to integer





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