Re: User Defined Functions



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



.