powerbuilder

Retrieve the value from the barcode scanner in the key event in power builder 12.5

六眼飞鱼酱① 提交于 2019-12-12 03:19:55
问题 I cannot interpret the value from the Barcode Scanner from Power Builder. I am seeing from Key event, the value of Key seems to be "KeyEscape!" and hence it closes the window. Is there any syntax which gets the value from the Barcode Scanner in the keyevent ? But when i use notepad, it is showing some value like "b000012300 " and the space represents KeyEscape! Is there a way to interpret this value in power builder ? Please help me. 回答1: The cancel property for a CommandButton ,

Load Excel File To Powerbuilder

五迷三道 提交于 2019-12-12 02:46:26
问题 I have this code for buttonclicked event to load excel and text file to powerbuilder and the excel data is not copied i.e ll_return_xls <= 0 and thus when i want to load it to db i will get error since it has no value or data in it...The problem here is i get the data from text file but not from the excel file...Any help will be appreciated long ll_return long ll_return_xls OLEObject excel IF rb_file.checked then IF dwo.Name = "b_browse_meters" THEN // Browse Button Clicked for Text ll_return

unreadable old storage data in SQL server using PB10.5

↘锁芯ラ 提交于 2019-12-11 19:37:14
问题 i have problem in storage Arabic data in SQL server database,data in database table shows the characters as strange symbols that has no meaning like ÓíÇÑÉ ÕÛíÑÉ but when i read this data using PB7 it seem good and readable ,when read it using PB10.5 it seem unreadable 回答1: Related to unicode / non unicode. Sql sever has that likely as NVarChar uniqode, and PB10.5 tries to interpret it as normal ascii,. Check with their documentation (years that I made powerbuilder) but I would say something

How to solve this Arabic language problem in Sybase PowerBuilder 6 and 7?

泄露秘密 提交于 2019-12-11 14:47:00
问题 How to view arabic characters correctly in Sybase PowerBuilder 6 or 7 as I use Arial(Arabic) or any arabic language in the properties of the table and the database but it shows the characters as strange symbols that has no meaning like ÓíÇÑÉ ÕÛíÑÉ ? 回答1: I'm no expert in dealing with Arabic language characters, so there may be a work around with ANSI code pages, but I'd expect your best solution is Unicode. There was a distinct version of PB6 supporting Unicode (i.e. a separate product), but

Powerbuilder 10 Windows 8 compatibility

China☆狼群 提交于 2019-12-11 07:45:09
问题 Does anyone know if Powerbuilder 10 is compatible with Windows 8 (Both the IDE and the runtime module)? It seems like 11.5 is officially supported, but I couldn't find any info on PB 10's compatibility on Windows 8. If it isn't, any tips on the migration process from 10->Further version? (Anything particular we have to watch out for?) 回答1: You should have no problem with running PB10 applications on Windows 8, appart perhaps not being not fully compliant with Win8 standards (concerning the

Checking the return code from an application executed

允我心安 提交于 2019-12-11 07:34:46
问题 I want to be able to check the return code from an application that is executed. I tried implement it by the PowerBuilder function Run, but its not return the code of application which executed. Thanks. 回答1: In fact, Run() launches the target synchronously, so by the time the next line of PowerScript runs, your Run() app may not be finished, let alone have a return code available. You need to make the Windows API calls with appropriate parameters yourself to achieve this, instead of relying

write and read from excel using powerbuilder

喜欢而已 提交于 2019-12-11 05:16:00
问题 Any sample to write and read from excel sheet (i need to write values in excel sheet file and read other values after excel execute some its functions) using Powerbuilder "OLE" 回答1: Here is a sample of accessing to an Excel file through OLE : int li_rtn string ls_range oleobject lole_excel, lole_workbook, lole_worksheet, lole_range lole_excel = create oleobject li_rtn = lole_excel.ConnectToNewObject("excel.application") if li_rtn <> 0 then MessageBox( "Error", 'Error running MS Excel api.')

How to disable a single row in a datawindow?

我的未来我决定 提交于 2019-12-11 05:06:59
问题 Can anybody help me that how can I protect individual column of an individual row, though my datawindow has more than one row. I am writing a code like this: dw_1.Modify("column_name.protect = '1'") However it is making all my rows disabled. 回答1: You need to have some sort of conditional statement for the particular row/column you wish to protect. One way is to have an additional field you set programatically like. dw_1.setitem(1,"protect_me","Y") Then in your other column you set an

Doing a database lookup in formatting expression

本小妞迷上赌 提交于 2019-12-11 04:56:50
问题 Where it says "blob_curr = 1" I need to do a check to see if the object id exists in another table. I have no idea how to do this. This is an application that was written several years ago and I am a co-op student who was asked to make some changes to it so I have very limited knowledge of this environment. This is Powerbuilder 9.0 if that helps. 回答1: You have two options here: 1) You can update your datawindow query to include an additional field that returns whether the item exists in the

Treeview - highlighting multiple items

£可爱£侵袭症+ 提交于 2019-12-11 04:15:41
问题 In Powerbuilder, Does anyone here know how am i going to highlights multiple items on a treeview? Selecteditem function is not doing that. Im looking for a behavior just what Selectedrow id doing. Thanks! 回答1: I've not tried this myself but there is an example on CodeXchange (look for Multi-select TreeView Control). I think the treeview style datawindow might be easier to do this with. If not, I found this on the newsgroup, don't know if it helps: The following script in the selectionchanged