Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Urgent : Need Help In Visual Basic 6

Status
Not open for further replies.

Ghassan Al-Mutawa

Junior Member level 3
Joined
Oct 9, 2005
Messages
29
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
Bahrain
Activity points
1,574
Hi There I Have Some Problems That Makes Me Made

Problem #1 Working With Files

Open "C:\Test.txt" For Output As #1

First step i want the program in the form load to look for the file, if it doesnt exist then creat it, does any one knows haw to write that code ?, i have no problem in creating the file, but have a problem in making the program search for the file

Problem #2 Working With Access Database

when the database contains data no error appers whnd loding the program, but the problem appers when the user tries to delete a record from an empty database, after that if we rerun the program, the progrm stop adding new records or gives an error messege, due to the previous error of deleteing a record from an empty database. haw to solve this problem.

waiting for your replies , urgent
 

VSMVDD

Banned
Joined
Jun 12, 2005
Messages
646
Helped
92
Reputation
184
Reaction score
34
Trophy points
1,308
Location
scotland uk
Activity points
0
you need to parse the data base a little rules engine to generate the exceptions

and what it does as a result
like if writing to an empty database
then make the file first
using read and write routines on a script window inside the
frame containers page and address the routine to carry out the needed rule
just pass data to the routine using a pointer data->read(data)

use the shellexe or shell="file name " comand

try to read some books for VB6 and 7
https://www.exhedra.com/exhedra/PlanetSourceCode/CD.aspx
good for cds full of source code and can be downloaded

reading and writing to files is done using shell commands
 

Shani

Member level 4
Joined
Jul 26, 2006
Messages
68
Helped
4
Reputation
8
Reaction score
1
Trophy points
1,288
Location
Karachi, Pakistan
Activity points
1,705
Assalamo Alykum !

You can overcome the second problem by using the .eof(End Of Record)

Take Care
 

ajaykumar988

Member level 5
Joined
May 7, 2006
Messages
86
Helped
11
Reputation
22
Reaction score
3
Trophy points
1,288
Activity points
1,796
Dear VSMVDD can u offer some advice on accessing parallel port in visual basic 6.i desperately need some help
 

pronab

Member level 1
Joined
Nov 3, 2006
Messages
34
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
1,424
i'm faching same problem
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top