1 Replies - 1074 Views - Last Post: 09 February 2009 - 12:27 AM Rate Topic: -----

#1 S3lkies  Icon User is offline

  • D.I.C Head

Reputation: 4
  • View blog
  • Posts: 247
  • Joined: 09-January 09

VB INPUT BOX'S

Posted 09 February 2009 - 12:03 AM

	 Dim x As Pump
	 Open "c:\test.txt" For Input As #1
	 Input #1, x.Model, x.Price, x.Gst, x.Total Price
	 Close #1
	 MsgBox x.Model + " " + Str(x.Price) + " " + x.Gst+" "+x.Total Price


i got it off a snippet and im not sure how to use it as im trying to make a message box open up saying "Model number",Price, Gst, Total price" and i thought id have to put the info in the "C:\test.txt" for example when i input the model number in the boxes i want it to say "0515TF034" "$100" ,"$10"" $110" and its not working, so what im asking is what am i doing wrong? im getting a compile error that says "Compile error,User-defined type not defined" and chyehh

also i dont know if im entering the correct info in the test.txt do i just enter it straight up
0515TF034,100,10,110
?


thanks in advance (i know i havnt explained it that well its just i dont know how to explain it)

Is This A Good Question/Topic? 0
  • +

Replies To: VB INPUT BOX'S

#2 S3lkies  Icon User is offline

  • D.I.C Head

Reputation: 4
  • View blog
  • Posts: 247
  • Joined: 09-January 09

Re: VB INPUT BOX'S

Posted 09 February 2009 - 12:27 AM

Please delete this question .. i have another one and this wont be any use .... thanks [=
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1