Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Simplifying initialization
Message
From
16/03/2010 22:20:44
 
 
To
All
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Title:
Simplifying initialization
Environment versions
Environment:
VB 9.0
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01454988
Message ID:
01454988
Views:
86
Is there any way to simplify this initialization:
            Dim loFTP As System.Net.FtpWebRequest = Nothing

            ' Initialize FTP object
            loFTP = CType(System.Net.FtpWebRequest.Create(lcURI), System.Net.FtpWebRequest)
I got this code originally from C# and I am trying to put it in a more readable syntax.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Reply
Map
View

Click here to load this message in the networking platform