set unit of a specified column
Arguments:
tab
returned table
col
column to be changed
unit
unit string
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(Table), | intent(inout) | :: | tab | |||
integer(kind=short), | intent(in) | :: | col | |||
character(len=*), | intent(in) | :: | unit |
SUBROUTINE TableSetColUnit & ( tab, col, unit) IMPLICIT NONE ! Arguments with intent(in): INTEGER (KIND = short), INTENT (IN) :: col CHARACTER (LEN = *), INTENT (IN) :: unit ! Arguments with intent (inout): TYPE (Table), INTENT (INOUT) :: tab !------------end of declaration------------------------------------------------ tab % col (col) % unit = TRIM (unit) RETURN END SUBROUTINE TableSetColUnit