h53440
s 00043/00000/00000
d D 1.1 83/01/20 11:14:15 tes 1 0
c date and time created 83/01/20 11:14:15 by tes
e
u
tes
mjb
U
t
T
I 1
subroutine qgeti (item, idata)
########################################################################
#                                                                      #
#          THIS MATERIAL IS CONFIDENTIAL AND IS FURNISHED UNDER        #
#          A WRITTEN LICENSE AGREEMENT.  IT MAY NOT BE USED,           #
#          COPIED OR DISCLOSED TO OTHERS EXCEPT IN ACCORDANCE          #
#          WITH THE TERMS OF THAT AGREEMENT.                           #
#                                                                      #
#          COPYRIGHT (C) 1982 GRAPHIC SOFTWARE SYSTEMS INC.            #
#          ALL RIGHTS RESERVED.                                        #
#                                                                      #
#     Function: Get integer data from memory associated with item      #
#                                                                      #
#     Input Parameters:                                                #
#            item - (integer) data item to fetch from memory           #
#                                                                      #
#     Output Parameters:                                               #
#            idata - (integer) integer data from memory                #
#                                                                      #
#     Routines Called:                                                 #
#            qgtdta - get data from memory                             #
#            ktoi   - character to integer conversion                  #
#                                                                      #
########################################################################
integer item
SHORTINT idata

SHORTINT string(6)
integer iend, itemp

include(`mnucom')

call qgtdta (item, string)

itemp = 1
while (string(itemp) == BLANK) itemp = itemp + 1
if (string(itemp) != NUL) {          # Make sure we have some integer
   call ktoi (string, 1, itemp, iend)
   idata = itemp                     # Get short integer from normal
   }

return
end
E 1
