Method syntax for a composite pointer index

chuck hinkle chuckbo at hinkles.us
Sat Nov 1 08:39:43 CST 2003


> BaseObject method -- this is just another field.
> 
> You have 2 ULONG numbers.
> You want get their composition -- so this should be ULLONG number.
> 
> Formula is: 
>   a) do bit shift to left on 16 of first number
>   b) add second number
> 
> fldComposite = new vULLong( "Composite",
>                            "(Component_ptr << 16) + Container_ptr",
>                            kV_Indexed + kv_Unique )
> 
> I think this should work.



And thank you very much for this example. Very ingenious. I hope that I can
try it out later this afternoon or tonight, and I'll let you know how it
works for me.
chuck



More information about the Valentina mailing list