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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Trouble with passing command line argument 1

Status
Not open for further replies.

BigC72

MIS
Oct 15, 2004
69
0
0
US
I'm having issues passing a command line argument into a VB script that I'm working on. The Echo shows me that the syntax is correct but where I'm trying to utilize it in the script doesn't appear to like it...Here is the code:

Code:
Set imagenowAPI = GetObject( , "imagenow6.CtrlPanel")
Set objArgs = WScript.Arguments

Dim X
Dim strArgValue
Dim tabValue

' Configure request parameters
Set viewRequest = imagenowAPI.INCreateViewRequest()
strArgValue = objArgs(0)
tabValue = ("'" & strArgValue & "'")
WScript.Echo "The account number is " & tabValue & "."
X = viewRequest.SetViewName("EMR_Views", "Document")

'This is where you'll insert the patient account number
X = viewRequest.SetVSLFilterText(" Tab = tabValue ")
'There is supposed to be brackets around the Tab in the previous line. 


' Now, let's open up the view in the full client
viewRequest.OpenInClient()

The strArgValue has to be represented in the FilterText with the single quotes which is why I put it together in it's own variable.

At a serious loss on this one...
 
>X = viewRequest.SetVSLFilterText(" Tab = tabValue ")
[tt]X = viewRequest.SetVSLFilterText(" Tab = [red]" & tabValue)[/red][/tt]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top