Click here to Skip to main content
15,922,584 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: How To Send Images Over a Network Pin
Gavin Jeffrey15-Feb-05 4:55
Gavin Jeffrey15-Feb-05 4:55 
GeneralRe: How To Send Images Over a Network Pin
Virus Detecter15-Feb-05 20:01
Virus Detecter15-Feb-05 20:01 
Generalproblem in vcd cutter software Pin
mm_chanakaya14-Feb-05 6:55
mm_chanakaya14-Feb-05 6:55 
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 
well yes I guess I will get every occuring of the string but I just tried and it didn't do it totally correct.

Example:
I do have the enumartion of the chapters.
Lets say they are 8, 8.1, 8.1.1, 8.2 and so on

If I do use instr() on them to search for "8" then it matches all of them! But I do not want 8.1, 8.1.1 and so on in this case.

What I want to do is a strict stringmatching. So like in your example if the last "ten" would look like "ten.twenty" then I would like to get the "ten" but ignore the ".twenty" afterwards.

So my search should parse through the paragraphs to find the string.

another example:
Let's say I do have these two paragraphs

If you want to know more about this product please have a look at clause 8.1.2.

To find the cheapest product in our shop please have a look at chapter 8.

So let's assume we do want to get the "8" but not the 8.1.2.

Instr() searches every occurence of "8" within a string. But in my example above there would be a hit in "8.1.2" aswell, which is not desired.
That's my problem. As you might have realized in the second paragraph, there is a dot and a linefead afterwards. So if I compared this string, after having split it in parts at the blanks, to "8" it would not match, because of the dot and linefead.

So what I am looking for is a solution to remove things like that, to get the hit, but not to influence the string matching in any other case, so e.g. if the "8" would have been somewere near the center of the paragraph, without anything behind.

Well, as I said in my last posting, I guess I will have to find a way using left() and right() to check what is behind the string, so to find out if it is 8.1.2 or 8. and linefeed.

But thanks anyway.
Stephan.
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 
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 

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.