From: Dennis Rose on 14 Jun 2010 16:12 Using VB5, I have a string of data that may contain an imbeded equal sign, Carrage return and Line Feed ie. Chr(61) Chr(13) Chr(10), one after another in the data string . How can I test for this? I have tried: TestHexString = " & Chr(61) & Chr(13) & Chr(10) & " CRLFfound = Instr(1, ActualData, TestHexString) If CRLFfound > 0 then but this doesn't work!!
From: Bob Butler on 14 Jun 2010 16:42 "Dennis Rose" <DennisRose(a)discussions.microsoft.com> wrote in message news:28EF964A-D52E-4509-9302-61262A7254F6(a)microsoft.com... > > Using VB5, I have a string of data that may contain an imbeded equal sign, > Carrage return and Line Feed ie. Chr(61) Chr(13) Chr(10), one after > another > in the data string . > > How can I test for this? > > I have tried: > TestHexString = " & Chr(61) & Chr(13) & Chr(10) & " No quotes around it... you are searching for the literal string " & Chr(...." and not just the 3 characters TestHexString = chr$(61) & chr$(13) & chr$(10) > CRLFfound = Instr(1, ActualData, TestHexString) > If CRLFfound > 0 then > > but this doesn't work!! > >
From: Dennis Rose on 14 Jun 2010 17:38 "Bob Butler" wrote: > > "Dennis Rose" <DennisRose(a)discussions.microsoft.com> wrote in message > news:28EF964A-D52E-4509-9302-61262A7254F6(a)microsoft.com... > > > > Using VB5, I have a string of data that may contain an imbeded equal sign, > > Carrage return and Line Feed ie. Chr(61) Chr(13) Chr(10), one after > > another > > in the data string . > > > > How can I test for this? > > > > I have tried: > > TestHexString = " & Chr(61) & Chr(13) & Chr(10) & " > > No quotes around it... you are searching for the literal string " & > Chr(...." and not just the 3 characters > > TestHexString = chr$(61) & chr$(13) & chr$(10) > > > CRLFfound = Instr(1, ActualData, TestHexString) > > If CRLFfound > 0 then > > > > but this doesn't work!! > > > > > > . > Bob, You're the Man!! Thanks a million!!!, I knew it was something simple. Dennis
From: Dennis Rose on 14 Jun 2010 18:22 "Bob Butler" wrote: > > "Dennis Rose" <DennisRose(a)discussions.microsoft.com> wrote in message > news:28EF964A-D52E-4509-9302-61262A7254F6(a)microsoft.com... > > > > Using VB5, I have a string of data that may contain an imbeded equal sign, > > Carrage return and Line Feed ie. Chr(61) Chr(13) Chr(10), one after > > another > > in the data string . > > > > How can I test for this? > > > > I have tried: > > TestHexString = " & Chr(61) & Chr(13) & Chr(10) & " > > No quotes around it... you are searching for the literal string " & > Chr(...." and not just the 3 characters > > TestHexString = chr$(61) & chr$(13) & chr$(10) > > > CRLFfound = Instr(1, ActualData, TestHexString) > > If CRLFfound > 0 then > > > > but this doesn't work!! > > > > > > . > In your opinion, where should I go in the future to get VB questions answered when this forum closes?
From: Karl E. Peterson on 14 Jun 2010 18:32
It happens that Dennis Rose formulated : > In your opinion, where should I go in the future to get VB questions > answered when this forum closes? This newsgroup will almost certainly continue without interruption on usenet. Just be sure you have access to a server. There's one free option in my sig, as well as another fallback group we can use if this one actually does go away. (Pretty unlikely.) -- ..NET: It's About Trust! http://vfred.mvps.org Customer Hatred Knows No Bounds at MSFT ClassicVB Users Regroup! comp.lang.basic.visual.misc Free usenet access at http://www.eternal-september.org |