想法/解决方案如何编辑PBL(PowerBuilder的库)文件?想法、解决方案、编辑、文件

2023-09-06 16:37:11 作者:干净的像风

我想获得的数据窗口从PBL(PowerBuilder的库)文件中的内容并进行修改的地方。我们的想法是读取PBL文件,访问个人数据窗口修改源$ C ​​$ C。不知怎的,我已经成功地做​​到使用IronPython的PblReader .NET库中的第一部分。它可以让我读PBL文件,以及访问数据窗口源$ C ​​$ C。然而,它不支持修改。我想知道如果任何人有一个想法编辑PBL文件?

I want to get the content of DataWindow from PBL (PowerBuilder Library) file and edit it in place. The idea is to read the pbl file, and access individual DataWindows to modify source code. Somehow, I have managed to do the first part with PblReader .NET library using IronPython. It allows me to read PBL files, and access DataWindow source code. However it doesn't support modifications. I would like to know if anyone have an idea for editing PBL files?

推荐答案

一个PowerBuilder应用可以加载从PBL一个数据窗口(不必在库路径),修改和保存回了PBL 。我已经写了几个认为做到这一点的工具。 PowerBuilder的将允许您根据使用修改方法,它的对象模型修改数据窗口。我不知道为什么有人想重塑了这一切。我记得看到Python绑定PB的地方。你可以从PB DW的语法,呼叫到Python,然后将其重新保存在PB。但是,你必须做所有的分析在Python,而PB已经了解的数据仓库。最后,我很惊讶特里没插PBL偷窥。你可以使用PBL偷窥导出数据窗口,它们按摩,在Python你的心的内容。然后回到它们导入到PB。

A PowerBuilder application can load a DataWindow from a PBL (doesn't have to be in the library path), modify it, and save it back to the PBL. I've written a couple of tools that do that. PowerBuilder will allow you to modify the DataWindow according to its object model using the modify method. I don't know why anyone would want to reinvent all of this. I recall seeing Python bindings for PB somewhere. You could get the DW syntax from PB, call out to Python, then save it back in PB. But you'd have to do all the parsing in Python, whereas PB already understands the DW. Finally I'm surprised Terry didn't plug PBL Peeper. You could use PBL Peeper to export the DataWindows, massage them to your hearts's content in Python. then import them back into PB.