Âü°í -
Çʵå, ÄÁÆ®·Ñ, °³Ã¼ À̸§ Áþ±â
Q > ƯÁ¤ÅؽºÆ® »óÀÚÀÇ ±âº»°ª
: =Format(Date(),"yymm")
½ÄÀÇ 'Date'ÇÔ¼ö°¡ Á¤ÀǵÇÁö ¾Ê¾Ò½À´Ï´Ù...¶ó´Â ¿¡·¯°¡ ÀÚ²Ù ¶å´Ï´Ù.
Àú ³à¼®¸¸ ±×·± °ÍÀÌ ¾Æ´Ï¶ó Date() ÇÔ¼ö¸¦ »ç¿ëÇÏ´Â ¸ðµç °æ¿ì¿¡ ±×·¸±º¿ä.
´öºÐ¿¡ ³¯Â¥ÇÔ¼ö¸¦ »ç¿ëÇÏÁö ¸øÇÏ°í ÀÖ½À´Ï´Ù.
¿ÀÇǽº¸¦ ´Ù½Ã ±ò¾Æµµ ¸¶Âù°¡Áö³×¿ä.
´Ù¸¥ ÄÄÇ»ÅÍ¿¡¼ ½ÇÇàÀ» ½ÃÄѵµ µ¿ÀÏÇÑ ¿¡·¯°¡ ¶å´Ï´Ù.
¾Æ¹«·¡µµ ¾îµò°¡ ÄÚµùÀ» À߸øÇÑ °Å °°Àºµ¥.....
¾î¶² °æ¿ì¿¡ ±×·± ¿¡·¯°¡ ¶ß³ª¿ä?
A > Date¸¦ »ç¿ëÇÏ´Â ¸ðµç °æ¿ì ±×¸®°í ´Ù¸¥ ÄÄÇ»ÅÍ¿¡µµ
±×·± ¿À·ù°¡ ¹ß»ýÇÑ´Ù°í Çؼ ¸ðµâÀ» »ìÆ캸¾Ò´õ´Ï ¸ðµâÀ̸§À» Date¶ó°í ÁöÀ¸¼Ì±º¿ä. ¾×¼¼½º ³»Àå ÇÔ¼öÀÏ Date()ÇÔ¼ö¿Í
»ç¿ëÀÚ°¡ ¸¸µç Date¸ðµâÀ̸§ÀÌ Ãæµ¹ÀÌ ÀÏ¾î³ °Ì´Ï´Ù. |
Çʵå, ÄÁÆ®·Ñ, °³Ã¼ À̸§ÀÇ Á¦ÇÑ»çÇ×
• 64ÀÚ±îÁö °¡´ÉÇÕ´Ï´Ù.
• ¹®ÀÚ, ¼ýÀÚ, °ø¹é, Ư¼ö ¹®ÀÚ(¸¶Ä§Ç¥(.), ´À³¦Ç¥(!), ¾Ç¼¾Æ® ±âÈ£(`), ´ë°ýÈ£([ ])´Â Á¦¿Ü)¸¦ Á¶ÇÕÇÏ¿© »ç¿ëÇÒ
¼ö ÀÖ½À´Ï´Ù.
• ù ±ÛÀÚ´Â °ø¹éÀ¸·Î ½ÃÀÛÇÒ ¼ö ¾ø½À´Ï´Ù.
• Á¦¾î ¹®ÀÚ(ASCII °ª 0ºÎÅÍ 31±îÁö)¸¦ Æ÷ÇÔÇÒ ¼ö ¾ø½À´Ï´Ù.
• Microsoft Access ÇÁ·ÎÁ§Æ®ÀÇ Å×À̺í, ºä, ÀúÀå ÇÁ·Î½ÃÀú À̸§¿¡´Â Å«µû¿ÈÇ¥¸¦ ³ÖÀ» ¼ö ¾ø½À´Ï´Ù.
À̸§¿¡ ÀÖ´Â °ø¹éÀº?
Çʵå, ÄÁÆ®·Ñ, °³Ã¼ À̸§¿¡ °ø¹éÀ» »ç¿ëÇÒ ¼ö ÀÖÁö¸¸,
À̸§¿¡ ÀÖ´Â °ø¹éÀº Microsoft Visual Basic for Applications¿¡¼ Ãæµ¹À» ÀÏÀ¸Å³ ¼ö Àֱ⠶§¹®¿¡
Microsoft Access ¼³¸í¼¿¡ ÀÖ´Â ´ëºÎºÐÀÇ ¿¹Á¦¿¡¼´Â Çʵå¿Í ÄÁÆ®·Ñ À̸§¿¡ °ø¹éÀ» »ç¿ëÇÏÁö ¾Ê½À´Ï´Ù.
À̸§ Áþ´Â ±ÔÄ¢
°³Ã¼³ª º¯¼ö, »ó¼ö, ÇÁ·Î½ÃÁ®(¼ºê, ÇÔ¼ö)ÀÇ À̸§Àº °¡´ÉÇÏ¸é ±× À̸§¸¸ º¸°íµµ Çü½Ä°ú ¹üÀ§¸¦ ¾Ë ¼ö ÀÖ°í ±¸ºÐµÇ°í ¹«½¼ ¿ªÇÒÀ»
Çϱâ À§ÇØ ¸¸µé¾ú´Â°¡¸¦ ¹Ù·Î ¾Ë¾Æ º¼ ¼ö ÀÖµµ·Ï ÀÌÇØÇϱ⠽±°í ¼³¸íÀûÀ¸·Î ÀÛ¼ºÇØ¾ß ÇÕ´Ï´Ù. ÇÑ°¡Áö ´õ Áß¿äÇÑ °ÍÀº ÀÏ°ü¼º ÀÖµµ·Ï
»ç¿ëÇϱ⠽¬¿ö¾ß ÇÕ´Ï´Ù. ¶ÇÇÑ ´ç¿¬ÇÑ À̾߱âÁö¸¸ ÀÌ·¸°Ô ±¸º°ÀÌ µÇÁö À̸§À» Áþ°Ô µÇ¸é À̸§µéÀÌ ¼·Î Áߺ¹µÇÁö ¾ÊÀ» °¡´É¼ºÀÌ ´õ Ä¿Áö°Ô
µË´Ï´Ù.
´ÙÀ½ URLÀ» ²À º¸½Ã°í ÀÍÈ÷½Ã±æ ¹Ù¶ø´Ï´Ù.
Âü°í] À̸§ ±ÔÄ¢À» »ç¿ëÇÏ´Â ÀåÁ¡
• Ç¥ÁØȸ¦ ÀÌ·ê ¼ö ÀÖ´Ù.
• ½Ç¼öÇÏÁö ¾Ê°í ÀÌÇØÇϱ⠽±°í ±×¸®°í È®½ÇÇÏ°Ô ±¸º°µÇ´Â Äڵ带 ÀÛ¼ºÇÒ ¼ö ÀÖ´Ù.
• ´Ù¸¥ ÄÄÇ»ÅÍ ¾ð¾î¿¡¼µµ ÀÏ°üµÇ°Ô »ç¿ëÇÒ ¼ö ÀÖ´Ù.
• À̸§À» È¿°úÀûÀ¸·Î »ç¿ëÇÒ ¼ö ÀÖÀ¸¸ç ¼ö°í¸¦ ´ú°Ô µÈ´Ù.
• Áß¿äÇÑ °ÍÀº ÀÌ·¯ÇÑ ¸ñÀûÀ» ´Þ¼ºÇÏ´Â °ÍÀÌ ¾î·Á¿î °ÍÀÌ ¾Æ´Ï¶ó ½±´Ù. |
Hungarian Rule
ÀÌ·¸°Ô Çϱâ À§Çؼ ÈçÈ÷ Hungarian RuleÀ»
»ç¿ëÇÕ´Ï´Ù.
[prefix][tag][base name][suffix] : [Á¢µÎ»ç][±¸º°ÀÚ][±âº»¸íĪ][Á¢¹Ì»ç]
prefix³ª tagÀº ´ë°³ 1~3±ÛÀÚ ±×¸®°í ¼Ò¹®ÀÚ¸¦ »ç¿ëÇÕ´Ï´Ù.
base name°ú surfix´Â 1~3Á¤·Î·Î ±¸¼ºµÇ°í ´Ü¾îÀÇ Ã¹ ±ÛÀÚ¸¦ ´ë¹®ÀÚ·Î ½ÃÀÛÇÏ¿© ±¸º°Çϱâ ÁÁ°Ô ÇÕ´Ï´Ù.(±¸º°À» À§ÇØ
UnderlineÀ» »ç¿ëÇϱ⵵ ÇÕ´Ï´Ù.)
¾×¼¼½º µµ¿ò¸»¿¡¼ Á¦°øµÇ´Â ¿¹Á¦¸¸ Âø½ÇÇÏ°Ô º¸½Ã¸é ÀÌ·¯ÇÑ ¸í¸í¹ýÀº ½±°Ô ÀÍÈú ¼ö ÀÖ½À´Ï´Ù. Ç¥ÁØÀûÀÎ ¹æ¹ýÀ» »ç¿ëÇÑ´Ù´Â °ÍÀº ¸Å¿ì
Áß¿äÇÑ °ÍÀÔ´Ï´Ù.
¸î °¡Áö ¿¹¸¦ µé¾îº¸°Ú½À´Ï´Ù.
txtCustomerID¶ó´Â ¸íĪÀ» º¸¸é ÀԷ¶õ(Text Box= txt)ÄÁÆ®·ÑÀε¥ CustomerID¸¦ °ªÀ¸·Î °¡Áö°í ÀÖ´Ù´Â
°ÍÀ» ¾Ë ¼ö ÀÖ½À´Ï´Ù.
¶Ç frmGetCustName ´Â Æû(Form=frm)Àε¥ ¹«¾ð°¡ ÀÔ·ÂÀ» ¹Þ´Â(Get) ¿ªÇÒÀ» Çϴµ¥ ±×°Ô ¹¹³Ä¸é ¹Ù·Î
°í°´À̸§(CustName)À̶ó´Â °ÍÀÔ´Ï´Ù.
mrstCustomers ¶ó´Â °ÍÀº °í°´Á¤º¸(Customers)¸¦ °¡Áö°í ÀÖ´Â ·¹ÄÚµå¼Â(rst)Àε¥ ÆûÀÇ ¸ðµâº¯¼ö(m)·Î
»ç¿ëÇÑ´Ù´Â ¶æÀ» °¡Áö°í ÀÖ½À´Ï´Ù.
À§ °æ¿ì¿¡¼ mÀº prefixÀÌ°í frm, txt, rst µîÀÌ tagÀÔ´Ï´Ù. Get, Customers, CustomerID
µîÀÌ base nameÀÌ°í CustNameÀÌ surfix¶ó°í ÇÒ ¼ö ÀÖ½À´Ï´Ù.
Suggested Prefixes for Variables
C/C++ data type |
Hungarian
prefix |
Description |
VBA equivalent |
BOOL |
b |
8-bit Boolean value. Zero indicates False; nonzero
indicates
True. |
Boolean or Long |
BYTE |
ch |
8-bit unsigned integer |
Byte |
HANDLE |
h |
32-bit unsigned integer that represents a handle to a Windows object |
Long |
int |
n |
16-bit signed integer |
Integer |
long |
l |
32-bit signed integer |
Long |
LP |
lp |
32-bit long pointer to a C/C++ structure, string, function, or other
data in memory |
Long |
LPZSTR |
lpsz |
32-bit long pointer to a C-type null-terminated string |
Long |
Suggested Prefixes for Controls
Control type |
prefix |
Example |
3D |
pnl |
pnlGroup |
ADO Data |
ado |
adoBiblio |
Animated button |
ani |
aniMailBox |
Check box |
chk |
chkReadOnly |
Combo box, drop-down list box |
cbo |
cboEnglish |
Command button |
cmd |
cmdExit |
Common dialog |
dlg |
dlgFileOpen |
Communications |
com |
comFax |
Control (Á¾·ù¸¦ ¸ð¸¦ ¶§) |
ctr |
ctrCurrent |
Data |
dat |
datBiblio |
Data-bound combo box |
dbcbo |
dbcboLanguage |
Data-bound grid |
dbgrd |
dbgrdQueryResult |
Data-bound list box |
dblst |
dblstJobType |
Data combo |
dbc |
dbcAuthor |
Data grid |
dgd |
dgdTitles |
Data list |
dbl |
dblPublisher |
Data repeater |
drp |
drpLocation |
Date picker |
dtp |
dtpPublished |
Directory list box |
dir |
dirSource |
Drive list box |
drv |
drvTarget |
File list box |
fil |
filSource |
Flat scroll bar |
fsb |
fsbMove |
Form |
frm |
frmEntry |
Frame |
fra |
fraLanguage |
Gauge |
gau |
gauStatus |
Graph |
gra |
graRevenue |
Grid |
grd
|
grdPrices |
Hierarchical flexgrid |
flex
|
flexOrders
|
Horizontal scroll bar |
hsb
|
hsbVolume
|
Image |
img |
imgIcon
|
Image combo |
imgcbo
|
imgcboProduct
|
ImageList |
ils
|
ilsAllIcons
|
Label |
lbl
|
lblHelpMessage
|
Lightweight check box |
lwchk
|
lwchkArchive |
Lightweight combo box |
lwcbo
|
lwcboGerman
|
Lightweight command button |
lwcmd
|
lwcmdRemove
|
Lightweight frame |
lwfra
|
lwfraSaveOptions
|
Lightweight horizontal scroll bar |
lwhsb
|
lwhsbVolume
|
Lightweight list box |
lwlst
|
lwlstCostCenters
|
Lightweight option button |
lwopt
|
lwoptIncomeLevel
|
Lightweight text box |
lwtxt
|
lwoptStreet
|
Lightweight vertical scroll bar |
lwvsb
|
lwvsbYear
|
Line |
lin
|
linVertical
|
List box |
lst
|
lstPolicyCodes
|
ListView |
lvw
|
lvwHeadings
|
MAPI message |
mpm
|
mpmSentMessage
|
MAPI session |
mps |
mpsSession
|
MCI |
mci
|
mciVideo
|
Menu |
mnu
|
mnuFileOpen
|
Month view |
mvw
|
mvwPeriod
|
MS Chart |
ch
|
chSalesbyRegion
|
MS Flex grid |
msg
|
msgClients
|
MS Tab |
mst
|
mstFirst
|
OLE container |
ole
|
oleWorksheet
|
Option button |
opt
|
optGender
|
Picture box |
pic
|
picVGA
|
Picture clip |
clp
|
clpToolbar
|
ProgressBar |
prg
|
prgLoadFile
|
Remote Data |
rd
|
rdTitles
|
RichTextBox |
rtf
|
rtfReport
|
Shape |
shp
|
shpCircle
|
Slider |
sld
|
sldScale
|
Spin |
spn
|
spnPages
|
StatusBar |
sta
|
staDateTime
|
SysInfo |
sys
|
sysMonitor
|
TabStrip |
tab
|
tabOptions
|
Text box |
txt
|
txtLastName
|
Timer |
tmr
|
tmrAlarm
|
Toolbar |
tlb
|
tlbActions
|
TreeView |
tre
|
treOrganization
|
UpDown |
upd
|
updDirection
|
Vertical scroll bar |
vsb |
vsbRate |
Suggested Prefixes for Data Access Objects (DAO)
Use the following prefixes to indicate Data Access Objects.
Database object |
Prefix |
Example |
Database object |
Prefix |
Example |
Container |
con |
conReports |
Parameter |
prm |
prmJobCode |
Database |
db |
dbAccounts |
QueryDef qry |
qry |
SalesByRegion |
DBEngine |
dbe |
dbeJet |
Recordset |
rec |
recForecast |
Document |
doc |
docSalesReport |
Relation |
rel |
Relation |
Field |
fld |
fldAddress |
TableDef |
tbd |
tbdCustomers |
Group |
grp |
grpFinance |
User |
usr |
usrNew |
Index |
ix |
idxAge |
Workspace |
wsp |
wspMine |
¡¡ |