PDA

View Full Version : کاراکترهای خاص در کد نویسی



hrj1981
دوشنبه 08 بهمن 1386, 22:20 عصر
دوستان برنامه نویس حتما از یک سری کاراکترها همانند ! در سورس هایشان استفاده می کنند می خواستم اگر از دوستان کاراکترهای دیگری را می شناسند با ذکر توضیح در این تایپیک اعلام کنند.

اوبالیت به بو
دوشنبه 08 بهمن 1386, 23:44 عصر
% : نوع متغیر عددی با نام Integer
& : نوع متغیر عددی با نام Long
! : نوع متغیر عددی با نام Single - در نام فیلد پایگاه داده نیز کاربرد داره
# :نوع متغیر عددی با نام Double
@ : نوع متغیر عددی با نام Currency
$ : نوع متغیر رشته با نام String
همینارو بلد بودم

مبین رنجبر
سه شنبه 09 بهمن 1386, 09:12 صبح
متوجه نمیشم یعنی چه کاراکترایی ؟

bobrus
سه شنبه 09 بهمن 1386, 10:25 صبح
شاید منظورت ایناهم بود
متدهای( SendKeys(Keys, Wait


KeyCode
BACKSPACE{BACKSPACE} or {BS}
BREAK{BREAK}
CAPS LOCK{CAPSLOCK}
CLEAR{CLEAR}
DELETE or DEL{DELETE} or {DEL}
DOWN ARROW{DOWN}
END{END}
ENTER~ (tilde)
ENTER (numeric keypad){ENTER}
ESC{ESCAPE} or {ESC}
F1 through F15{F1} through {F15}
HELP{HELP}
HOME{HOME}
INS{INSERT}
LEFT ARROW{LEFT}
NUM LOCK{NUMLOCK}
PAGE DOWN{PGDN}
PAGE UP{PGUP}
RETURN{RETURN}
RIGHT ARROW{RIGHT}
SCROLL LOCK{SCROLLLOCK}
TAB{TAB}
UP ARROW{UP}

SHIFT+ (plus sign)
CTRL^ (caret)
ALT% (percent sign)

اوبالیت به بو
سه شنبه 09 بهمن 1386, 12:48 عصر
"": جایی که رشته یا عبارتی در آن قرار می گیرد و متغیر مرجعی آن String هست.
' : برای خواناتر کردن برنامه ازش استفاده میشه و در هنگام اجرای برنامه کامپایل نمیشه.

hrj1981
سه شنبه 09 بهمن 1386, 14:16 عصر
دوستان از پستهایتان ممنونم
شاید من در عنوان تایپیک کمی عجله کردم
ببینید بعضی عبارات برنامه نویسی مانند عبارت vbNewLine در کتابهای آموزشی به ندرت دیده می شود و کارایی آنها نیز عنوان نمی شود و شاید از این قبیل عبارتها در برنامه نویسی زیاد باشد من این تایپیک را ایجاد کردم تا دوستان حرفه ای تر اگر اطلاعاتی در این گونه موارد دارند آنها را اعلام کنند تا من آماتور از آنها مطلع شوم.

bobrus
سه شنبه 09 بهمن 1386, 16:47 عصر
اینها شبیه همون vbnewline توضیحاتش هم واضحه



ConstantValueDescription
vbCrChr(13)Carriage return.
vbCrLfChr(13) & Chr(10)Carriage return–linefeed combination.
vbFormFeedChr(12)Form feed; not useful in Microsoft Windows.
vbLfChr(10)Line feed.
vbNewLineChr(13) & Chr(10) or Chr(10)Platform-specific newline character; whatever is appropriate for the platform.
vbNullCharChr(0)Character having the value 0.
vbNullStringString having value 0Not the same as a zero-length string (""); used for calling external procedures.
vbTabChr(9)Horizontal tab.
vbVerticalTabChr(11)Vertical tab; not useful in Microsoft Windows.

bobrus
سه شنبه 09 بهمن 1386, 16:49 عصر
اینم یک سری دیگه برای msgbox البته پیدا کردن اینها سادس



ConstantValueDescriptionvbOKOnly 0Display OK button only.vbOKCancel 1Display OK and Cancel buttons.vbAbortRetryIgnore 2Display Abort, Retry, and Ignore buttons.vbYesNoCancel 3Display Yes, No, and Cancel buttons.vbYesNo 4Display Yes and No buttons.vbRetryCancel 5Display Retry and Cancel buttons.vbCritical 16Display Critical Message icon.vbQuestion 32Display Warning Query icon.vbExclamation 48Display Warning Message icon.vbInformation 64Display Information Message icon.vbDefaultButton1 0First button is the default.vbDefaultButton2 256Second button is the default.vbDefaultButton3 512Third button is the default.vbDefaultButton4 768Fourth button is the default.vbApplicationModal 0Application modal. The user must respond to the message box before continuing work in the current application.vbSystemModal4096System modal. On Win16 systems, all applications are suspended until the user responds to the message box. On Win32 systems, this constant provides an application modal message box that always remains on top of any other programs you may have running.
The following constants are used with the MsgBox function to identify which button a user has selected. These constants are only available when your project has an explicit reference to the appropriate type library containing these constant definitions. For VBScript, you must explicitly declare these constants in your code. ConstantValueDescriptionvbOK1OK button was clicked.vbCancel2Cancel button was clicked.vbAbort3Abort button was clicked.vbRetry4Retry button was clicked.vbIgnore5Ignore button was clicked.vbYes6Yes button was clicked.vbNo7No button was clicked.

bobrus
شنبه 13 بهمن 1386, 13:50 عصر
دوست عزیز آقای hrj11981 از ادامه دادن این تاپیک منصرف شدی؟