Joined: 27 Nov 2004 Posts: 1232 Location: www.parsx.com
Posted: Fri Mar 04, 2005 9:00 am Post subject: استانداردی برای نام گذاری اشیا در vb ...
Prefix Control Type Description
ani Animation button
bed Pen Bedit
cbo Combobox and dropdown Listbox
chk Checkbox
clp Picture Clip
cmd Command Button
com Communications
ctr Control (Used within procs when the specific type is unknown)
db ODBC Database
dir Dir List Box
dlg Visual Basic Pro Common Dialog
drv Drive List Box
ds ODBC Dynaset
fil File List Box
frm Form
fra Frame
gau Gauge
gpb Group Push Button
grd Grid
hed Pen Hedit
hsb Horizontal Scroll Bar
img Image
ink Pen Ink
key Keyboard key status
lbl Label
lin Line
lst Listbox
mpm MAPI Message
mps MAPI Session
mci MCI
mnu Menu
opt Option Button
ole Ole Client
pic Picture
pnl 3d Panel
shp Shape
spn Spin Control
txt Text/Edit Box
tmr Timer
vsb Vertical Scroll Bar
البته لازم به ذکر نیست که بازم امیر کمکم کرد
این هم سایتی همچین بد نیست
اين نوع نام گذاري به نام گذاري مجارستاني معروف است : Hungarian Notation
اين نام گذاري براي متغيرها و هر آنچه كه قرار است در هر برنامه اي نام گذاري شود نه فقط منحصر به ويژوال بيسيك استفاده ميشود
اين روش توسط Charles Simonyi ابداع شد و اكثرا در محصولات مايكروسافت بيشتر استفاده ميشود . در اين روش متغيرهاي شما تنها از سه يا چهار حرف استفاده ميكنند . كه وظيفه مشخص كردن نوع متغير را دارند .
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum