what am I doing wrong!

Results 1 to 5 of 5

Thread: what am I doing wrong!

  1. #1
    aex Guest

    Default what am I doing wrong!

    What am i doing wrong?<BR><BR>When i write a script, this message always appears "expected ";".<BR>What am I doing wrong?<BR>Here is some code which it appears on!<BR><BR>&#060;script langauge="vbscript"&#062;<BR>&#060;!--<BR>Dim cast<BR>cast=#28/12/2000#<BR>Function diffadate(dtTest)<BR>diffadate="days from today: " & datediff("d",dtTest,date())<BR>End function<BR><BR>Sub callingresult()<BR>dim disresult<BR>disresult=diffadate(cast)<BR>End Sub<BR>--&#062;<BR>&#060;/script&#062;<BR><BR>Cheers<BR>Alex

  2. #2
    Join Date
    Dec 1969

    Default RE: what am I doing wrong!

    you misspelled &#039language&#039<BR><BR>

  3. #3
    Sateesh Guest

    Default The script is fine

    This script seems to be fine, hope you are bnot putting this script inside asp delimiters, and is there any other javascript in your code and post the code wht u r using to call this sub.

  4. #4
    Sateesh Guest

    Default Discard the comment i posted

    yes the language is been mispelled, i dint noted that, sorry

  5. #5
    aex Guest

    Default RE: The script is fine

    Thank you very much self confidence has been reinstated!

Posting Permissions

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