[VSDK ] Access to cursor fields

Ruslan Zasukhin sunshine at public.kherson.ua
Fri Jan 24 20:26:49 CST 2003


on 1/24/03 5:19 PM, Ramin Firoozye at ramin at wizen.com wrote:

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

Agree.

-- 
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://listserv.macserve.net/mailman/listinfo/valentina
-------------------------------------------------------------



More information about the Valentina mailing list