String To Integer Conversion
Hello,
I use Bartender 9.4 SR3
I Use text file as database.
I have a filed witch represent wieght number i.e: 182.7
I want to print on my label a round number 182
i.e:
if I have 182.3 I should have 182
if I have 182.7 I should have 183
I try many things but nothing succeed.
With VB Scripting I have an type mismatch error.
Thanks for your help.
Best regards.
0
-
to round a value using VB scripting, you'd want to use the script:
value = round(value)
a type mismatch usually occurs when your sample data is not numeric. You should change that in your data source to a number and it will work appropriately.
0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
1 Kommentar