PowerBuilder program code specification (repost ------ out of programmer base) 1.1.1 Global variable naming specification global variables with G, close to type underscore variable function name, specific rules, such as the following BLOB GBLB_ function name integer Or int GI_ function name Boolean GB_ function name long gi_ function name char gc_ function name character gc_ function name real gr_ function name Date GD_ function name String GS_ function name DateTime GDT_ function name Time GT_ function Decimal GR_ function name DEC GR_ function name unsignedinteger GUI_ function name unsignedint GUI_ function name UINT GUI_ function name Double GR_ function name unsignedlong GUI_ function name Ulong GUI_ function name object variable GO_ function name or g object简 写 _Function Name 1.1.2 Local Variable Naming Specification Global Variables Tottled in l Funitive name char LC_ function name Character LC_ function name real lr_ function name Date LD_ function name String LS_ function name DateTime LDT_ function name Time LT_ function name Decimal LR_ function name DEC LR_ function name unsignedinteger Lui_ Function Name UNSIGNET LUI_ Function Name UINT LUI_ Function Name Double LR_ Features Ulong LUI_ Function Name Object Variable LO_ Function Name or L Object Shorthand_Function Name 1.1.3 Instance Variable Name Specifications Global Variables I start, close-up type Underline variable function name, specific rules, such as the following blob IBLB_ function name INTEGER OR INT II_ function name Boolean IB_ function name long II_ function name char IC_ function name Character IC_ function name Real IR _Function name Date ID_ function name string is_ function name DateTime IDT_ function Time IT_ function name DECIMAL IR_ function name DEC IR_ function name unsignedinteger iUI_ function name unsignedint iUI_ function name UINT IUI_ function name Double IR_ function name unsignedlong iUI_ function name Ulong iUI_ function name object variable IO_ Function name or I object Shop _ function name 1.1.4 function and event parameter naming specification global variable with A start, close-to type underscore variable function name, specific rules, such as the following blob ablb_ function name INTEGER OR INT AI_ function name Boolean Ab_ function name long AI_ function name char ac_ function name Character ac_ function name real ar_ function name Date Ad_ function name string AS_ function name DateTime ADT_ function name Time AT_ function name Decimal Ar_ function name DEC AR_ function name UNSIGNEDINTEGER AUI_ function name unsignedint aui_ function name uint aui_ function name Double Ar_ function name unsignedlong aui_ function name ulong aui_ function name object variable AO_ function name or A object is short-term 1.1.5 Window, function, can inherit the object naming specification window naming specification: W_ module name _ function name function naming specification: f_ module name _ function name can inherit the object Naming specification: UO_ module name _ function name DataWindow object Name specification:
D_ module name _ function name drop DataWindow naming specification: DDDW_ module name _ function name form function naming specification: WF_ function name can inherit object function naming specification: UF_ function name window Custom event Naming specification: UE_ function Name Clearing Object Custom Event Naming Specification: UE_ Function Name 1.1.6 Visual Control Naming Specification Generally Follow PB Recommended Rules, Radiobutton RB_Funit Name StaticText ST_Funit Name Picture P_ Features Groupbox GB__Function Name LINE LN_Funit Name Oval Oval_Function Name RACTANGLE R_Funit Name Roundractangle RR_ Function Name SINGELINEEDIT SLE_ function name EditMask EM_ function name MultiLineEdit mle_ function name RichTextEdit rte_ function name HScrollBox hsb_ function name VScrollBox vsb_ function name DropDownListBox ddlb_ function name DropDownPictureListBox ddplb_ function name ListBox lb_ function name PictureListBox plb_ function name ListView lv_ function name TreeView tv_ function name Tab TB_ function name DataWindow dw_ function name GRAP H GR_ function name OLECONTROL OLE_ function name UserObject UO_ function name tabpage tabpage_ function name