i'm using the line below to find a position of the test withing HTML document and it works fine on a 64bit machine but does not work on开发者_运维技巧 my 32bit Windows 2008 server.
IntStart1 variable returns 2 on 64bit and 0000029ae on 32 bit. please help.
Int32 intStart1 = strHtmlText.IndexOf("<TABLE class=");
String.IndexOf()
is one of the most widely used functions in existence. I'd be simply astounded if it did not work.
The most likely explanation is that you have different values for strHtmlText
. Inspect the values of that string and I'm sure you will see what is going on.
精彩评论