It works !! :P Thanks Friend :P
Best regards, Ricardo Figueira -----Original Message----- From: Patrick Steele [mailto:[EMAIL PROTECTED]] Sent: sexta-feira, 7 de Junho de 2002 16:35 To: [EMAIL PROTECTED] Subject: Re: [DOTNET] Translate C# to VB Instead of 'New MatchEvaluator(processPageProperty)' for the delegate, try 'AddressOf processPageProperty'. --- Patrick Steele ([EMAIL PROTECTED]) Lead Software Architect Image Process Design -----Original Message----- From: Ricardo Barros Figueira [mailto:[EMAIL PROTECTED]] Sent: Friday, June 07, 2002 11:01 AM To: [EMAIL PROTECTED] Subject: [DOTNET] Translate C# to VB Friends, How can i translate this to VB.NET ? : private string processPropertiesTag(Match m) { string pattern = @"\s*[^=\s]*=""[^""]*"""; string newHtml = Regex.Replace(m.ToString(), pattern, new MatchEvaluator(processPageProperty)); return newHtml; } I have tried this BUT i have this error : Private Function processPropertiesTag(ByVal m As Match) As String Dim pattern As String = "\s*[^=\s]*=""[^""]*""" Dim newHtml As String = Regex.Replace(m.ToString(), pattern, New MatchEvaluator(processPageProperty)) Return newHtml End Function error: - 'system.text.RegularExpressions.MatchEvaluator' is a delegate type. Delegate construction permits only a single AddressOf expression as an argumenst list. ....... Dim newHtml As String = Regex.Replace(m.ToString(), pattern, New MatchEvaluator(processPageProperty)) Can anyone help me on that ? Thanks ! Best regards, Ricardo Figueira You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com. You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com. You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.