标题:求助,VB代码转VBNET
取消只看楼主
loyxqing
Rank: 1
等 级:新手上路
帖 子:14
专家分:0
注 册:2022-3-10
结帖率:100%
 问题点数:0 回复次数:1 
求助,VB代码转VBNET
最近在转VB代码到,有个功能函数涉及到ARRAY的套用,发现怎么都运行不下去,提示属性缺少,求助下坛友
软件功能函数描述:
ChangeProperty <propertyArgs>
Structured array. The properties vary depending on the object.
Due to the number of potential configurations, it is recommended that you generate this script using the UI's Automation tab.
我想将下面VB代码直接转到vbnet,原Array需要去掉,不知道应该怎么转。

VB代码示例
oDesign.ChangeProperty Array("NAME:AllTabs",  _
                             Array("NAME:LocalVariableTab",   _
                                        Array("NAME:PropServers", "LocalVariables"),  _
                                        Array("NAME:NewProps", Array("NAME:BOT", "PropType:=", "VariableProp", "UserDef:=", true, "Value:=", "235mm"))
                                   )
                            )
 PYTHON代码示例
oDesign.ChangeProperty(
    [
        "NAME:AllTabs",
        [
            "NAME:LocalVariableTab",
            [
                "NAME:PropServers",
                "LocalVariables"
            ],
            [
                "NAME:NewProps",
                [
                    "NAME:K1",
                    "PropType:="        , "VariableProp",
                    "UserDef:="        , True,
                    "Value:="        , "235mm"
                ]
            ]
        ]
    ])                           
 
搜索更多相关主题的帖子: NAME array The VB 代码 
2023-02-14 19:25
loyxqing
Rank: 1
等 级:新手上路
帖 子:14
专家分:0
注 册:2022-3-10
得分:0 
富商运行报错信息
2023-02-14 20:53



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-511285-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.093021 second(s), 9 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved