vb的数据类型

数据类型       类型名称       类型声明字符                   所占字节                      有效值
字节型         BYTE                                                     0-255                  10,157,220
整型           INTEGER               %                                2                      -32768--32768
长整型         LONG                    &                                4                      -2147483648--2147483648
单精度型       SINGLE                  !                                4                     -3.402823E38到3.402823E38
双精度型       DOUBLE                #                                8                       -1.79769313486232D308到1.79769313486232D308        
货币型         CURRENCY            @                                8                         -922337203685477.5808到922337203685477.5807        
日期型         DATE                                                        8                     100.1.1~9999.12.31
布尔型         BOOLEAN                                                 2                    TRUE或FALSE
对象型         OBJECT                                                    4                     任何对象的引用
变长字符串     STRING                  $                    字符串长度,1字节/字符
定长字符串     STRING*NUM         $                              NUM
可变类型       VARIANT                                                不定

有时不能确定长度时使用"变长字符串     STRING"







[本日志由 admin 于 2008-05-03 12:40 AM 编辑]
文章来自: 本站原创
引用通告地址: http://www.is21.cn/trackback.asp?tbID=291
Tags:
评论: 0 | 引用: 0 | 查看次数: 1528
发表评论
你没有权限发表留言!