Displaying the title in a serch page...

Results 1 to 2 of 2

Thread: Displaying the title in a serch page...

  1. #1
    Join Date
    Dec 1969

    Default Displaying the title in a serch page...

    Ok, I asked a question yesterday ( http://www.aspmessageboard.com/forum/asp.asp?M=349112&F=20&P=1 )<BR><BR>and I&#039;ve got this part down so far:<BR><BR>&#039; Create FileSystemObject<BR>Dim objFSO<BR>Set objFSO = Server.CreateObject("Scripting.FileSystemObject") <BR><BR>&#039; Open the text file and read<BR>Dim objTextStream<BR>const fsoForReading = 1<BR>Set objTextStream = objFSO.OpenTextFile(sHRef, fsoForReading) &#039;sHRef is file path<BR><BR>&#039;missing portion here<BR><BR>&#039;Clean up<BR>objTextStream.Close<BR>Set objFSO = Nothing<BR>________________________<BR><BR>Now where can I find out about the InStr and Mid, to go search the contents of the page for my strWindowTitle variable and bring that up in the search page?<BR><BR>Learning.. slowly but surely...

  2. #2
    Join Date
    Dec 1969

    Default RE: Displaying the title in a serch page...

    &#039;missing portion here<BR><BR>Dim strPageContents<BR> strPageContents = objTextStream.ReadAll<BR><BR>Now, goto:<BR>http://msdn.microsoft.com/scripting<BR><BR>It&#039;ll give you information Instr and Mid.<BR><BR>-Doug

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts