Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Equivalent to Macro Expansion in VB.Net
Message
De
16/09/2008 02:55:55
 
 
À
15/09/2008 22:15:56
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
VB 9.0
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01347794
Message ID:
01347826
Vues:
9
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform