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

Re: Null value into an integer variable


Am 19.04.24 um 10:55 schrieb Mayost Sharon:

But when I put an Null value into a variable of integer type it gives
an error

Is this normal?

For me yes, this is logical, because Integer is a number and Null is not a number.

The variable with the datatype 'Integer' in Gambas is the equivalent of the number itself. It makes no sense that an integer variable in Gambas contains any other thing than an integer number.

A column in a table in a database with the type integer can be seen as a container that can integer contain numbers or not. If there is no number in it then it's state is Null.

Alles Gute

Christof Thalhofer

--
Dies ist keine Signatur


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>