Steven McGarva
Oct 13th, 2000, 05:11 AM
I am new to HTML, can anyone advise me on how to fix this bit of code? I need to set up Column headings on a page and the following code does it (incorrectly). How does this work, how can I align as I need to? Any other tips or advice.
My data will also need to be aligned but if I can understand the headings, then I should be able to extrapolate into the data columns.
'Write headings
'Write First Row of Headings
TabOpenRow
TabWriteCell "",3,"","",0," "
TabWriteCell "",2,"center","Arial",2,"<strong>Readings</strong>"
TabWriteCell "",2,"","",0," "
TabWriteCell "",1,"right","Arial",2,"<strong>Units</strong>"
TabWriteCell "",1,"","",0," "
TabWriteCell "",4,"right","Arial",2,"<strong>Units</strong>"
TabWriteCell "",1,"right","Arial",2,"<strong>Unit Price</strong>"
TabWriteCell "",1,"right","Arial",2,"<strong>Discount</strong>"
TabWriteCell "",1,"centre","Arial",2,"<strong>Charge</strong>"
TabCloseRow
'Write Second Row of Headings
TabOpenRow
TabWriteCell "",3,"","",0," "
TabWriteCell "",1,"centre","Arial",2,"<strong>Present</strong>"
TabWriteCell "",1,"","",0," "
TabWriteCell "",1,"centre","Arial",2,"<strong>Previous</strong>"
TabWriteCell "",1,"","",0," "
TabWriteCell "",1,"right","Arial",2,"<strong>Used</strong>"
TabWriteCell "",1,"","",0," "
TabWriteCell "",4,"right","Arial",2,"<strong>Charged</strong>"
TabWriteCell "",1,"right","Arial",2,"<strong>(£)</strong>"
TabWriteCell "",1,"right","Arial",2,"<strong>(£)</strong>"
TabWriteCell "",1,"centre","Arial",2,"<strong>(£)</strong>"
TabCloseRow
My data will also need to be aligned but if I can understand the headings, then I should be able to extrapolate into the data columns.
'Write headings
'Write First Row of Headings
TabOpenRow
TabWriteCell "",3,"","",0," "
TabWriteCell "",2,"center","Arial",2,"<strong>Readings</strong>"
TabWriteCell "",2,"","",0," "
TabWriteCell "",1,"right","Arial",2,"<strong>Units</strong>"
TabWriteCell "",1,"","",0," "
TabWriteCell "",4,"right","Arial",2,"<strong>Units</strong>"
TabWriteCell "",1,"right","Arial",2,"<strong>Unit Price</strong>"
TabWriteCell "",1,"right","Arial",2,"<strong>Discount</strong>"
TabWriteCell "",1,"centre","Arial",2,"<strong>Charge</strong>"
TabCloseRow
'Write Second Row of Headings
TabOpenRow
TabWriteCell "",3,"","",0," "
TabWriteCell "",1,"centre","Arial",2,"<strong>Present</strong>"
TabWriteCell "",1,"","",0," "
TabWriteCell "",1,"centre","Arial",2,"<strong>Previous</strong>"
TabWriteCell "",1,"","",0," "
TabWriteCell "",1,"right","Arial",2,"<strong>Used</strong>"
TabWriteCell "",1,"","",0," "
TabWriteCell "",4,"right","Arial",2,"<strong>Charged</strong>"
TabWriteCell "",1,"right","Arial",2,"<strong>(£)</strong>"
TabWriteCell "",1,"right","Arial",2,"<strong>(£)</strong>"
TabWriteCell "",1,"centre","Arial",2,"<strong>(£)</strong>"
TabCloseRow