Getting VBSCRIPT Error: “800a03f4”

Virginia

New Member
I have the following Function:\[code\]Function getNext10(num) pageLen = len(num) If pageLen = 1 Then next10 = 10 ElseIf pageLen>1 Then pageRem = 10 pageTen = right(num, 1) next10 = num + pageRem - pageTen End If getNext10 = next10End Function\[/code\]If I use that function I get the following Error: \[quote\] Microsoft VBScript compilation "800a03f4' 'If' expected /display/paging.asp, row 27 End Function
------^\[/quote\]What is wrong with that function?
 
Back
Top