Re: need vb.net's regex in vb6 code

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



"smHaig" <smHaig@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:AD9CA47D-D0B4-4F1A-9655-3F06E553E582@xxxxxxxxxxxxxxxx
Hi, I am using a fulltext search with sql server and unfortunately my old
program that calls a stored proc to do this is in vb6. I need to create
the
proper string format and I found code to do this but it is in vb.net and
uses
regex. Could someone translate this for me into vb6

Set RegEx = New RegExp

This is NOT VB.NET. VB.NET no longer uses the Set statement, nor is that the
name of the regex class in .NET. Given the Dim statement, I'm willing to bet
this was VBScript. It should work directly in your VB6 code, although the
Pattern didn't look like valid regular expression syntax to me.


.



Relevant Pages

  • Re: Acrobat OCX wont stick on the form when compiling
    ... I use VB6 exclusively now and so the code is going to be written ... done away with the Set statement (although I don't know if it will ... tolerate it in the same way VB-Classic will tolerate a Let qualifier on ... > I'm confident that I'm not the only VB6 programmer that is ...
    (microsoft.public.vb.general.discussion)
  • Re: VB 2005 variable declarations and method calls
    ... Assignments in the book "Programming Microsoft Visual Basic 2005: ... Language" by Francesco Balena, starting on page 48. ... In VB6, that means dimension an auto-instancing object variable, but don't ... He also explains why VB2005 does not need the Set statement. ...
    (microsoft.public.vb.syntax)