50 lines
1.7 KiB
Plaintext
50 lines
1.7 KiB
Plaintext
|
subroutine U01BE( ans, status, data, type )
|
||
|
*******************************************************************************
|
||
|
*
|
||
|
* Input a string of no more than "data" characters, performing a
|
||
|
* 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 sends the cursor to
|
||
|
* the leftmost column of the next line.
|
||
|
*
|
||
|
* Usage: x = OCONV( n, "U01BE" )
|
||
|
* 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
|