PlanetSquires Forums

Support Forums => Other Software and Code => Topic started by: tom cone jr on December 27, 2005, 01:28:09 AM

Title: Sub / End Sub Procedure Locations
Post by: tom cone jr on December 27, 2005, 01:28:09 AM
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
Title: Re: Sub / End Sub Procedure Locations
Post by: TechSupport on December 27, 2005, 11:35:33 AM
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.
Title: Sub / End Sub Procedure Locations
Post by: tom cone jr on December 27, 2005, 12:23:31 PM
Thanks.

-- tom
Title: Sub / End Sub Procedure Locations
Post by: Roger Garstang on December 27, 2005, 07:13:47 PM
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