I get an error... Code: while Hex(Asc(Mid(Rawstr, RStringIdx, 1))) <> "9" or chr(10) How to fix multiple condition...
while Hex(Asc(Mid(Rawstr, RStringIdx, 1))) <> "9" or chr(10)
Last edited by w00tie; Oct 5th, 2009 at 08:42 AM.
Something like this but there other ways to write it (select case, if - else) Code: Do While Asc(Mid(Rawstr, RStringIdx, 1)) <> 9 Or Asc(Mid(Rawstr, RStringIdx, 1)) <> 10 '... Loop
Do While Asc(Mid(Rawstr, RStringIdx, 1)) <> 9 Or Asc(Mid(Rawstr, RStringIdx, 1)) <> 10 '... Loop
Microsoft MVP - Visual Basic 2006-2013 Why VB clears the clipboard on startup and how to avoid it? . Filtering Arrays . Save File To Database . Extract File From Database . Extract picture from database without using hard drive . Change Menu BackColor . How to use MS Flexgrid . Make Frame Transparent . The Easiest Way to Create an NT Service With VB6 . How to comment blocks of code in VB5 and VB6 . How to find and replace missing members of control array Visual Basic 6.0 On-Line Documentation . Connection Strings
sry but it does not work for me... I still receive " run-time error '5' : invalid procedure call or argument"...
If RStringIdx is < 1, you will get that error. Validate it is > 0.
Insomnia is just a byproduct of, "It can't be done" Classics Enthusiast? Here's my 1969 Mustang Mach I Fastback. Her sister '67 Coupe has been adopted Newbie? Novice? Bored? Spend a few minutes browsing the FAQ section of the forum. Read the HitchHiker's Guide to Getting Help on the Forums. Here is the list of TAGs you can use to format your posts Here are VB6 Help Files online {Alpha Image Control} {Memory Leak FAQ} {Unicode Open/Save Dialog} {Resource Image Viewer/Extractor} {VB and DPI Tutorial} {Manifest Creator} {UserControl Button Template} {stdPicture Render Usage}
That's probably because the Mid test is invalid. What is the value of RStringIdx when it fails?
Tips, Examples & Tutorials: A valuable forum tool • Generate unique TreeView keys • TreeView with "open" and "closed folder" icons • Time code using GetTickCount • How to trap the Tab key • Scroll a form • NumberBox ActiveX control • Color a ListView row • An InputBox form • How to use SaveSetting and GetSetting • A program registration scheme • Spellcheck a Textbox • Resize controls • Open Windows Explorer at Last Visited Path • A Blackjack Game • Count lines of code • Private Message Viewer • Copy/Paste VB Code • Paste VB Code Add-In • Insert Procedure Names Add-In • A calculator for the game of Spider • My review of REALbasic 2008 • VB6 Debug Tutorial • Picture/Video Viewer • VBF Photo Contest Winners 2009 - 2016
Forum Rules