VBScript CStr 함수
❮ 완전한 VBScript 참조
CStr 함수는 표현식을 String 유형으로 변환합니다.
통사론
Parameter |
Description |
expression |
Required. Any valid expression If expression is:
- Boolean - then the CStr function will return a string containing true
or false.
- Date - then the CStr function will return a string that contains a
date in the short-date format.
- Null - then a run-time error will occur.
- Empty - then the CStr function will return an empty string ("").
- Error - then the CStr function will return a string that contains the
word "Error" followed by an error number.
- Other numeric - then the CStr function will return a string that
contains the number.
|
예시
예시
<%
response.write(CStr("300000") & "<br />")
response.write(CStr(#10-05-25#) & "<br />")
%>
위 코드의 출력은 다음과 같습니다.
300000
10/5/2025
❮ 완전한 VBScript 참조