Environment versions
Network:
Windows 2003 Server
>Hi all,
>
>I have the following codes:
>
> Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
> Dim myForm As New rptLveForm
> Dim doc As Document = myForm.Execute(Request("filterParameter"))
>
> SendToBrowser(doc, Request("outputFormat"))
> Response.End()
> End Sub
>
>I want to change to:
>
> Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
> Dim myForm As New &(Reques("rptForm"))
> Dim doc As Document = myForm.Execute(Request("filterParameter"))
>
> SendToBrowser(doc, Request("outputFormat"))
> Response.End()
> End Sub
>
>How to do that for &(Reques("rptForm")) in VB.Net?
Hi,
It's not macro expansion but in this case you probably need Activator.CreateInstance
HTH,
Viv
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only