[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: BB <adamnt42@xxxxxxxxx>
- Date: Fri, 19 Apr 2024 21:34:21 +0930
- To: user@xxxxxxxxxxxxxxxxxxxxxx
On 19/4/24 7:56 pm, Gianluigi wrote:
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?"Maybe something like this will be enough for you (*)? As long as this isn't heresy... Regards Gianluigi (*) Public Sub Main() Dim vIntero As Variant vIntero = 450000 Print IntValue(vIntero) vIntero = 2200000000 Print IntValue(vIntero) vIntero = -2200000000 Print IntValue(vIntero) vIntero = "PIPPO" Print IntValue(vIntero) End Private Sub IntValue(value As Variant) As Variant If value <= 2147483647 And If value >= -2147483648 Then Return value Return Null Catch Return Null End
As I said I have yet to find an answer to this. b
Re: Null value into an integer variable | Benoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx> |
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> |