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)

New Topic/Question
Reply




MultiQuote



|