VB6 是否支持无符号数据类型? [英] Does VB6 support unsigned data types?

查看:33
本文介绍了VB6 是否支持无符号数据类型?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

为了和我的一位同事打赌,我​​想知道 VB6 是否原生支持任何无符号数据类型.

In order to settle a bet with one of my colleagues, I would like to find out if VB6 natively supports any unsigned data types.

我相信答案是否定的,但我似乎找不到任何官方文件证实这一点.一个指向 Microsoft 文档的简单链接是可以接受的答案;关于为什么不支持此类类型的历史理由将是一个额外的好处.

I believe the answer to be "no", but I can't seem to find any official documentation confirming that. A simple link to a Microsoft document would be an acceptable answer; an historical justification as to why such types are not supported would be an added bonus.

推荐答案

正如 Kris 所说,它们不受支持,除了 Byte 数据类型,它只能作为无符号可用,因为可以在此数据类型列表中看到:数据类型摘要

As Kris said, they're not supported, except for the Byte datatype, which is only available as unsigned, as can be seen in this list of datatypes: Data Type Summary

页面提到了 VBA,但也提到了 Visual Studio 6.0,支持的数据类型相同.

The page mentions VBA, but it also mentions Visual Studio 6.0, and the supported data types were the same.

我认为您不会找到官方文档说明他们为什么不添加无符号数据类型,因为这通常是错误的方法,因为这可能不是我们为什么不应该支持这一点"的情况以及是否值得付出额外的努力来添加它".

I don't think you'll find official documentation saying why they didn't add unsigned data types since that's usually the wrong way around in that it probably wasn't a case of "why shouldn't we support this" as much as "would it be worth the extra effort to add this".

编辑提及 MarkJ 指出的 Byte 数据类型的例外.

Edited to mention the exception of the Byte datatype as pointed out by MarkJ.

这篇关于VB6 是否支持无符号数据类型?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆