Hello to all Bascom experts.
My question is: Can i put limit range to a variable if i have a formula that calculates this variable. The idea is the following:
This formula can make values with result, that i don`t want to use and i want to eliminate/ignore. Let`s say i want to use everything above value of 1... and to eliminate values from 1 down to 0
I other words to have a minimum (at least) limit. Values <1 to be ignored
Example: calculation gives me result of 0 - i want this value not to be consudered and to be ignored
The lower value to be considered as "good" to be 1.00
May be there is a way in the DIM command to "tell" the compiler that this variable cannot be 0 ? I know it`s strange but that is why i ask, if there is a way to do it.
My question is: Can i put limit range to a variable if i have a formula that calculates this variable. The idea is the following:
This formula can make values with result, that i don`t want to use and i want to eliminate/ignore. Let`s say i want to use everything above value of 1... and to eliminate values from 1 down to 0
I other words to have a minimum (at least) limit. Values <1 to be ignored
Example: calculation gives me result of 0 - i want this value not to be consudered and to be ignored
The lower value to be considered as "good" to be 1.00
May be there is a way in the DIM command to "tell" the compiler that this variable cannot be 0 ? I know it`s strange but that is why i ask, if there is a way to do it.