B
balu
dearfriends,
i want an function to find out the duedate of a student basing on his
gradation.
public function duedate(grade as double , lastdate as date)
'but the gradation will be given in alphabets like "a',"b","c"
dim myvar as string
if myvar = "A" THEN grade = 3 'monitering date will be after 3 months from
lastmonitered darte
if myvar = "B" then grade = 2
if myvar = "c" then grade = 1
duedate = dateadd("m" , grade,lastdate)
endif
end function
My problom is
(1) this function is returning false values like duedate(3,01/01/2000) is
giving
30:03:1900 why ?
(2) i would like to include an string value insted of (grade as double ) in
my function b'couse users will enter grade in strings
how to setright it please
i want an function to find out the duedate of a student basing on his
gradation.
public function duedate(grade as double , lastdate as date)
'but the gradation will be given in alphabets like "a',"b","c"
dim myvar as string
if myvar = "A" THEN grade = 3 'monitering date will be after 3 months from
lastmonitered darte
if myvar = "B" then grade = 2
if myvar = "c" then grade = 1
duedate = dateadd("m" , grade,lastdate)
endif
end function
My problom is
(1) this function is returning false values like duedate(3,01/01/2000) is
giving
30:03:1900 why ?
(2) i would like to include an string value insted of (grade as double ) in
my function b'couse users will enter grade in strings
how to setright it please