[Gambas-user] No return value (18)
Bruce
bbruen at ...2308...
Mon Jun 25 13:19:55 CEST 2012
Getting to be Friday 13th^2
On Mon, 2012-06-25 at 18:23 +0930, Bruce wrote:
> Every day seems to be Friday the 13th at the moment!
>
> Every so often, I manage to write a Property that has "No return value".
> (It's always a case of something I have done, so it's not a gambas
> problem.)
>
> Today, I have done it again and I can't work out what it is that's
> wrong.
>
> In class Meeting
!! should have been "In class MeetingParser"
> Property Read KnownMeeting as Boolean
> ...
> Private Function KnownMeeting_Read() As Boolean
> '==============================================
> ' Returns a quick check as to whether the meeting already exists
> ' on the database.
>
> Dim m As New Meeting
>
> If m.Exists([$trackcode, Format($racedate, "yymmdd")]) Then
> Return True
> Else
> Return False
> Endif
>
> Catch
> Error Subst("&1\nERR: ... blah blah blah, never happens.
>
> End
>
> (The Meeting class is a database interface in a library. The
> Meeting.Exists([pkey]) As Boolean is a method that just checks for the
> existence of the primary key in the pk index tables.*)
>
> For the life of me I cannot see what I have done wrong here!
>
> Any suggestions?
>
Bruce
More information about the User
mailing list