Click here to Skip to main content
15,912,756 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: problem in vcd cutter software Pin
Dave Kreskowiak14-Feb-05 7:09
mveDave Kreskowiak14-Feb-05 7:09 
GeneralRe: problem in vcd cutter software Pin
mm_chanakaya14-Feb-05 7:54
mm_chanakaya14-Feb-05 7:54 
Generallittle problem with strings Pin
Stephan Wright14-Feb-05 6:39
Stephan Wright14-Feb-05 6:39 
GeneralRe: little problem with strings Pin
rwestgraham14-Feb-05 12:05
rwestgraham14-Feb-05 12:05 
GeneralRe: little problem with strings Pin
Stephan Wright14-Feb-05 21:08
Stephan Wright14-Feb-05 21:08 
GeneralRe: little problem with strings Pin
rwestgraham15-Feb-05 13:02
rwestgraham15-Feb-05 13:02 
GeneralRe: little problem with strings Pin
Stephan Wright15-Feb-05 21:04
Stephan Wright15-Feb-05 21:04 
GeneralRe: little problem with strings Pin
Stephan Wright15-Feb-05 21:51
Stephan Wright15-Feb-05 21:51 
I guess I could have done similar operations by using left() and right() parsing one character after the next one or copying it into an array, but well, I guess the result and the speed would be the same if not worse because of first copying it and afterwards parsing the array.

I did the following:
* I checked if the length of the searchstring is equal, then I found it

* I checked if the length of the searchstring is one smaller (or the string in the paragraph one bigger respectively). If so I take the last char (with right and length operations) and compare it to the non printable or to a dot (this will get the 8.1. or 8.1x where x is the linefeed or tab or ...)

* I checkd if the length of the searchstring is two smaller (or the string in the paragraph two bigger respectively). If so I once again take the last char to check, if it is a nonprintable. if it is, then I do have something like 8.1.x and not 8.1.2 e.g.

Except in the first case I do range.select the paragraph and have a look for this word, by using the comparestring. I just tried with a test document, and it worked with the testtext which is part of a bigger one. Well I know this might not be correct in every case but it matches most of these cases.

And besides I do parse every word in the paragraph, and if I find a possible match (using the InStr()) the operations above take place. To avoid parsing strings once again in the same paragraph, I marked those I already did the operations from above.

Well, I guess I will try the other solution (rebuild the tochararray operation and the comparing every char) as well to find out which of those has fewer errors or even none!

Thanks anyway!

Stephan.
GeneralVb . net 2003 mod function Pin
Anonymous14-Feb-05 6:19
Anonymous14-Feb-05 6:19 
GeneralRe: Vb . net 2003 mod function Pin
Dave Kreskowiak14-Feb-05 7:05
mveDave Kreskowiak14-Feb-05 7:05 
GeneralRe: Vb . net 2003 mod function Pin
Anonymous14-Feb-05 8:43
Anonymous14-Feb-05 8:43 
GeneralRe: Vb . net 2003 mod function Pin
Dave Kreskowiak15-Feb-05 3:43
mveDave Kreskowiak15-Feb-05 3:43 
Generalget string array length Pin
Stephan Wright14-Feb-05 2:37
Stephan Wright14-Feb-05 2:37 
GeneralRe: get string array length Pin
Fawxes14-Feb-05 3:26
Fawxes14-Feb-05 3:26 
GeneralRe: get string array length Pin
Stephan Wright14-Feb-05 6:32
Stephan Wright14-Feb-05 6:32 
GeneralRe: get string array length Pin
Scott Serl14-Feb-05 8:44
Scott Serl14-Feb-05 8:44 
GeneralData Table or Business Object Pin
Fawxes13-Feb-05 23:58
Fawxes13-Feb-05 23:58 
GeneralInsufficient system resources Pin
sayhigh13-Feb-05 22:32
sayhigh13-Feb-05 22:32 
GeneralRe: Insufficient system resources Pin
Dave Kreskowiak14-Feb-05 1:28
mveDave Kreskowiak14-Feb-05 1:28 
GeneralRe: Insufficient system resources Pin
sayhigh14-Feb-05 1:34
sayhigh14-Feb-05 1:34 
GeneralRe: Insufficient system resources Pin
Dave Kreskowiak14-Feb-05 5:34
mveDave Kreskowiak14-Feb-05 5:34 
GeneralRe: Insufficient system resources Pin
Kirk Quinbar15-Apr-09 10:54
Kirk Quinbar15-Apr-09 10:54 
GeneralVB.NET Datasets Pin
Mahesh167913-Feb-05 22:11
Mahesh167913-Feb-05 22:11 
GeneralRe: VB.NET Datasets Pin
Dave Kreskowiak14-Feb-05 1:26
mveDave Kreskowiak14-Feb-05 1:26 
GeneralRe: VB.NET Datasets Pin
Virus Detecter16-Feb-05 0:28
Virus Detecter16-Feb-05 0:28 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.