搞笑,pb8.0 竟然可以这么干

hwman 2002-04-15 03:36:01
int 计数器,和
for 计数器=1 to 100
和 += 计数器
next
messagebox("", string(和))

而且表名和字段名都可以用汉字来了
...全文
50 11 打赏 收藏 转发到动态 举报
写回复
用AI写文章
11 条回复
切换为时间正序
请发表友善的回复…
发表回复
  • 打赏
  • 举报
回复
可是,這應該不是個好現象呀,它把一個漢字的長度當成1,會很有問題的,本來一個漢字是兩個字節,但在ASA7.0以后,全部視為一個字節長,不知PB8.0是不是也這樣, 全亂套了.
kind_li 2002-04-15
  • 打赏
  • 举报
回复
用了几个月的PB8,现在才知道有这功能,太酷了
xjbs 2002-04-15
  • 打赏
  • 举报
回复
怎么你们才知道??
jiu_jiu 2002-04-15
  • 打赏
  • 举报
回复
果然,此言不虚
jiu_jiu 2002-04-15
  • 打赏
  • 举报
回复
呵,不会吧
zhanwei 2002-04-15
  • 打赏
  • 举报
回复
DBCS support
PowerBuilder 8 supports both ANSI and double-byte character sets (DBCS). Any applications that you build in or migrate to PowerBuilder 8 can run in a Windows DBCS environment. If you plan to deploy an application to both DBCS and ANSI environments, make sure the size of controls is large enough to accommodate all character sets that might be used.

Usage

In an ANSI environment, a character is equivalent to a byte. However, in a DBCS environment, byte and character are not equivalent梕ach character could be one or two bytes. For example, in the edit mask style xxxx, x always represents a character. The mask can hold four bytes in ANSI, and eight bytes in DBCS. You must allocate enough memory space to handle this difference. For example, you may need to change the width of a column of data type char from 40 to 80.
LenW function In DBCS environments, you should use the "wide" version of the Len function, Lenw, to obtain the number of characters in a string. The Len function obtains the number of bytes in the string.

PowerBuilder determines whether to call ANSI or multibyte versions of functions based on the current Windows environment. For example, in a DBCS Windows environment such as Chinese Windows, multibyte functions are called. Using multibyte functions adds to processing time. However, if you only require ASCII data processing, you can force ANSI operations in a DBCS Windows environment with the command-line option /ANSI.
zhanwei 2002-04-15
  • 打赏
  • 举报
回复
DBCS support
PowerBuilder 8 supports both ANSI and double-byte character sets (DBCS). Any applications that you build in or migrate to PowerBuilder 8 can run in a Windows DBCS environment. If you plan to deploy an application to both DBCS and ANSI environments, make sure the size of controls is large enough to accommodate all character sets that might be used.

Usage

In an ANSI environment, a character is equivalent to a byte. However, in a DBCS environment, byte and character are not equivalent梕ach character could be one or two bytes. For example, in the edit mask style xxxx, x always represents a character. The mask can hold four bytes in ANSI, and eight bytes in DBCS. You must allocate enough memory space to handle this difference. For example, you may need to change the width of a column of data type char from 40 to 80.
LenW function In DBCS environments, you should use the "wide" version of the Len function, Lenw, to obtain the number of characters in a string. The Len function obtains the number of bytes in the string.

PowerBuilder determines whether to call ANSI or multibyte versions of functions based on the current Windows environment. For example, in a DBCS Windows environment such as Chinese Windows, multibyte functions are called. Using multibyte functions adds to processing time. However, if you only require ASCII data processing, you can force ANSI operations in a DBCS Windows environment with the command-line option /ANSI.
fa791222 2002-04-15
  • 打赏
  • 举报
回复
哦有这等好事>下次我试试看.
xiaoxianhe 2002-04-15
  • 打赏
  • 举报
回复
????~~~~ :o
Eric2000 2002-04-15
  • 打赏
  • 举报
回复
不搞笑。好玩。
kaikaihe 2002-04-15
  • 打赏
  • 举报
回复
really??????

1,075

社区成员

发帖
与我相关
我的任务
社区描述
PowerBuilder 相关问题讨论
社区管理员
  • 基础类社区
  • WorldMobile
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧