How to make it a function

Results 1 to 2 of 2

Thread: How to make it a function

  1. #1
    Michael Toore Guest

    Default How to make it a function

    Found 2-scripts:<BR><BR><BR><BR>Have about 20-textboxes. How can I make the above 2-codes into one function and then make a call?<BR><BR>I&#039;m new at JScript....<BR><BR>help me.

  2. #2
    emets Guest

    Default RE: How to make it a function

    function ltrim(s)<BR>{<BR> ...<BR> return(str);<BR>}<BR><BR>function rtrim(s)<BR>{<BR> ...<BR> return(str);<BR>}<BR><BR>function trim(s)<BR>{<BR> return(ltrim(rtrim(s)));<BR>}<BR><BR>If you want the code for the actual ltrim and rtrim functions just tell me.

Posting Permissions

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