Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi All,
I have 10 variables, where I want the user to change the value in these variables based on certain criteria.
I could just have something like this where the user could just change it.But I find it awkward to add the qty
I would like to have an input box something like the image below, and that would populate the variable
I don't like it, it can be quite cumbersome
Anyway, I think I have a solution I got from the API guide
here it is, I have a variable called input.picking.ops
And I added this to the Edit Module
SUB inputpickingops
oldtext = ActiveDocument.Evaluate("input.picking.ops")
t = ActiveDocument.GetApplication.InputBoxEx("Enter New Variable Value for input.picking.ops :",oldtext)
ActiveDocument.Variables("input.picking.ops").SetContent t,true
END SUB
With this result
Alan,
I'm probably missing something - but why don't you use the regular QV input box object?
Regards,
Michael
Hi,
you can use QV inputbox object as Michael mentioned.
You can define variables and link them to input boxes
I don't like it, it can be quite cumbersome
Anyway, I think I have a solution I got from the API guide
here it is, I have a variable called input.picking.ops
And I added this to the Edit Module
SUB inputpickingops
oldtext = ActiveDocument.Evaluate("input.picking.ops")
t = ActiveDocument.GetApplication.InputBoxEx("Enter New Variable Value for input.picking.ops :",oldtext)
ActiveDocument.Variables("input.picking.ops").SetContent t,true
END SUB
With this result