警告和部署错误
当我在 PB12 中工作时,我收到了一些警告,如“C0190:本地结构类型('os_datasource')的实例变量将在下一个版本中隐式私有”。请帮我解决这个问题。
我也遇到部署错误
---------- Deploy: Deploy of target console_ge_winform (2:22:32 PM)
--------- Deploying project p_console_ge_winform
Checking project settings...
Project is being deployed to output path: D:\PB\PB12_MTS\console_ge_winform_WinformOutput
Generating .NET assembly file ...
Some functions/events/properties are not supported.
Deploy failed.
---------- Finished Deploy of target console_ge_winform (2:23:25 PM)
when i am working in PB12 i am getting few warnings as"C0190: Instance variables of local structure type ('os_datasource') will be implicitly private in the next release". please help me to solve this.
I am also getting deployment error
---------- Deploy: Deploy of target console_ge_winform (2:22:32 PM)
--------- Deploying project p_console_ge_winform
Checking project settings...
Project is being deployed to output path: D:\PB\PB12_MTS\console_ge_winform_WinformOutput
Generating .NET assembly file ...
Some functions/events/properties are not supported.
Deploy failed.
---------- Finished Deploy of target console_ge_winform (2:23:25 PM)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
局部结构在 PB 的最后几个版本中已被弃用,如果没记错的话,从 PB8 开始,但肯定是从 PB10 开始。解决方案是将结构创建为全局结构,例如单击“新建”,选择“PB 对象”选项卡,单击“结构”。然后从对象内部删除结构声明并使用全局结构。
我不熟悉第二个错误,但如果 Winforms 不支持本地结构,我一点也不会感到惊讶。
我还应该提到,Sybase 建议在大多数情况下使用自动实例化的用户对象而不是结构。详细信息请参阅 PB 帮助。
Local structures have been deprecated for the last few releases of PB, since PB8 if memory serves, but for sure since PB10. The solution is to create the structure as a global, e.g. click New, select PB Object tab, click Structure. Then remove the structure declaration from inside the object and use the global structure.
I'm not familiar with the second error but I would not be at all surprised if Winforms can't support local structures.
I should also mention that Sybase recommends using auto-instantiated User Objects instead of structures for most cases. See the PB help for details.