|
-
Jun 22nd, 2000, 07:25 PM
#1
Thread Starter
New Member
Hi there,
can I ask for help with my first attempt at VB programming.
I have been asked by my employers to write what they say is a SIMPLE program to loop through a number of text files on a CD, extract some (not all) information from each (posibly by line number) and send it to certain fields in an SQLdatabase. It doesn't sound simple to me, I don't know where to start. As you can imagine, any help would really be appreciated.
Thanks
-
Jun 22nd, 2000, 08:14 PM
#2
Lively Member
Hi,
I'd really like to help you, but information is a little scantily!
A few hints:
- For browsing a directory, take a look at the DIR command
- For text file handling look at FREEFILE, OPEN FILE, LINE INPUT etc.
- For database access look at ADO
Hope that helps, just don't panic!
Roger
-
Jun 23rd, 2000, 12:00 AM
#3
Fanatic Member
True, we can try to point you in the right direction.
Look up the following functions/controls in VB help
DIR (to get file names)
CommonDialog (to create an "Open" dialog box, not sure if you need this)
Open (to open the file)
input (to read the file to memory
Arrays (to hold the file details)
Instr() (to search the files for ... whatever)
Split() (to break a file into lines (you may not need this)
RDO / DAO / ADO (your choice od database methods)
SQL language syntax (select, update, insert, delete) for reading and writing to the DB
They dumped you in the deep end, but if they've giving you some time (a month or two) and you keep posting here when you get stuck, then you'll finish fine and learn heaps at the same time, it's not really that hard
Paul Dwyer 
Network Engineer
Aussie In Tokyo
Using Powerbasic 6 & VB6 SP4 (Please also add your VB Version to your signature!)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|