To obtain the 'TERM type' used by a 'Port' on jBASE 3.4 Windows from a
Basic program :

plist.b  [ in the current directory ]

DEFC PortListDemon(VAR)

list = ''
x = PortListDemon(list)
port_number = 10 ;! for port 10 say

FOR a = 1 TO x

IF list<a,1> = port_number THEN ;! Port number I am interested in
 term_type = list<a,11>
 CRT 'Port ':port_number:' is using Term type ':SQUOTE(term_type)
 BREAK
END

NEXT a

Compile using :

  jbc -o plist -JCl %JBCRELEASEDIR%\lib\libutils.lib plist.b
[ where '%JBCRELEASEDIR%' is the directory path to the jBASE 3.4
installation ]

[ Note : this code / compilation is specific to jBASE 3.4 on Windows,
and is NOT applicable to later jBASE / TAFC releases or Unix Operating
systems ]

Apologies if the original question was related to issuing 'mw42' from
the 'jShell' command prompt, or using 'WITH' in a jQL query

Pat.

On Mar 3, 4:39 pm, Alan Fields <[email protected]> wrote:
> In Windows JBASE version 3.4, does anybody know if there is an
> equivalent to the WHERE command (perhaps a SYSTEM() function or
> @variable) that can be used within a BASIC program.  What I'm looking
> for specifically is a list of all of the logged in ports and their
> TERM types).  I know I can EXECUTE the WHERE command, capture and
> parse the output, put was looking for an easier alternative if one
> exists.  Thank you in advance.

-- 
Please read the posting guidelines at: 
http://groups.google.com/group/jBASE/web/Posting%20Guidelines

IMPORTANT: Type T24: at the start of the subject line for questions specific to 
Globus/T24

To post, send email to [email protected]
To unsubscribe, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/jBASE?hl=en

Reply via email to