0
我有長,LONGLONG,整數,DEC,並在PowerBuilder 12.5經典十進制數據類型的問題...
我沒有這樣的事情,並給我的數據類型問題;PowerBuilder的問題長期,LONGLONG,整數,DEC和十進制數據類型
// set variables for item price and the cash given by the customer
double price, cash
price=double(trim(sle_price.text))
cash=double(trim(sle_cash.text))
if cash="" then
messagebox("","CASH")
sle_cash.setfocus()
return
end if
if fare="" then
messagebox("","SET FARE")
sle_amount.setfocus()
return
end if
double balance
balance=cash -price
messagebox("",balance)
INSERT INTO cash_table
(items.price
VALUES (:price);
您遇到什麼問題? – Terry 2012-07-20 17:50:48
你爲什麼試圖將'double'與'string'進行比較? – Maximus 2012-07-20 23:32:00
它給出了:錯誤c0011表達式中的不兼容類型:double,string – Wepex 2012-07-21 08:02:01