What does this VBScript Syntax Mean ?

Results 1 to 2 of 2

Thread: What does this VBScript Syntax Mean ?

  1. #1
    Stephen of New York Guest

    Default What does this VBScript Syntax Mean ?

    HI can someone be nice enough to explain for me the meaning of these syntax? <BR>Question#1: <BR>If InStr(1, Server.HTMLEncode(Request("value2")), "@", 1) &#060; 2 Then<BR>what does the first #1 and the last #1 mean?<BR>Question#2:<BR>Look at the Function below:<BR>What is being passed to the function through endchar ?<BR>What does this part mean?<BR>s = Mid(s, 1, pos) & "&#039" & Mid(s, pos + 1)<BR>pos = InStr(pos + 2, s, "&#039")<BR> <BR>------the function in question.<BR>FUNCTION CheckString (s, endchar)<BR>pos = InStr(s, "&#039")<BR>While pos &#062; 0<BR>s = Mid(s, 1, pos) & "&#039" & Mid(s, pos + 1)<BR>pos = InStr(pos + 2, s, "&#039")<BR>end<BR>CheckString="&#039" & s & "&#039" & endchar<BR>END FUNCTION<BR><BR>this function calls in the sql statement:<BR>insert_sql = insert_sql & CheckString(strVar,",")<BR>Stephen

  2. #2
    Join Date
    Dec 1969
    Posts
    2,849

    Default RE: What does this VBScript Syntax Mean ?

    I&#039d highly recommend you check out:<BR>http://msdn.microsoft.com/scripting<BR><BR>Click on the VBScript, Documentation, Language Reference on the left. You can read about InStr, and it has explanations for all of the technical things.<BR><BR>Check out:<BR>http://help.activeserverpages.com/iishelp/VBScript/htm/vbs123.htm

Posting Permissions

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