Simple File Cabinet
Posted
#1
(In Topic #348)
Regular

Posted
Regular

cage said
This is a simple file cabinet program that allows you to setup categories and place information in those categories…
I've only had an hour or so to look at this, but hope to spend some more time later.
Initial impression: I like it!
Comments;
1. I'd prefer 'right-click' to bring up the option for adding a New Category rather than Delete a category. I think deleting should be more difficult/less immediate, so better in the dropdown menu.
2. I think you need to swap the last two lines in FMain.class Public Sub mnuNew_Click() so that the category list updates straight away, without having to manually refresh, like this:-
3. There is quite a bit of duplication in Contents.class Select Case. Duplication is more bug prone, and can have a negative affect on software maintenance and test time.
I suggest some kind of "CreateCat" routine, maybe like:-
Code (gambas)
- Close #hFile
- CatData.Show
…actually the:-
…should just appear once, below End Select (…if this is not a problem for the Case "Print").
I hope this is useful.
EDIT
4. The Print Selected Text form is not very well behaved. I think you should use:-
Code (gambas)
- PrintForm.ShowModal
Posted
Regular

Posted
Guru

I have made all the forms expandable added the logo to FMain form so it shows in the taskbar. The only other issue that I noticed was the use of the word 'Exit' I kept thinking that would exit the program. I think 'Close' might be better. Other than that it seems to work well. :arrow: BUT what did I see!! Was that references to VB6!! Ahh!! :shock:
Posted
Regular

Posted
Regular

Me too. When still working in industry, I enjoyed VB6, didn't like .Net, and really didn't like C++. I also discovered the delights of VBA for Excel, creating an OPC server/client system for an Irish cheese products company. Its good for many applications which produce a lot of data and where you can't be bothered to create a user interface (i.e. just write any data to a spreadsheet).cage said
…until they came out with VB Net. Didn't like VB Net at all…
Posted
Regular

cage said
…I have implemented everything that stevedee and you suggested in the latest version. So hope you like the program.
Great stuff cage, I think that is an improvement.
Just a few more points (sorry);
1. I think you may have forgotten to add the Delete Category option to the drop-down menu.
2. Whenever you do anything with files (e.g. open, create, kill…) you should add an error handler. So the minimum would be just to add Catch as you have done in many routines. Or maybe even use the Try…If Error method.
3. With Select Case, its a good idea to always use the Case Else condition (just in case none of the cases apply). So in the Contents.class I would replace the Case "exit" with Case Else.
4. Not sure what the Return is doing in this bit of code:-
…but I expect its just a remnant from an earlier edit.
5. In the Sub mnuDelete_Click() routine you have an unnecessary Return, which for me is ugly (…yes, I'm a bit of an old woman). This routine could easily be re-written so that Return is not necessary. Also, a '2 Case' chunk of code can always be replaced by an If…Then…Else block which in this case would make it easier to read.
Posted
Regular

Posted
Administrator

Putting the newest version in your first post IMO would probably be the best location since new readers would always see the newest version right away, and thread followers would know right where to look for the newest version.
Posted
Regular

1 guest and 0 members have just viewed this.

