Troubleshooting
Problem
This technical note describes how to convert string values that store numbers to an actual number in SQA Basic (IBM Rational (R) Robot)
Resolving The Problem
How do I convert a string that holds a number into an actual number?
You can use the val command to convert strings to numbers. The following code
Snippet shows this:
Sub Main
dim mynumb as integer
dim test as string
test = "356"
mynumb = val(test)
mynumb = mynumb + 1
msgbox mynumb
End Sub
[{"Product":{"code":"SSSHDX","label":"Rational Robot"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"Documentation","Platform":[{"code":"PF033","label":"Windows"}],"Version":"2002.05.00.305.000","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]
Historical Number
114363365
Was this topic helpful?
Document Information
More support for:
Rational Robot
Software version:
2002.05.00.305.000
Operating system(s):
Windows
Document number:
330669
Modified date:
16 June 2018
UID
swg21136422