|
-
Aug 19th, 2005, 07:07 AM
#1
Thread Starter
Lively Member
display class object
why there is a problem in this code??
i want to display the Clock object
Class Clock
public Second as integer
public Minute as integer
public Hour as integer
sub SetTime(intSec as integer, intMin as integer, intHour as integer)
Second = intSec
Minute = intMin
Hour = intHour
end sub
sub ShowTime()
dim showClock as new Clock
Response.Write(showClock.Second)
end sub
End Class
sub Page_Load(obj as object, e as eventargs)
dim objClock as new Clock
objClock.SetTime(60,4,12)
objClock.ShowTime
end sub
</script>
<body MS_POSITIONING="GridLayout">
</body>
</HTML>
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|