What you are after is string concatenation, so to help you with all your other upcoming problems as well, I’ll do it this way: http://lmgtfy.com/?q=libreoffice+basic+string+concatenation+operator
Edit:
InputBox Function [Runtime] - LibreOffice Help has the following snippet:
Sub ExampleInputBox
Dim sText As String
sText = InputBox ("Please enter a phrase:","Dear User")
MsgBox ( sText , 64, "Confirmation of phrase")
End Sub
Now all you need is to convert sText to integer with Int()
and multiply it, e.g b = a * 2
, but I’d leave implementing it as an exercise for the reader.