Home > Software engineering >  Vb file operations
Vb file operations

Time:09-17


Make the beginner for bosses

CodePudding user response:

Put your sample content posted,


In addition, look at your "program content," there's nothing difficult, just for some "manual labor", why not write code by yourself?
"" the novice can put his party of rhetorical do?

CodePudding user response:

I write good but there is a problem don't know where I went wrong

CodePudding user response:

Your this Sub "Main" execution to!


According to this code, you project should be set to "from the Sub Main start-up",
You, however, "a new standard EXE engineering", did not change the Settings!
It default from the "first create the form" launched (the default is Form1, after you to "Form1" name, it will "synchronous tracking"),

Anyway your variable bjbstrname are "global", you would put your Sub the assignment statements in the Main,
Moved to your "form 1" Form_Load () event process to calculate, then put the Sub Main deleted,

CodePudding user response:

In addition, you this "error", "debug", and then move the mouse to stay on bjbstrname,
Look at it the value is shown in the "message"?

Are you sure that the path of the "text", you value is consistent with bjbstrname?

CodePudding user response:

Code is to open this TXT file is used to input and confirm your this file in your application directory

CodePudding user response:

All commented On the Error Resume Next statement, in VB6 IDE,
The error and then click the debugging, the cursor will stop error in the statement,
Or
In doubt may have a logical error statements in advance to set breakpoints, run through the breakpoint interrupt,

At this point can be used in the immediate window
? The variable name
Or
? The function name () function parameter
Or
Process (parameters)
Auxiliary debugging,

CodePudding user response:

Reading should be the file path is wrong or wrong file is not in the specified path

CodePudding user response:

After you create the project, save, save after turn off the VB, and then to save there to open the project again, then you can use the
New engineering App. The Path is under the installation directory of VB, saved all useless, quit, open, and then position is where your project file folders,
  • Related