Click here to Skip to main content
15,903,033 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Adding items in listview Pin
tricknigjew16-Sep-04 3:44
tricknigjew16-Sep-04 3:44 
GeneralCalling dll in visual c++ Pin
sumiko15-Sep-04 19:46
sumiko15-Sep-04 19:46 
GeneralUnhandled exception Pin
kokain15-Sep-04 16:08
kokain15-Sep-04 16:08 
GeneralModal Forms in VB 6.0 Pin
Red Sunday15-Sep-04 12:32
Red Sunday15-Sep-04 12:32 
GeneralRe: Modal Forms in VB 6.0 Pin
pbpb15-Sep-04 20:25
pbpb15-Sep-04 20:25 
GeneralRe: Modal Forms in VB 6.0 Pin
Purple Monk16-Sep-04 0:43
Purple Monk16-Sep-04 0:43 
GeneralRe: Modal Forms in VB 6.0 Pin
pbpb16-Sep-04 2:21
pbpb16-Sep-04 2:21 
GeneralVisual Basic Sequential File IO Pin
Red Sunday15-Sep-04 4:50
Red Sunday15-Sep-04 4:50 
First off, I have found some articles on the MSDN website that have pointed me in the right direction but don't have all the answers. Also, I am using Visual Basic 6.0.

I need to be able to access a file and do a couple of things with it:

1) I need to find out if it exists and if not, then create it. I found
System.IO.File.Exists("c:\ExistingFileName")
but I get an error. I believe this error is due to the fact that I have not told the compiler I am using the system namespace. How do you signal the compiler you are using the System namespace in Basic?
In C it would be using System.IO.File, but I have no clue in Basic.Confused | :confused:
2) What is the command to create a sequential file in Basic and what variable will I have access to?
3) How do I add to it/ close it when I am done?

Thank you,
Zach Calvert

-----------------
http://www.zachcalvert.com
GeneralRe: Visual Basic Sequential File IO Pin
Anonymous15-Sep-04 6:31
Anonymous15-Sep-04 6:31 
GeneralRe: Visual Basic Sequential File IO Pin
Red Sunday15-Sep-04 7:12
Red Sunday15-Sep-04 7:12 
GeneralRe: Visual Basic Sequential File IO [EDITED] Pin
Dave Kreskowiak15-Sep-04 8:03
mveDave Kreskowiak15-Sep-04 8:03 
GeneralRe: Visual Basic Sequential File IO [EDITED] Pin
Red Sunday15-Sep-04 8:14
Red Sunday15-Sep-04 8:14 
GeneralRe: Visual Basic Sequential File IO [EDITED] Pin
Dave Kreskowiak15-Sep-04 9:01
mveDave Kreskowiak15-Sep-04 9:01 
GeneralReturning Integer value from a VB (NOT .Net) Command line application Pin
Jobby Joseph15-Sep-04 3:54
Jobby Joseph15-Sep-04 3:54 
GeneralRe: Returning Integer value from a VB (NOT .Net) Command line application Pin
Dave Kreskowiak15-Sep-04 4:22
mveDave Kreskowiak15-Sep-04 4:22 
GeneralRe: Returning Integer value from a VB (NOT .Net) Command line application Pin
Jobby Joseph15-Sep-04 4:37
Jobby Joseph15-Sep-04 4:37 
GeneralDropdownlist Pin
jr121415-Sep-04 2:53
jr121415-Sep-04 2:53 
GeneralRe: Dropdownlist Pin
Purple Monk16-Sep-04 1:27
Purple Monk16-Sep-04 1:27 
GeneralRe: Dropdownlist Pin
jr121416-Sep-04 3:56
jr121416-Sep-04 3:56 
Generalprinting contents behind scrollbar Pin
vjer00114-Sep-04 19:12
vjer00114-Sep-04 19:12 
GeneralAdjusting PictureBox contrast/brightness Pin
Jason2314-Sep-04 14:29
Jason2314-Sep-04 14:29 
GeneralRe: Adjusting PictureBox contrast/brightness Pin
Anonymous14-Sep-04 18:24
Anonymous14-Sep-04 18:24 
GeneralConnecting to Oracle database Pin
pathuknown14-Sep-04 10:49
pathuknown14-Sep-04 10:49 
GeneralRe: Connecting to Oracle database Pin
Anonymous14-Sep-04 18:30
Anonymous14-Sep-04 18:30 
General.NET and Integer, Long, and Short Pin
GregOsborne14-Sep-04 10:05
GregOsborne14-Sep-04 10:05 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.