nassir_atl Newbie
Joined: 23 Feb 2006 Posts: 2
|
Posted: Apr 19th, 2006 07:08 PM Post subject: color writing sequential file |
|
|
This Program isvery important i tried so many times all i got is syntax. It implies to get 3 text box which i did. It say Name the as quantity, Color,and part. I got that part too and finaly an action button.The problem states:234-R-12h23 meaning 234 is the quantity, R is the color for red ,and 12h23 is the part number.the instruction say, Concatenatethe three with dashes between the parts like 234-R-12h2 and then write it to a sequential file.up to this point is giving me syntax.
Public Class Form1
Private Sub btnWrite_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnWrite.Click
Dim ColorFile As New IO.StreamWriter("E:\Color.Text")
a(234) = Convert.ToInt16(txtQuantity.Text)
a(R) = Convert.ToInt16(txtColor.Text)
a(12h23) = Convert.ToInt16(txtPart.Text)
For
ColorFile.Write(a(R))
Next
ColorFile.Close()
I really appriciated if some one can show me something to start with at least exam final exam coming up soon
thanks. |
|