Log inUsernamePassword
Log me on automatically each visit    
Register
Register
Log in to check your private messages
Log in to check your private messages
Visual Basic Forum for Visual Basic Programmers VB Forum Index » Visual Basic for Applications

Post new topic   Reply to topic
color writing sequential file
View previous topic :: View next topic  
Author Message
nassir_atl
Newbie


Joined: 23 Feb 2006
Posts: 2

PostPosted: Apr 19th, 2006 07:08 PM    Post subject: color writing sequential file Reply with quote

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.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Visual Basic Forum for Visual Basic Programmers VB Forum Index » Visual Basic for Applications All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Visual Basic Forum runs phpBB | Forum Template © iOptional
VB Resources | SSL | Visual Basic