Scott Auge
Member
What is it?
An abstraction API to make programming dynamic queries a little easier. Like this:
-------------
{dyntoolkit.i}
DEFINE VARIABLE h AS HANDLE NO-UNDO.
/****************************************************************/
/* Test One : A good query */
/****************************************************************/
ASSIGN h = dyn_open("FOR EACH Job NO-LOCK").
DISPLAY cDyn_ErrCode cDyn_ErrMsg FORMAT "x(30)".
REPEAT:
dyn_next(h).
IF dyn_qoe(h) THEN LEAVE.
DISPLAY dyn_getvalue(h, "Job.JobID")
dyn_getvalue(h, "Job.Name")
dyn_getvalue(h, "Job.Priority")
dyn_getvalue(h, "Job.ErrCode").
END.
dyn_close(h).
----------------
That is a lot easier than keeping track of all those crazy handles eh?
Big updates (see CHANGELOG for all):
-- Allow the toolkit to be used on any dynamic query handle via
dyn_qryinfo(). Use with existing source code and
external/persistent procedures.
-- Added dyn_gettables()
-- Added more to the documentation
Where is the package?
http://amduus.com/OpenSrc/SrcLib/DynToolKit/dyntoolkit.2006174160920.zip
Where is the documentation?
http://amduus.com/OpenSrc/SrcLib/DynToolKit/dyntoolkit/doc/Manual.pdf
Where to browse the source code?
http://amduus.com/OpenSrc/SrcLib/DynToolKit/dyntoolkit/src/
----
Scott Auge
sauge@amduus.com
PGP/GPG http://amduus.com/amduus_com/sauge.public.key
An abstraction API to make programming dynamic queries a little easier. Like this:
-------------
{dyntoolkit.i}
DEFINE VARIABLE h AS HANDLE NO-UNDO.
/****************************************************************/
/* Test One : A good query */
/****************************************************************/
ASSIGN h = dyn_open("FOR EACH Job NO-LOCK").
DISPLAY cDyn_ErrCode cDyn_ErrMsg FORMAT "x(30)".
REPEAT:
dyn_next(h).
IF dyn_qoe(h) THEN LEAVE.
DISPLAY dyn_getvalue(h, "Job.JobID")
dyn_getvalue(h, "Job.Name")
dyn_getvalue(h, "Job.Priority")
dyn_getvalue(h, "Job.ErrCode").
END.
dyn_close(h).
----------------
That is a lot easier than keeping track of all those crazy handles eh?
Big updates (see CHANGELOG for all):
-- Allow the toolkit to be used on any dynamic query handle via
dyn_qryinfo(). Use with existing source code and
external/persistent procedures.
-- Added dyn_gettables()
-- Added more to the documentation
Where is the package?
http://amduus.com/OpenSrc/SrcLib/DynToolKit/dyntoolkit.2006174160920.zip
Where is the documentation?
http://amduus.com/OpenSrc/SrcLib/DynToolKit/dyntoolkit/doc/Manual.pdf
Where to browse the source code?
http://amduus.com/OpenSrc/SrcLib/DynToolKit/dyntoolkit/src/
----
Scott Auge
sauge@amduus.com
PGP/GPG http://amduus.com/amduus_com/sauge.public.key