Sage MAS 90 and 200 Sage MAS 500 blogs Product Feedback Support Training
Reply
Sage MAS Partner
TomTarget
Posts: 1,752
Registered: 11-02-2008
0
Accepted Solution

Use of vbscript input box function with mas 200

I'm doing a button script to prompt for a value and then execute some code. Trying to avoid creating a udf to hold the parameter that will just be discarded after the code is run.

Succeeded in mas 90 using the following:

Retval = inputbox("enter value",,0)

However in mas 200 you get ole error number 70. Permission denied 'inputbox'

Sounds similar to issues of msgbox and message box. Anyone know how to get around this?
Thomas H. Rogers, C.P.A.
Target System Technology, Inc. - Spokane, WA -
The best solution often comes not from answering the question asked, but understanding WHY the question was asked.
Sage MAS Partner
TomTarget
Posts: 1,752
Registered: 11-02-2008
0

Re: Use of vbscript input box function with mas 200

Just found info on this in another thread which suggests I will have to use a UDF after all to get the info as inputbox isn't going to work in MAS 200.

 

However,  if anyone has figured out a way to do it since,  I would be happy to hear about it.

Thomas H. Rogers, C.P.A.
Target System Technology, Inc. - Spokane, WA -
The best solution often comes not from answering the question asked, but understanding WHY the question was asked.
Super Contributor
connex
Posts: 791
Registered: 10-29-2008
0

Re: Use of vbscript input box function with mas 200

You can use MessageBox to put up multiple response buttons and return an indication of what button was clicked, but no solution for general prompt data.

Dan Burleson
Sage Authorized Consultant - Ask me about advanced scripting!
e-mail me here
Sage MAS Partner
TomTarget
Posts: 1,752
Registered: 11-02-2008
0

Re: Use of vbscript input box function with mas 200

Yup.  Have done the button trick for discrete options,  but as you say it doesn't work if you have a range of values.

 

On to using UDF's.

Thomas H. Rogers, C.P.A.
Target System Technology, Inc. - Spokane, WA -
The best solution often comes not from answering the question asked, but understanding WHY the question was asked.