升级到pb10的问题



pb9升级到pb10

1.数据类型问题
由于pb10的string,char类型改为unicode型,不管是汉字还是字符都占两个字节
意味者有些对字符串的操作将会出现逻辑错误,pb10相应的字符操作也做了调整
都是以一个汉字作为一个最小单位,如果想使用以前的方法(兼容)相应的字符
操作函数后要加 a 如trima lena lefta righta等.有些使用ascii码的api函数会出现问题.
可以将api的字符串参数改为数组形式
string ss="汉字dfklldsf"
char xx[]
int i
for i=0 to lena(ss)
    xx[i]=mida(ss,i+1,1)
next
把xx做为参数.
把xx做为参数传递试试.

2.sql server接口问题
ms sql server 专用接口改为oledb接口后有些sql语名将不再支持
sql语句中涉及到字符串长量时,要用单引号不要使用双引号(双引号是错误的)
sql 查询语句中和字符串变量比较时一定要将字段转换为unicode ,改为nvarchar
注意转换为nchar()时,如果长度没有达到最大长度,将自动加尾部空格.
这有可能导致like查询不到数据.所以应使用nvarchar,关于like的问题请看
like的使用问题.



 
运行效果 http://hi.csdn.net/attachment/201012/9/0_1291865794j998.gif ************************************************************************* PowerBuilder Foundation Class Library Version 9.0 R E L E A S E N O T E S Copyright ?1996-2003 Sybase, Inc. and its subsidiaries. All rights reserved. ************************************************************************* Last Updated: January 17, 2003 ************************************************************************* Please take a few minutes to review this file for fixes that were made in PowerBuilder 8.0.2 and 9.0. ************************************************************************* BUG FIXES IN PFC 9.0 ************************************************************************* CR300376 Object: pfc_n_cst_fileSrv, pfc_n_cst_fileSrvwin32 Method: OfGetDiskSpace Fix: Method returned a negative number when the calculated amount of free disk space exceeded 2 gigabytes. Added new method of_GetDiskSpaceEx that takes decimals as arguments instead of longs. of_GetDiskSpace will be obsolete in a future release. ************************************************************************* BUG FIXES IN PFC 8.0.2 ************************************************************************* PFC.PBR CR256529 Fix: The PFC.PBR file can be used to copy bitmaps and dynamically referenced DataWindow objects into the executable file for deployment. The following bitmap files that were removed from PFC have now been removed from the PFC.PBR file: details.bmp, helptop.bmp, largeico.bmp, listv.bmp, and smallico.bmp. ======================================================== PFC DataStore CR261992 Object: pfc_u_ds Method: pfc_print/pfc_printdlg Fix: Changed the return code test to check for 1 on success, otherwise there is an error or the user cancelled. Fix: Set the
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值