[AccessD] Static Function Tutorial (was Like Operator SQLSyntax)

Arthur Fuller artful at rogers.com
Tue Jun 10 17:20:34 CDT 2003


After considering it for a while, I agree. I plan to rewrite the template
and its descendants along your line.

Arthur

-----Original Message-----
From: accessd-bounces at databaseadvisors.com
[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock
Sent: June 9, 2003 4:57 AM
To: accessd at databaseadvisors.com
Subject: Re: [AccessD] Static Function Tutorial (was Like Operator
SQLSyntax)


Hi Arthur

> .. I use -1 as the reset value ..

So what do you do when such a function carries a Boolean? Wouldn't Null be a
better "value" to use for this?

A solution to end such considerations is to add an optional parameter:

> Static Function CurrentX(Optional lngNew As Long, _
>   Optional ByVal booReset As Boolean) As Long

It's a matter of taste and needs I guess.

/gustav



More information about the AccessD mailing list