Still could use help ... .bas file?

Previous post: " .bas file ... VB6 project (.vbp)"

I still cannot find where the source code is stored. I can still edit and run the code by opening the project file (.vbp); so it is apparently located in or somehow attached to the the project file.

I do not see a Modul1 or other file ... just a 'form15' file. I had been saving the project under sequentially numbered .vbp file names? :confused:
[431 byte] By [Bob Callen] at [2007-11-20 10:19:26]
# 1 Re: Still could use help ... .bas file?
If you can open the project, you can SAVE PROJECT, or SAVE FORM, or SAVE MODULE. Use SaveAS and see the name, and hopefully, location.
dglienna at 2007-11-9 19:35:15 >
# 2 Re: Still could use help ... .bas file?
All the 'saves' seem to be pointing to the folder 'Code'.
I do not see a save Module as an option.
Nothing seems to be related to a Modul1 or a .bas file.
Bob Callen at 2007-11-9 19:36:15 >
# 3 Re: Still could use help ... .bas file?
well, it could be in the app.path folder.

search your disk for bas files.
dglienna at 2007-11-9 19:37:19 >
# 4 Re: Still could use help ... .bas file?
I do not see a .bas file on the HDD that seems at all related and nothing modified recently.
I am getting tired! ...
I will check tomorrow to see if there are any new posts in case you can think of something else.
THANKS, VERY MUCH FOR TRYING TO HELP!
Bob Callen at 2007-11-9 19:38:14 >
# 5 Re: Still could use help ... .bas file?
Open your .vbp file in NotePad. The path, if different form the vbp's path, will be listed there.
LaVolpe at 2007-11-9 19:39:18 >
# 6 Re: Still could use help ... .bas file?
Check in Project explorer (Ctrl + R) it lists all forms, Modules & etc. attached to the project.. It also lists the file name in brackets...

Find the module you need, dbl check the file name listed and do a search for this file.

If it's still not found then it must be on a network share somewhere, or your VBP file is corrupted...
GremlinSA at 2007-11-9 19:40:17 >
# 7 Re: Still could use help ... .bas file?
Well folks, with your help I seem to have part of the problem solved!
The code is apparently ALL in forms1 ... there apparently was no module1.
How I got in this situation, or got to this point, I haven't a clue ... other than ignorance?
Just for the heck of it, I copied and pasted all the code in forms1 to an added-in module1 and low and behold I could create a .bas file.

Now, I could use suggestions on how to straighten things out to how it should be? I assume that there are parts of the code that should stay in the forms module?
Bob Callen at 2007-11-9 19:41:16 >
# 8 Re: Still could use help ... .bas file?
Anytime you have the same code in different forms, you could move only THAT code to a module. If you want to start your app with no startup form, you'd do that in a module. If you want public variables, you'd do that also.
dglienna at 2007-11-9 19:42:19 >
# 9 Re: Still could use help ... .bas file?
First of all ... THANKS FOR YOUR HELP!
At the moment; I am dealing with only one form (that may change in the future?) and quite a bit of code associated with that using that form.
I want to use my newly acquired flow chart program to help me with my programming; and as I understand it, it requires .bas as a source.
If I understand you correctly ... then I believe that moving all the code that I wrote to a module would likely be OK?
I obviously don't have a good handle on just where the line(s) are between the form and the code I wrote; but as I recall, I generated the form using wizards and do not believe I wrote any code unique to creating the form.
Bob Callen at 2007-11-9 19:43:20 >
# 10 Re: Still could use help ... .bas file?
OhOh. Bad news. Just dawned on me that you don't mean a .BAS file from a module. You are talking about a DOS generation of BASIC. Those saved .BAS files.

There are no 'Flowcharting' programs in VB that will read an app and produce a chart. It worked in BASIC programs, because it was keyboard driven, meaning that only one thing happened at a time.

VB is event driver. There is no real flow.

You usually start out with a flowchart, and then add code to it, although if it's for school, it's easier to do it afterwards.
dglienna at 2007-11-9 19:44:21 >
# 11 Re: Still could use help ... .bas file?
Well ??
I purchased a flow chart program that says it works with VB ... called "Code Visual to Flowchart" from fatesoft.com. Did I throw away money?
Bob Callen at 2007-11-9 19:45:25 >
# 12 Re: Still could use help ... .bas file?
I tried the Demo version. You have to mark the start and end block of code that you want it to chart. I tried Form_Load of an app, and it worked, although it was useless.
dglienna at 2007-11-9 19:46:23 >
# 13 Re: Still could use help ... .bas file?
NOT what I wanted to hear! ... but I asked!
Thanks for all of your help!
Bob Callen at 2007-11-9 19:47:25 >