Code: Select all
function max(a,b)
max = a
If b > a Then max = b
End Function
ts.Write max(rs.Fields("price"), 3) & vbTab
Moderators: Dorian (MJT support), JRL
Code: Select all
function max(a,b)
max = a
If b > a Then max = b
End Function
ts.Write max(rs.Fields("price"), 3) & vbTab
Code: Select all
VBSTART
function max(a,b)
max = a
If b > a Then max = b
End Function
' ts.Write max(rs.Fields("price"), 3) & vbTab
VBEND
VBEval>max("3","0,01"),res1
VBEval>max("3","5,01"),res2
MDL>%res1%%crlf%%res2%
I can tell for certain this doesn't work. It gives a "Microsoft VBScript compilation error :1002r Syntax error" message.VBSTART
...
...
ts.Write rs.Fields("ArticleID") & vbTab
function max(a,b)
max = a
If b > a Then max = b
End Function
ts.Write max(rs.Fields("price"), 3) & vbTab
VBEval>max("3","0,01"),res1
VBEval>max("3","5,01"),res2
MDL>%res1%%crlf%%res2%
rs.MoveNext
Loop
...
...
VBEND
Code: Select all
VBSTART
MDL>test
VBEND