首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > .NET > .NET >

'123456' 这样的字符串有点有关问题

2013-04-09 
�' 这样的字符串有点问题.调用 php 写的webservicefunctionGetBalance(const Unitid: Int

'123456' 这样的字符串有点问题.

调用 php 写的webservice 

 function  GetBalance(const Unitid: Integer; const Username: WideString; const Password: WideString): GetBalanceResponse; stdcall;


我这样调用 .

tempass := '123456';
getr1 := htpr2.GetBalance(100,'xiao',tempass);

当 tempass := 'aaaafdfsd'; 英文字符时一切正常, 当 tempass := '123456';

就不行了.

出现 econverterror with messgae ''' is not a valid integer value 
异常...~~

怎么回事呢. 照理说  '123456' 也应该是字符串啊.
[解决办法]
tempass定义是否为widestring;在参数中直接用'123456'试试。
[解决办法]
应该是tempass 定义的问题。

你的tempass 定义什么类型的?

热点排行