(RPG) Retrieve current context?

Please do not use to report errors- use your regional help desk.
Please mark posts as being for RPG or RDMLX (LANSA) developer.
To subscribe by email, display this forum, scroll to the end and select ‘Subscribe Forum’.
Post Reply
JohnJoiner
Posts: 37
Joined: Fri Oct 19, 2012 8:48 am

(RPG) Retrieve current context?

Post 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
MarkDuignan
Posts: 346
Joined: Wed Apr 18, 2012 10:33 am

Re: (RPG) Retrieve current context?

Post by MarkDuignan »

There is no function for this - but we will do this for the next version.
JohnJoiner
Posts: 37
Joined: Fri Oct 19, 2012 8:48 am

Re: (RPG) Retrieve current context?

Post by JohnJoiner »

Thanks. That will be very helpful.

JJ
JohnJoiner
Posts: 37
Joined: Fri Oct 19, 2012 8:48 am

Re: (RPG) Retrieve current context?

Post 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
Post Reply