Aprenda de uma forma simples , objetiva e direta os ... - Macoratti.net
Aprenda de uma forma simples , objetiva e direta os ... - Macoratti.net
Aprenda de uma forma simples , objetiva e direta os ... - Macoratti.net
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Curso <strong>de</strong> Introdução a Plata<strong>forma</strong> .Net FrameWork SDK<br />
Figura 3.2.9 - veja as funções para <strong>os</strong> tip<strong>os</strong> <strong>de</strong> conversões explícitas.<br />
Função Converte em<br />
Asc<br />
Cbool Boolean<br />
Cbyte Byte<br />
CChar Char<br />
Cdate Date<br />
CDbl Double<br />
C<strong>de</strong>c Decimal<br />
Chr Char<br />
Cint Integer<br />
CLng Long<br />
Cobj Object<br />
Cshort Short<br />
CSng Single<br />
CStr String<br />
Retorna o numero correspon<strong>de</strong>nte a tabela<br />
ASCII<br />
Ctype Converte para o tipo especificado<br />
Str String<br />
Val Converte para o tipo numérico especificado.<br />
Exempl<strong>os</strong>:<br />
Dim MyInt As Integer<br />
MyInt = Asc("A") ' MyInt recebe 65.<br />
MyInt = Asc("a") ' MyInt recebe 97.<br />
MyInt = Asc("Apple") ' MyInt recebe 65.<br />
Dim A, B, C As Integer<br />
Dim Check As Boolean<br />
A = 5<br />
B = 5<br />
Check = CBool(A = B) ' Check recebe True.<br />
C = 0<br />
Check = CBool(C) ' Check recebe False.<br />
38