Jump to content
Sign in to follow this  
capg

Formating data using VB Scripting

Recommended Posts

I'm new to VB Scripting, Here I'm trying write add some values to an array and then display those values in a table.My question is how can I format the contents of the table like applying font, size etc.,Thanks in Advance. capimy text is like this<HTML><HEAD><FONT FACE="ARIAL" SIZE=2 COLOR="#13428E"><script type="text/vbscript">dim aa=Array("MONITORs", _"CPUs", _"KEYBOARDs", _"MOUSE", _"USB", _"HARDDRIVE", _"MP3Players", _"-")document.write("<FONT SIZE=2 COLOR=BLUE> <table border=1>")document.write("<tr><td>" & a(0) & "</td></tr>")document.write("<tr><td>" & a(1) & "</td></tr>")document.write("<tr><td>" & a(2) & "</td></tr>")document.write("<tr><td>" & a(3) & "</td></tr>")document.write("<tr><td>" & a(4) & "</td></tr>")document.write("<tr><td>" & a(5) & "</td></tr>")document.write("<tr><td>" & a(6) & "</td></tr>")document.write("<tr><td>" & a(7) & "</td></tr>")DOCUMENT.WRITE("</table></FONT>")</script></HEAD></HTML>

Share this post


Link to post
Share on other sites

<HTML><HEAD><FONT FACE="ARIAL" SIZE=2 COLOR="#13428E"><script type="text/vbscript">dim aa=Array("MONITORs", _"CPUs", _"KEYBOARDs", _"MOUSE", _"USB", _"HARDDRIVE", _"MP3Players", _"-")document.write("<table border=1>")document.write("<tr><td><FONT SIZE=2 COLOR=BLUE>" & a(0) & "</FONT></td></tr>")document.write("<tr><td>" & a(1) & "</td></tr>")document.write("<tr><td>" & a(2) & "</td></tr>")document.write("<tr><td>" & a(3) & "</td></tr>")document.write("<tr><td>" & a(4) & "</td></tr>")document.write("<tr><td>" & a(5) & "</td></tr>")document.write("<tr><td>" & a(6) & "</td></tr>")document.write("<tr><td>" & a(7) & "</td></tr>")DOCUMENT.WRITE("</table></FONT>")</script></HEAD></HTML>

Share this post


Link to post
Share on other sites

kansasprog,Thanks you very much your code and it worked for me.Capi

I'm new to VB Scripting, Here I'm trying write add some values to an array and then display those values in a table.My question is how can I format the contents of the table like applying font, size etc.,Thanks in Advance. capimy text is like this<HTML><HEAD><FONT FACE="ARIAL" SIZE=2 COLOR="#13428E"><script type="text/vbscript">dim aa=Array("MONITORs", _"CPUs", _"KEYBOARDs", _"MOUSE", _"USB", _"HARDDRIVE", _"MP3Players", _"-")document.write("<FONT SIZE=2 COLOR=BLUE> <table border=1>")document.write("<tr><td>" & a(0) & "</td></tr>")document.write("<tr><td>" & a(1) & "</td></tr>")document.write("<tr><td>" & a(2) & "</td></tr>")document.write("<tr><td>" & a(3) & "</td></tr>")document.write("<tr><td>" & a(4) & "</td></tr>")document.write("<tr><td>" & a(5) & "</td></tr>")document.write("<tr><td>" & a(6) & "</td></tr>")document.write("<tr><td>" & a(7) & "</td></tr>")DOCUMENT.WRITE("</table></FONT>")</script></HEAD></HTML>

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...