Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Were is VB Code stored?

Status
Not open for further replies.

MrMoocow

Programmer
May 19, 2001
380
US
When you save a project there is of course the Project.vbp.
TheForm.frm
THeFrom.vbw

I saved my project to a bad floppy. Now the form is corrupt,How can i get the code out?IS the code in the frm or vbw? Brad,
Hey! email me any time! Bradsvb@yahoo.com
 
it depends on where you wrote the code..if you wrote some code in the form then that code will be in the form. if you wrote modules you will be able to see those seperate from the forms..etc.. DVannoy
A+,Network+,CNA
dvannoy@onyxes.com
 
I wrote it in the form, so its in the .frm? Brad,
Hey! email me any time! Bradsvb@yahoo.com
 
You may be able to salvage some of it if you can get the .frm file. rename extension ".frm" to ".txt" and open with wordpad or other text program. The beginning of the file is the controls declaration and the end is any code you placed in the form.
 
Thanks I'm trying everything to salavage this disk. And you've all been so helpful.

Thanks Brad,
Hey! email me any time! Bradsvb@yahoo.com
 
Tip: You can always Open WordPad or NotePad and open any file from there regardless of extension.

You can also RIGHT-CLICK on a file and use SEND TO if you have done the following:
1) Find Wordpad (Right-click START, Left click on Open then Programs then Accessories).
2) Right-click on Wordpad icon and select COPY.
3) Open C:\Windows\SendTo folder.
4) Select Edit / Past Shortcut from the Menu. The shortcut is now in the SEND TO folder and will show up in the Popup menu whenever you right-click on a file name.

Do the same for Notepad MS, Paint or any application that accepts a file. Compare Code (Text)
Generate Sort in VB or VBScript
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top