[Gambas-user] Request property for gd.db.Result mode
Benoit Minisini
benoit.minisini at gambas-basic.org
Tue Nov 15 02:15:20 CET 2022
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?
--
Benoît Minisini.
More information about the User
mailing list