powerbuilder

External “Hello World” Function in SQL Anywhere with Powerbuilder-generated DLL

戏子无情 提交于 2019-12-06 10:57:04
I created a function in PowerBuilder.NET Hello World . The project compiled as Helloworld.dll , generated in C# from the PowerBuilder utility. Inside Helloworld, I made the non-visual n_cst_helloworld . Inside the non-visual, I made the object function of_hello() . These are the issues I encountered when trying to access Helloworld.n_cst_helloworld.of_hello() in an external function on SQL Anywhere. The external function uses CLR and is called in Interactive SQL right now. Here is the script I'm trying to launch in iSQL (through ASA): ALTER PROCEDURE "DBA"."ext_helloworld"() EXTERNAL NAME

How to import Excel file into DataWindow

你说的曾经没有我的故事 提交于 2019-12-05 15:53:01
I want to import the .xlsx file into PowerBuilder DataWindow, I know we can able to do it with CSV format, but the user wants to use the xlsx format, Please let me know if there are any options to import. DARKinVADER you can import xls like this (this is our import function). Of course you have to know where to put each columns value from the excel to the datawindow. I think you do not need such a sophisticated solution, but there are the main guidelines: int li_rtn, li_i string ls_range long ll_excel_rows, ll_max_rows, ll_max_columns long ll_i, ll_j string lsa_column_names[], ls_mod long lla

.NET interop in PowerBuilder

匆匆过客 提交于 2019-12-05 15:16:30
I'm looking for a way to do two-way communication between a PB object and a .NET (C#) object. In looking at Brad's .NET version of his GUI controls, I see how to give the .NET object a reference to the PB object. But in that example, it's cast as a PowerObject (basically). That C# code only calls TriggerEvent() on the PB object. I want to create a custom class in C# called foo1. I want to create a method on foo1 called bar1(). I want to create a custom class in PB called foo2. I want to create a method on foo2 called bar2(). I want to be able to create an instance of foo1 within foo2. I want

Spy++ for PowerBuilder applications

大兔子大兔子 提交于 2019-12-05 06:18:46
I'm trying to write a tool which lets me inspect the state of a PowerBuilder-based application. What I'm thinking of is something like Spy++ (or, even nicer, 'Snoop' as it exists for .NET applications) which lets me inspect the object tree (and properties of objects) of some PowerBuilder-based GUI. I did the same for ordinary (MFC-based) applications as well as .NET applications already, but unfortunately I never developed an application in PowerBuilder myself, so I'm generally thinking about two problems at this point: Is there some API (preferably in Java or C/C++) available which lets one

PowerBuilder -- 连接sqlite

情到浓时终转凉″ 提交于 2019-12-05 00:27:34
   1、注册表修改,将以下内容保存为.reg文件,然后双击执行,注:测试机器为win10 64位系统 Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\ODBC\ODBCINST.INI\SQLite3 ODBC Driver] "Driver"="C:\\pbworkspace\\erp\\sqlite3odbc.dll" "Setup"="C:\\pbworkspace\\erp\\sqlite3odbc.dll" 以上指定了动态库文件的位置,注意,如果动态库文件位置变化了,这里也要跟着变。 2、pb数据库连接配置 Provider选择:MSDASQL Extended Propereties填写内容:Driver=SQLite3 ODBC Driver;Database=C:\pbworkspace\erp\db\data.db;PassWord= 其中Database=C:\pbworkspace\erp\db\data.db指定了数据文件的位置。 3、需要下载动态库文件 来源: https://www.cnblogs.com/yarightok/p/11891263.html

Powerbuilder 12.5 database connection beginner tutorials

南笙酒味 提交于 2019-12-04 18:39:08
I am fairly new to powerbuilder 12.5 and i cant find much tutorials on database management on SQL 2008. I need to connect to it via code like in VB.NET vs2008 Dim con As New SqlConnection Con.connectionstring = "Data Source=servername;Initial Catalog=user;Integrated Security=True" I need to select, insert, update and delete data... Any help on code samples Datawindows Most database work with PB is done using datawindows. After you create a new datawindow, you set up your select statement in it. Then you add a datawindow control to your form and set the control to use the datawindow that you

Mercurial MSSCCAPI Provider?

半腔热情 提交于 2019-12-04 07:24:49
Does anyone know of an MSSCCAPI provider for Mercurial? I'd like to try out Kiln/Mercurial with PowerBuilder, but the PowerBuilder IDE only recognizes MSSCCAPI providers (which is not the same as MS SCC Package API) and the only one I can find is the original version of HgSccPackage . I've contacted the developer and he has stated that he will not switch back from the Package to the regular API so that option leaves me with no upgrade path. This question was asked in July of 2010 with only the response that I have already mentioned. I'm hoping there's been something new since then. Thanks! I

Check if a file is open from another process

醉酒当歌 提交于 2019-12-04 04:21:07
问题 How do I check if a file is already used by another process from Powerscript ? 回答1: The best way that I found is to call the WinAPI CreateFile to open a given file in exclusive mode. First, declare the following Local External Function (PB10) FUNCTION Long CreateFile(ref string lpszName, long fdwAccess, long fdwShareMode, long lpsa, & long fdwCreate, long fdwAttrsAndFlags, long hTemplateFile) LIBRARY "Kernel32.dll" & ALIAS FOR "CreateFileA;Ansi" FUNCTION boolean CloseHandle (long file_hand)

Is contributing internal tools to open source worth the effort? [closed]

∥☆過路亽.° 提交于 2019-12-03 08:29:28
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 4 years ago . I know this is a general question, but I'd like to hear other people's opinion about our case: I work in a small company. Our main development tool is PowerBuilder, which is a very limited IDE with a shrinking community. We've created some tools, which we use internally to

Expose C# class through COM Interop

匿名 (未验证) 提交于 2019-12-03 02:38:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have a C# class library and also have a powerbuilder application. I want to expose the c# class and use it in the powerbuilder application. I used the following blogs to expose the functions so it can be accessed by powerbuilder application https://whoisburiedhere.wordpress.com/2011/07/12/creating-a-com-object-from-scratch-with-c/ http://jumbloid.blogspot.com/2009/12/making-net-dll-com-visible.html So i exposed the COM and made it accessible in powerbuilder but i still have some fundamental questions to make sure if i follow the best