VBScript Classes - Using Functions

Results 1 to 2 of 2

Thread: VBScript Classes - Using Functions

  1. #1
    Join Date
    Dec 1969

    Default VBScript Classes - Using Functions

    I know that you can use subs inside a VBscript class.<BR>But I&#039;ve tried with a funcion and I get an error...<BR><BR>Do someone know if it&#039;s posible to have a Function inside a Class?<BR>(ie: the code below)<BR><BR>Class Test<BR> Dim number<BR><BR> Function convert(num)<BR> convert = num + 1 <BR> End Function<BR><BR>End Clas<BR><BR><BR>If it can&#039;t be done... How can I do it? what would be the correct way?<BR><BR>Thanks in advance!

  2. #2
    Join Date
    Dec 1969

    Default RE: VBScript Classes - Using Functions

    I think you are one the wrong board; try ASP Q & A.

Posting Permissions

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