Hi Vivien! Well, the docs are quite confusing in this point because they just mention that the parameter cannot be "0" if set_not_null(TRUE) was called. Anyway an empty string is usually non-NULL (especially in a C++ context). Maybe the docs and the method name could be improved. Thanks and regards, Johannes Vivien Malerba schrieb: > On 1/31/07, Johannes Schmid <johannes schmid gmx de> wrote: >> Hi! >> >> Is it possible to make a field/parameter of a GnomeDbForm or GnomeDbGrid >> mandatory? The user should be able to enter any text in the field so it >> should not be restricted by a combo box but the field should not be >> empty. >> > > Just get a pointer to the GdaParameter and call > gda_parameter_set_not_null() _before_ creating the form or grid (if > you do it after, then it will work but the label for the parameter in > the form won't have the little '*' at the end meaning the entry is > mandatory, though this could be corrected). > > Regards, > > Vivien >
Attachment:
signature.asc
Description: OpenPGP digital signature