Search For String

Results 1 to 2 of 2

Thread: Search For String

  1. #1
    Join Date
    Dec 1969

    Default Search For String

    I Need To Make A Function That Opens A Text File, Searchs For A String And Then If The String Exists Return A True Var, If Not Return A False Var. I Tried Several Times To This In A Sub And It Didn&#039t Work. I Asked Around And People Said To Use A Function. Now I Was Not Sure If Functions Were Wrote Different Than Subs So I Dicided To Post Here. <BR><BR>THanks In Advance,<BR>Matt

  2. #2
    Join Date
    Dec 1969

    Default RE: Search For String

    The difference between Functions and Subs is that a function will return a value eg:<BR><BR>&#060;%<BR>Sub sHelloWorld()<BR>Response.write "Hello World"<BR>End Sub<BR><BR>Function fHelloWorld()<BR>fHelloWorld = "Hello World"<BR>End Function<BR>%&#062;<BR><BR>So...<BR><BR>&#060;% sHelloWorld %&#062;<BR><BR>-And-<BR><BR>&#060;% response.write fHelloWorld %&#062;<BR><BR>Will do the same thing<BR><BR>HTH<BR><BR><BR>

Posting Permissions

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