Page 1 of 1

(RPG) Retrieve current context?

Posted: Sat May 11, 2013 4:31 am
by JohnJoiner
First off I'd just like to say "thanks" to you LongRange developers for being so responsive to our requests. RT version 12 has given me many useful features, and I appreciate it.

Now, is there a way to RETRIEVE the current context? We can manipulate the current context using LRNG_Using() and LRNG_UsingEx(), but I'd like to be able to pass the current context as a parameter to utility programs, rather than having to pass the context as a literal.

I've looked through the LRNGSRV service program, hoping to see something that fits the bill, but nothing looks promising.

TIA.

JJ

Re: (RPG) Retrieve current context?

Posted: Mon May 13, 2013 8:43 am
by MarkDuignan
There is no function for this - but we will do this for the next version.

Re: (RPG) Retrieve current context?

Posted: Mon May 13, 2013 11:30 pm
by JohnJoiner
Thanks. That will be very helpful.

JJ

Re: (RPG) Retrieve current context?

Posted: Fri Jul 19, 2013 11:47 pm
by JohnJoiner
Follow up to original post:

LongRange for RPG runtime version 14 includes the new procedure 'LRNG_GetUsing' that retrieves the current context.

:P