2
! Midas procedure tbl3bdf.prg
3
! Copy image file from/to 3Dtable column
10
if MID$CMND(11:11) .eq. "I" then
12
! use via: @ tbl3bdf input_ima table colref,rowno felem,noelms upda_flag
14
define/para p1 ? I "input image:"
15
define/para p2 ? T "result table:"
16
define/para p3 * C "col_ref,row_no:"
17
define/para p4 * C "1st element,no. of elements:"
19
"flag (Update/NO_update) OR no_of_rows to allocate:"
21
write/keyw in_a/c/1/80 {p1}
22
write/keyw out_a/c/1/64 {p2}
23
write/keyw inputc/c/1/24 {p3}
24
write/keyw inputc/c/31/20 {p4}
27
if m$tstno(p5) .eq. 1 then
29
write/keyw inputi {p5}
31
if p5(1:1) .eq. "U" then
32
if m$exist(out_a) .eq. 1 then
35
outputc(1:) = out_a // ".tbl"
36
if m$exist(outputc) .eq. 1 then
37
out_a(1:) = outputc(1:)
44
if p3(1:1) .eq. "*" p3(1:2) = "? "
45
if p4(1:1) .eq. "*" p4(1:2) = "? "
46
write/keyw history/c/1/80 "COPY/IMT3 {p1} {p2} {p3} {p4} {p5}"
51
! use via: @ tbl3bdf table column nrlo,nrhi felem,noelem startx,stepx result
53
define/para p1 ? T "input table:"
54
define/para p2 ? C "column:"
55
define/para p3 1,1 C "1st row, no. of rows:"
56
define/para p4 * C "1st elem, no. of elements in array column:"
57
define/para p5 * C "xstart,xstep[,ystart,ystep] :"
58
define/para p6 tbimage I "result image:"
60
write/keyw in_a/c/1/60 {p1}
61
write/keyw inputc/c/1/60 {p2}
62
define/local row/c/1/60 {p3}
63
define/local dim/c/1/60 {p4}
64
define/local coor/c/1/60 {p5}
65
write/keyw out_a/c/1/80 {p6}
67
if p4(1:1) .eq. "*" p4(1:2) = "? "
68
if p5(1:1) .eq. "*" p5(1:2) = "? "
69
write/keyw history/c/1/80 "COPY/T3IMA {p1} {p2} {p3} {p4} {p5} {p6}"