[VSDK ] Access to cursor fields

Ramin Firoozye ramin at wizen.com
Fri Jan 24 07:19:04 CST 2003


> 
> Also, back to your idea, I wonder now on next 2 points
> 
> 1) may be we should allow usage of GetValue() on left side also?
>         
>     curs->Value("Field1") = (short) 5;
> 
> 2) may be even shorter?
> 
>     curs("Field1") = (short) 5;
>

Wouldn't this also work with an overloaded 'operator[]' so you can do:

      curs["Field1"] = (short) 5;

It seems more natural than having a method-call on the left-hand-side.

Just a thought,
Ramin



More information about the Valentina mailing list