Groups | Blog | Home
all groups > vb.net upgrade > september 2005 >

vb.net upgrade : Conversion from vb6 to vb.net



Jan Hyde
9/6/2005 12:00:00 AM
"Dushyant" <Dushyant@discussions.microsoft.com>'s wild
thoughts were released on Tue, 6 Sep 2005 05:42:11 -0700
bearing the following fruit:

[quoted text, click to view]

Not knowing what RegExp is, but I'd imagine the .Net code
would be pretty much the same. Why not use the upgrade
wizard to convert the code for you.



Jan Hyde (VB MVP)

--
Plumber: A drain surgeon (Leopold Fechtner)

[Abolish the TV Licence - http://www.tvlicensing.biz/]
Dushyant
9/6/2005 5:42:11 AM
Hi everyone,

Can somebody please tell me how to convert the following code from vb to
vb.net.

Private pRegularExpression As RegExp

pRegularExpression.Pattern = xExpression
pRegularExpression.IgnoreCase = False
pRegularExpression.Global = False

All the responses are welcome.
Regards,
Dushyant
9/7/2005 10:37:03 PM


[quoted text, click to view]

RegExp is a class member of VBScript_RegExp_10 in vb6 and in vb.net it is
known as Regex which a class under namespace System.Text.RegularExpressions.
Jan Hyde
9/9/2005 12:00:00 AM
"Dushyant" <Dushyant@discussions.microsoft.com>'s wild
thoughts were released on Wed, 7 Sep 2005 22:37:03 -0700
bearing the following fruit:

[quoted text, click to view]

Seems you also multiposted it.



Jan Hyde (VB MVP)

--
Plumber: A drain surgeon (Leopold Fechtner)

[Abolish the TV Licence - http://www.tvlicensing.biz/]
AddThis Social Bookmark Button