none
Clock.Date()? RRS feed

  • Question

  • How does one use the Clock API?

    I tried D = Clock.Date() and I get an error "Cannot find operation 'Date' in 'Clock'.

    Thanks,
    Saturday, October 31, 2009 1:31 AM

Answers

  • Properties don't need parenthesis

    D = Clock.Date

    With a "Cannot find operation 'Date' in 'Clock'" error, the compiler is looking for a method (a Sub in Small Basic).  Since Date is a property and not a method, it returns an error.

    • Marked as answer by WB4WTN Saturday, October 31, 2009 2:47 AM
    Saturday, October 31, 2009 1:52 AM

All replies

  • Properties don't need parenthesis

    D = Clock.Date

    With a "Cannot find operation 'Date' in 'Clock'" error, the compiler is looking for a method (a Sub in Small Basic).  Since Date is a property and not a method, it returns an error.

    • Marked as answer by WB4WTN Saturday, October 31, 2009 2:47 AM
    Saturday, October 31, 2009 1:52 AM
  • Thanks a bunch!!


    Saturday, October 31, 2009 2:48 AM