
FUNCTIONS IN VISUAL BASIC 313
52. Minute ()
Returns 0-59 representing the minute part of a time.
Result = minute (Time)
53. Replace ()
Replaces a character in a string with another character specified.
Result = Replace (“LAN”, “L”, “M”) ‘Returns “MAN”
54. Round ()
Rounds off the decimal part and returns an integer value.
Result = Round (19.51) ‘Returns 20
Result = Round (19.50) ‘Returns 20
Result = Round (19.49) ‘Returns 19
55. Sgn ()
Returns a number indicating the sign of a given number.
Result = Sgn (100) ‘Returns 1
Result = Sgn (-100) ‘Returns -1
Result = Sgn (0) ‘Returns 0
56. Space ()
Returns a string containing ...