Hi
How is the syntax for calling a string-value from a vb-script.
I have:
Sub Document()
dim sPath as string = "\\myserver\test.doc"
Dim script as string
+++
script &= " set Doc = Word.Documents.Open('" & sPAth & "') " & vbCrLf
++++
Me.Page.RegisterStartupScript("Open", script)
End Sub
How do I refference the sPath in my scriptcode?
When I do the way I have described here I get error.
Does anyone know the right syntax
How is the syntax for calling a string-value from a vb-script.
I have:
Sub Document()
dim sPath as string = "\\myserver\test.doc"
Dim script as string
+++
script &= " set Doc = Word.Documents.Open('" & sPAth & "') " & vbCrLf
++++
Me.Page.RegisterStartupScript("Open", script)
End Sub
How do I refference the sPath in my scriptcode?
When I do the way I have described here I get error.
Does anyone know the right syntax