Sub / End Sub Procedure Locations

Started by tom cone jr, December 27, 2005, 01:28:09 AM

Previous topic - Next topic

tom cone jr

In my little database program I will be fetching records and then displaying them in a series of textboxes I have on my form for each field in a record.  I'd like to create a SUB / END SUB procedure to "Display Record", so I simply have to call the SUB each time I need to repaint the fields in my form.  Is this kind of thing suitable for the General Section of the program?   Do I need to Declare it elsewhere?  Thanks.   -- tom

TechSupport

Quote from: tom cone jrI'd like to create a SUB / END SUB procedure to "Display Record", so I simply have to call the SUB each time I need to repaint the fields in my form.  Is this kind of thing suitable for the General Section of the program?
It sure is... or, you could put it in a separate Module.

QuoteDo I need to Declare it elsewhere?
Nope. FireFly takes care of generating the declares when the source code is generated and compiled.

tom cone jr


Roger Garstang

That's one of my favorite things in FF...no need for Declares!  I never saw the point in having a function then declaring it with pretty much the same line.  Like .h files in C++  :P