#2 $QUERY

open
nobody
None
5
2012-12-29
2001-10-24
No

I would like to have a $QUERY with a second parameter
like $ORDER to specifie the direction of the $QUERY (-
1 or 1).
It would be nice if GT.M have a function like
$ZREFERENCE, that shows the last full global reference
accessed.

Ex.:

GTM>S A="^GBL(1,2,3)",B=@A W $ZR,"=",B,!
^GBL(1,2,3)=4

I'm creating a Delphi Object to work with global like
if they work tables.

Ex.:

MyGlobal:=TMyGlobal.create;
MyGlobal.edit;
MyGlobal.Number:=editNumber.text;
MyGlobal.Name:=editName.text;
MyGlobal.post;
MyGlobal.first;
MyGlobal.next;
MyGlobal.prior;
MyGlobal.find(editNumber.text, false);

and to implement the NEXT and PRIOR methods it would
be much easier with a $QUERY(@MYGLOBAL,STEP), where
STEP would be 1 or -1.

Thanks,

Paulo Rogerio Machado.

Discussion

  • Logged In: YES
    user_id=220075

    Hi,
    I'd like to let you know that GT.M supports $REFERENCE to
    show the last full global reference accessed.
    This feature has been implemented in V4.3-FT01 beta release
    which you can download from the Sourceforge site
    (http://sourceforge.net/projects/sanchez-gtm/).

    -malli