'VB6,VBA' 카테고리의 다른 글
VBA 형식선언문자 (0) | 2014.06.24 |
---|---|
VB Character Type (0) | 2014.06.24 |
ByVal, ByRef, AddressOf (0) | 2014.06.24 |
VBA 형식선언문자 (0) | 2014.06.24 |
---|---|
VB Character Type (0) | 2014.06.24 |
ByVal, ByRef, AddressOf (0) | 2014.06.24 |
가급적 쓰지 말아야 할 형식선언문자이나 알고는 있어야 될듯
형식선언문자
형식선언문자 | Type |
% | Integer |
& | Long |
! | Single |
# | Double |
@ | Currency |
$ | String |
Boolean, Byte, Date, Object, Variant 는 형식선언문자가 없음
삼국지2 와 엑셀파일 (0) | 2015.10.19 |
---|---|
VB Character Type (0) | 2014.06.24 |
ByVal, ByRef, AddressOf (0) | 2014.06.24 |
이름 | Chr$() 함수 | vb 상수 |
백스페이스 |
Chr$(8) | vbBack |
Null | Chr$(0) | vbNullChar |
수평탭 | Chr$(9) | vbTab |
라인피드 | Chr$(10) | vbLf |
수직탭 | Chr$(11) | vbVerticalTab |
폼피드 | Chr$(12) | vbFormFeed |
캐리지리턴 | Chr$(13) | vbCr |
공백(SBCS) | Chr$(32) | Space(1) |
Dim s as String
s = vbNullChar
Debug.Print Len(s)
=> 1
삼국지2 와 엑셀파일 (0) | 2015.10.19 |
---|---|
VBA 형식선언문자 (0) | 2014.06.24 |
ByVal, ByRef, AddressOf (0) | 2014.06.24 |
Using ByVal asks VB to pass the value of the argument, whereas using ByRef asks VB to pass Address of (that is, a pointer to) the argument.
default 는 ByRef
AddressOf 는 function pointer 값을 추출
예) AddressOf EnumChildWndProc
삼국지2 와 엑셀파일 (0) | 2015.10.19 |
---|---|
VBA 형식선언문자 (0) | 2014.06.24 |
VB Character Type (0) | 2014.06.24 |