[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Null value into an integer variable


> ... regarding the "data", which may be null. No matter if we are talking
> about the displayed value or not there are still cases when an integer
> variable remains "not set yet". I dont expect that Gambas integer
> variables could have a Null value, just that there must be some way to
> get around this.
>

Three possible solutions.
1. Instead of integer, use variant.
2. If possible use values beyond scope to indicate NULL. Example in age
field you can use -1 when it is NULL.
3. Use two variables to hold the information. Integer and boolean to
indicate if it is really set or not.


Jussi

References:
GRIDVIEW color and size"Mayost Sharon" <sharon@xxxxxxxxx>
Re: GRIDVIEW color and sizeT Lee Davidson <t.lee.davidson@xxxxxxxxx>
Re: GRIDVIEW color and sizeT Lee Davidson <t.lee.davidson@xxxxxxxxx>
Re: GRIDVIEW color and size"Mayost Sharon" <sharon@xxxxxxxxx>
Re: GRIDVIEW color and sizeT Lee Davidson <t.lee.davidson@xxxxxxxxx>
Null value into an integer variable"Mayost Sharon" <sharon@xxxxxxxxx>
Re: Null value into an integer variableGianluigi <gradobag@xxxxxxxxxxx>
Re: Null value into an integer variableBB <adamnt42@xxxxxxxxx>
Re: Null value into an integer variableBenoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx>
Re: Null value into an integer variableBB <adamnt42@xxxxxxxxx>