J
joeyfoley
Hi All,
I have a file that I am reading in that I need to reprint and format
the output.
There are 4 parts that need to be printed on a line.
Name 1-14
Type 16-22
Start 24-28 (left justified)
Width 30-32 (left justified)
However, if the name is greater than 14 characters, then the rest of
the code is moved right accordingly.
The algorithm is basically:
If length(Name) <=14 then:
print @1 Name
print @16 Type
print @24 Start (left justified)
print @30 Width (left justified)
else
print @1 Name
print@(length(name)+1) Type
print@(length(name)+10) Start (left justified)
print@(length(name)+15) Width (left justified)
How do I print with this algorithm?
Thanks.
I have a file that I am reading in that I need to reprint and format
the output.
There are 4 parts that need to be printed on a line.
Name 1-14
Type 16-22
Start 24-28 (left justified)
Width 30-32 (left justified)
However, if the name is greater than 14 characters, then the rest of
the code is moved right accordingly.
The algorithm is basically:
If length(Name) <=14 then:
print @1 Name
print @16 Type
print @24 Start (left justified)
print @30 Width (left justified)
else
print @1 Name
print@(length(name)+1) Type
print@(length(name)+10) Start (left justified)
print@(length(name)+15) Width (left justified)
How do I print with this algorithm?
Thanks.