Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_vb thread: Question (Hard)


Message #1 by "SkinnyM" <justymusty_69@h...> on Fri, 9 Mar 2001 13:54:22
You really should put "Option Explicit" at the top of all your modules,
forms and classes.  This requires you to dim all variables before using them
(or your project will not compile), therefore keeping these "easy" fixes out
of the "pro_vb" email group...

-----Original Message-----
From: patelpm@f... [mailto:patelpm@f...]
Sent: Friday, March 09, 2001 11:16 AM
To: professional vb
Subject: [pro_vb] Re: Question (Hard)


I think it is a perfectly alright!
Add the following line to your code and it will work!!

> amm. it diidnt work. this is exacty what i have
> 

    Dim stuff As String  ' Did this enlighten you!!!

> Open "c:/matthew1.txt" For Append As #1
> Print #1, Date
> Print #1, "  +7"
> Close #1
> 
> Open "c:/matthew1.txt" For Input As #1
> Do Until EOF(1)
> Input #1, stuff
> Text1.Text = Text1.Text & stuff
> Loop
> Close #1
>  And when i run this all it prints is 3 7 3 7 3 7 3 7
> What is wrong!!

  Return to Index