home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
OL.LZH
/
PROCS.LZH
/
TAB2REC.ICN
< prev
next >
Wrap
Text File
|
1991-09-05
|
769b
|
35 lines
############################################################################
#
# Name: tab2rec.icn
#
# Title: Insert tab-separated strings in record fields
#
# Author: Ralph E. Griswold
#
# Date: September 2, 1991
#
############################################################################
#
# This procedure to takes tab-separated strings and inserts them
# into fields of a record.
#
# Vertical tabs in strings are converted to carriage returns.
#
# (Works for lists too.)
#
############################################################################
procedure tab2rec(s,x)
local i
i := 0
s ? {
while x[i +:= 1] := map(tab(upto('\t') | 0), "\v", "\n") do
move(1) | break
}
return
end