anoniem Geplaatst: 24 juni 2003 Delen Geplaatst: 24 juni 2003 Hoi allemaal, Ik ben bezig aan een programma in visual basic 6 en nu ben ik tegen een probleem aan gelopen. Ik weet namelijk niet hoe ik moet saven, kan iemand mij helpen. En als iemand daarnaast ook nog een goeie (wat meer gevorderde) vb6 tutorial weet, geef die dan aub. Bedankt Quote Link naar reactie
anoniem Geplaatst: 25 juni 2003 Auteur Delen Geplaatst: 25 juni 2003 Wat wil je saven? Gewoon een textfile? Gaat als volgt: [code:1:1d94bf3296]This example uses the Print # statement to write data to a file. Open "TESTFILE" For Output As #1 ' Open file for output. Print #1, "This is a test" ' Print text to file. Print #1, ' Print blank line to file. Print #1, "Zone 1"; Tab ; "Zone 2" ' Print in two print zones. Print #1, "Hello" ; " " ; "World" ' Separate strings with space. Print #1, Spc(5) ; "5 leading spaces " ' Print five leading spaces. Print #1, Tab(10) ; "Hello" ' Print word at column 10. ' Assign Boolean, Date, Null and Error values. Dim MyBool, MyDate, MyNull, MyError MyBool = False : MyDate = #February 12, 1969# : MyNull = Null MyError = CVErr(32767) ' True, False, Null, and Error are translated using locale settings of ' your system. Date literals are written using standard short date ' format. Print #1, MyBool ; " is a Boolean value" Print #1, MyDate ; " is a date" Print #1, MyNull ; " is a null value" Print #1, MyError ; " is an error value" Close #1 ' Close file.[/code:1:1d94bf3296] Quote Link naar reactie
anoniem Geplaatst: 25 juni 2003 Auteur Delen Geplaatst: 25 juni 2003 ook bedankt, het is gelukt dus nu ga ik weer vrolijk verder Quote Link naar reactie
Aanbevolen berichten
Om een reactie te plaatsen, moet je eerst inloggen