开发者

How to convert the enumerated value as a string value?

开发者 https://www.devze.com 2022-12-11 09:33 出处:网络
i am taking the property list of PBObjects/Controls. So i need to take the property. I got the property values throug variable definition.

i am taking the property list of PBObjects/Controls. So i need to take the property. I got the property values throug variable definition.

for ex

vd_def = cd_def.variablelist[li_i]

vd_def.name
vd_def.initialvalue // if this initial value is enumerated, then how can i get this v开发者_运维技巧alue 

please help me.

Thanks in advance.


i got the answer for my question

using typedefinition object from here i'm getting the datatypeof that enumerated type(it shows the property name). and passing the any value and datatypeof that property name to a function which is like

If IsNull(aws_windowstate) Then
    String ls_null
    SetNull(ls_null)
    Return ls_null
End If

Choose Case aws_windowstate
    Case Normal!
        Return "normal!"
    Case Maximized!
        Return "maximized!"
    Case Minimized!
        Return "minimized!"
    case else
        return "!"
End Choose
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号