tldm-universe/Ardent/UV/APP.PROGS/11BE

50 lines
1.7 KiB
Plaintext
Raw Normal View History

2024-09-09 21:51:08 +00:00
subroutine U11BE( ans, status, data, type )
*******************************************************************************
*
* Input a string of no more than "data" characters, performing no
* carriage return / line feed afterward.
*
* Module %M% Version %I% Date %H%
*
* (c) Copyright 1998 Ardent Software Inc. - All Rights Reserved
* This is unpublished proprietary source code of Ardent Software Inc.
* The copyright notice above does not evidence any actual or intended
* publication of such source code.
*
*******************************************************************************
*
* Maintenence log - insert most recent change descriptions at top
*
* Date.... GTAR# WHO Description.........................................
* 10/14/98 23801 SAP Change copyrights.
* 07/25/88 - - Maintenence log purged at 5.2.1, see release 5.1.10.
*
*******************************************************************************
*
* This "user-exit", called from a BASIC program, accepts a specified
* number of characters into a variable and leaves the cursor in
* position after the last character entered
*
* Usage: x = OCONV( n, "U11BE" )
* where "n" is the number of characters to accept
*
* Arguments to this subroutine are:
* ans - the characters put in
* data - the number of characters to accept
* status - 0 if the "conversion" succeeds
* type - 0 if ICONVerting, 1 if OCONVerting
* irrelevant in the case of 01BE
*
*******************************************************************************
*
$options DEFAULT
if not( num( data )) or data < 1 then
status = 1
end else
status = 0
input ans,data_:
end
return
end