Home > Archive > Programming with dBASE > October 2005 > Which one is correct?









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Which one is correct?
evilaro

2005-10-11, 7:27 am

To all:

Normally if I got a function

Like

Function Countmore
* do whatever
return


I will call it from the program with a

class::Countmore()



But by accident I tiped the () on the actual function

Function Countmore()
* do whatever
return

And still works

Which one is correct?

Emilio




Ken Mayer [dBVIPS]

2005-10-11, 7:27 am

evilaro wrote:
> To all:
>
> Normally if I got a function
>
> Like
>
> Function Countmore
> * do whatever
> return
>
>
> I will call it from the program with a
>
> class::Countmore()
>
>
>
> But by accident I tiped the () on the actual function
>
> Function Countmore()
> * do whatever
> return
>
> And still works
>
> Which one is correct?


If you're not using parameters, the first is correct. If you need
parameters the second is correct ... (if you choose to put the
parameters on the FUNCTION line).

Ken

--
/(Opinions expressed are purely my own, not those of dataBased
Intelligence, Inc.)/

*Ken Mayer* [dBVIPS]
/Golden Stag Productions/
dBASE at goldenstag dot net
http://www.goldenstag.net/GSP
http://www.goldenstag.net/dbase
evilaro

2005-10-11, 7:27 am

Thank you Ken:

Emilio

"
>
> If you're not using parameters, the first is correct. If you need
> parameters the second is correct ... (if you choose to put the
> parameters on the FUNCTION line).
>
> Ken
>
> --
> /(Opinions expressed are purely my own, not those of dataBased
> Intelligence, Inc.)/



Sponsored Links





Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive | Programming forum archive

Copyright 2008 droptable.com