Re: User Defined Functions
- From: "Mark Brown" <mbrown@xxxxxxxxxxxxx>
- Date: Thu, 19 Apr 2007 12:50:52 -0700
Basically true. However, if you don't need to pass parameters "by
reference", you can do this:
Write a subroutine that has a single passing parameter. This parameter can
be anything, but there must be only one.
Extremely simple example:
sub add.function(PX)
px = px<1> + px<2>
return
Then, in you Pick Basic code, you can add a line like this:
x = oconv(A:@am:B,"call add.function")
Acts exactly like a function. The only caviat is that you can't pass a
parameter that gets changed and passed back as something other than the
answer.
I've been doing this for several years now and it works pretty well for
simple stuff. If you compile with the CS options, it barely shows up in the
debugger.
Basically, that's all Pick dictionary "calls" and triggers are, a simple
function to take a parameter and return a result.
Mark Brown
"dtsig" <dtsig@xxxxxxxxxxx> wrote in message
news:1176992918.574596.250400@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
after searching old messages (found one from 2004) it looks like PICK
still doesn't allow the creation of a function in Basic ..
Is this true?
Thanks
DSig
David Tod Sigafoos
.
- Follow-Ups:
- Re: User Defined Functions
- From: dzigray
- Re: User Defined Functions
- From: dtsig
- Re: User Defined Functions
- References:
- User Defined Functions
- From: dtsig
- User Defined Functions
- Prev by Date: Re: RD ftp site down?
- Next by Date: Re: RD ftp site down?
- Previous by thread: Re: User Defined Functions
- Next by thread: Re: User Defined Functions
- Index(es):