Article ID: 129977
Article Last Modified on 10/15/2003
HELP naming conventions
Scope Description Example --------------------------------------- l Local lnCounter p Private (default) pnStatus g Public (global) gnOldRecno t Parameter tnRecNoThe Type prefix is always relevant and is required in sample programs. Type specifies the data type for the variable. The choices for Type are:
Type Description Example ----------------------------------- a Array aMonths c Character cLastName y Currency yCurrentValue d Date dBirthDay t Datetime tLastModified b Double bValue f Float fInterest l Logical lFlag n Numeric nCounter o Object oEmployee u Unknown uReturnValue
Prefix Object Example --------------------------------------------------- chk check box chkReadOnly cbo ComboBox cboEnglish cmd CommandButton cmdCancel cmg CommandGroup cmgChoices cnt Container cntMoverList ctl Control ctlFileList <user-defined> Custom user-defined edt EditBox edtTextArea frm Form frmFileOpen frs FormSet frsDataEntry grd Grid grdPrices grc Column grcCurrentPrice grh Header grhTotalInventory img Image imgIcon lbl Label lblHelpMessage lin Line linVertical lst list box lstPolicyCodes olb OLEBoundControl olbObject1 ole OLE oleObject1 opt OptionButton optFrench opg OptionGroup opgType pag Page pagDataUpdate pgf PageFrame pgfLeft sep Separator sepToolSection1 shp Shape shpCircle spn Spinner spnValues txt text box txtGetText tmr Timer tmrAlarm tbr ToolBar tbrEditReport
Type Description Example ------------------------------------- c Character Customer.cLastName d Date Customer.dBirthDay t Datetime Customer.tLastMod b Double Customer.bRate f Float Customer.fValue g General Customer.gPicture l Logical Customer.lSellMail m Memo Customer.mComments y Currency Customer.yYearTDate n Numeric Customer.nItems i Integer Customer.iCustID
DEFINE WINDOW wCustomerInvoices ;
FROM nFirstRow, nFirstColumn TO nLastRow, nLastColumn
Follow this suggested format for naming windows. Do not use a prefix on
class definitions. Use prefixes only when the object is instantiated.
Additional query words: VFoxWin
Keywords: KB129977