HighTechTalks DotNet Forums  

If statement failing to find substring

Dotnet VJSharp microsoft.public.dotnet.vjsharp


Discuss If statement failing to find substring in the Dotnet VJSharp forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Raul
 
Posts: n/a

Default If statement failing to find substring - 02-27-2007 , 12:58 PM






The string is :

Calculating checksum for local file(s) ...
Transfer process initiated ...
[1 of 2 file(s)] [57 of 89 B] [64% completed] [transferring: RaulSil.xml
progress: 57 of 57 B]
[2 of 2 file(s)] [89 of 89 B] [100% completed] [transferring:
RaulSil.xml.md5 progress: 32 of 32 B]
Files uploaded, performing post-upload operations ...
Check that this is the only process running
Start Appending file
Done with Script, Screen can now be closed
Batch completed.


My if statement is not able to find "Batch completed"
What am doing wrong.?

if ( String.Compare(strOutput.Substring(0), "Batch completed.", true) > 0)
errorFound = false;

Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.