[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Null value into an integer variable
[Thread Prev] | [Thread Next]
- Subject: Re: Null value into an integer variable
- From: Gianluigi <gradobag@xxxxxxxxxxx>
- Date: Fri, 19 Apr 2024 14:33:53 +0200
- To: user@xxxxxxxxxxxxxxxxxxxxxx
Il 19/04/24 14:26, BB ha scritto:
On 19/4/24 9:43 pm, Benoît Minisini wrote:Le 19/04/2024 à 14:04, BB a écrit :That's good but it doesn't address the original problem. Integers cannot be null, when sometimes it is true. You are addressing the display problem but not the actual value problem of "why cant I set an integer variable to null?" As I said I have yet to find an answer to this. bBecause 'Integer' is a native CPU datatype, and CPU has no null for its native datatypes (with the exception of floating point numbers that could be null, but can't because of the standard). Only datatypes that are pointers can be null. Regards,A fact that I fully appreciate, Benoît. However the problem remains 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.
The code I proposed, although simple, serves that purpose Regards Gianluigi
Re: Null value into an integer variable | BB <adamnt42@xxxxxxxxx> |
GRIDVIEW color and size | "Mayost Sharon" <sharon@xxxxxxxxx> |
Re: GRIDVIEW color and size | T Lee Davidson <t.lee.davidson@xxxxxxxxx> |
Re: GRIDVIEW color and size | T Lee Davidson <t.lee.davidson@xxxxxxxxx> |
Re: GRIDVIEW color and size | "Mayost Sharon" <sharon@xxxxxxxxx> |
Re: GRIDVIEW color and size | T Lee Davidson <t.lee.davidson@xxxxxxxxx> |
Null value into an integer variable | "Mayost Sharon" <sharon@xxxxxxxxx> |
Re: Null value into an integer variable | Gianluigi <gradobag@xxxxxxxxxxx> |
Re: Null value into an integer variable | BB <adamnt42@xxxxxxxxx> |
Re: Null value into an integer variable | Benoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx> |
Re: Null value into an integer variable | BB <adamnt42@xxxxxxxxx> |