I am attempting to write a script from a button that grabs certain values and places them in a message or input box and then reacts to the input.However I get an error that the syntax is wrong.
Here is the current code
Sub Click(Source As Button)
Dim workspace As New NotesUIWorkspace
Dim uidoc As NotesUIDocument
Dim doc As NotesDocument
Dim a As Integer
Dim b As Integer
Dim c As Integer
Dim num As Integer
Dim msg As String
Set uidoc = workspace.CurrentDocument
Set doc = uidoc.document
a = doc.Item_Saleprice1
b = doc.Item_Special1
c = doc.Item_Clearance1
'Print "sales price" a "Special" b "Clearance" c
msg = Str(100)
num% = Cint(Inputbox$("Enter the price" & msg))
doc.QTY1 = num%
End Sub
This gives me a type mismatch error. I have tried various versions of STR(a) and as variant and string but all fail for syntax or mismatch error.
What I want to do is have the variable msg be a string of a, b, or c which are number fields.
However I will settle for just getting the value of A to display in the input box. The reason I am trying to do this in Script is so that I can use a refresh UIDoc to recalculate a computed field immediately.
Problem was the field was trying to return an Array.