Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ExecuteBScript - can i use variables?

Status
Not open for further replies.

lennondad

Programmer
Mar 24, 2003
4
GB
All,
I'm trying to use:

Application.ExecuteBScript("process section root.'Query'")

to process from an EIS screen, however I have prototyped this and it seems that I need to hardcode the query section name. Does anyone know if i can use variables in this? (i have over 50 query sections using the same code)

I know i could use Process() from Javascript, but this does not call a logon prompt if the query is not connected to the server (in Insight/ODS).

Cheers
 
Turns out this is a stroll in the park.

Simply create the string which should be processed by ExecuteBScript in the javascript, and pass this on the call i.e.

vBScriptCall = "process section root.'"+vQueryToProcess+"'"

Application.ExecuteBScript(vBScriptCall).

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top