Next: Supplementary Routines
Up: Dialogue/String Manipulation Routines
Previous: Dialogue/String Manipulation Routines
These routines may be used with internal and external interface programs. They enable communication between the interface program and the command line area whilst running FEMGV. Some case and format conversion routines are also provided. These routines operate in the same manner on all machine types.
UA1A4SubroutineTo convert a sub-string in A1 format to A4 format.
CALL UA1A4(ISTRNG,IFIRST,ILAST,JFIRST,RSTRNG,JLAST)
UA1CHASubroutineTo convert a string in A1 format to character format.
CALL UA1CHA(ISTRNG,NCONV,CSTRNG)
UA4A1SubroutineTo convert a sub-string in A4 format to A1 format.
CALL UA4A1(RSTRNG,IFIRST,ILAST,JFIRST,ISTRNG,JLAST)
UCCONVSubroutineConvert a string from lower to upper case.
CALL UCCONV(ISTRNG,IFIRST,ILAST)
UCHAA4SubroutineTo convert from character string to a4 characters.
CALL UCHAA4(CSTRNG,JFIRST,RSTRNG,JLAST)
UDATESubroutineGet the date and time.
CALL UDATE(IDAY,IMONTH,IYEAR,IHOUR,IMIN,ISEC)
UDECODSubroutineDecode a token from a line of text.
CALL UDECOD(ISTRNG,ISTART,IEND,IWANT,ITYPE,IFIRST,ILAST,
IVALUE,RVALUE)
This routine is used to locate, identify, and decode a token from a line of text. A token is defined as any group of non blank characters. Each token is assumed to be delimited by one or more blank characters. A start and end pointer are given to define the range over which to look for a token. The routine will locate the first token which it finds in that range. A desired token type may optionally be given.
UREADSubroutineRead a line of text from the keyboard.
CALL UREAD(IPRMPT,NCHRS,IUPPER,ILOG,JSTRNG,IEXIT)
USINITSubroutineInitialise an array of A1 characters to blanks.
CALL USINIT(ISTRNG,IFIRST,ILAST)
USLCHASubroutineTo load a character string into an A1 array.
CALL USLCHA(CSTRNG,IFIRST,JSTRNG,ILAST)
USLFLOSubroutineTo load a real into an A1 array.
CALL USLFLO(RVAL,NSIGDI,JFIRST,JSTRNG,JLAST)
USLINTSubroutineTo load an integer into an A1 array.
CALL USLINT(IVAL,JFIRST,JSTRNG,JLAST)
UWRITESubroutineWrite a line of text to the screen.
CALL UWRITE(ISTRNG,NCHRS)
Femsys Limited