Thank you very much.
Holden

"kevin furze" <[EMAIL PROTECTED]> д���ʼ�
news:[EMAIL PROTECTED]
> Holden:
>
> are you missing the SET command to your statement
>     SET posit="ID123"
>    quit 0
>
> alternatively,
>     set xyz=$g(posit)
>
> and like Denver says, you must pass the parameter "posit" by reference -
>  this is done by prefixing the variable you are passing with a DOT so
>  you need to say something like
>
>     set xyz="hello"
>     set xyz(1)="every"
>     set xyz(2)="body"
>     set theID=123
>     set theDate=+$h
>     do ..test(theID, theDate, .xyz)
>     quit
>
> classmethod test(resId as %String,date as %String,ByRef posit as
> %String) as %Status
> {
>     write "now checking ID:",resid
>     write !,"the date is: ",$g(date)
>     write !,$g(posit)
>     set key="" for  set key=$order(posit(key)) quit:key=""  write "
>     ",posit(key) quit 1
>  }
>
>
> its the DOT in front of the parameter being passed that's important
> hope this helps
>
>
> kev
>



Reply via email to