[Gambas-user] Request property for gd.db.Result mode
BB
adamnt42 at gmail.com
Tue Nov 15 02:18:32 CET 2022
On 15/11/22 11:45 am, Benoit Minisini wrote:
> Le 14/11/2022 à 05:20, BB a écrit :
>> Benoit,
>>
>> Would it be possible that you could add a (readonly) property to the
>> Result class to indicate the mode of that result?
>>
>> I am passing some result objects between several classes in a project
>> and sometimes they are updateable and sometimes not (on purpose). At
>> the moment all one of these classes can do is to try to update the
>> result and if it gets an error then re-read the result in a
>> updateable mode and then do the update. This is extremely messy and
>> requires up to three accesses to the database.
>>
>> I have had a look at the CResult.c class but the level of C is well
>> beyond my abilities.
>>
>>
>> tia
>>
>> bruce
>>
>>
>> ----[ http://gambaswiki.org/wiki/doc/netiquette ]----
>
> If I add a "ReadOnly" or "Editable" boolean property, that tells if
> you can modify the Result contents, will it fit?
>
That would be fine. I think "ReadOnly" would be more consistent with
general Gambas.
More information about the User
mailing list