Hi sir,
Can we use class and enum concept in vtl also. Please guide me how can i use these two concepts in vtl programming.
Thanks in advance.
Hi sir,
Can we use class and enum concept in vtl also. Please guide me how can i use these two concepts in vtl programming.
Thanks in advance.
To use the class concept you can create your class outside the VTL and release it as dll , then use a CreateObject method such as the following code
And the Best way to use the Enum is by using constants , look to the following sampleCode:dim obj set obj = createobject("dll.Yourclass")
Code:Const dt_Nothing = Something Const dt_Boolean = Something Const dt_Decimal = Something Const dt_Double = Something Const dt_Integer = Something Const dt_string = Something Const dt_Array = Something Const dt_NetJSON = Something
Hi sir,
I will try class concept. Thanks for your quick reply. But i have one issue. If we want to give dropdown options to user in a input box (when we take input from user at the time of attach the script) e.g symbol names in a dropdown. Then without enum how can we give it. Please guide me.
Thanks in advance.
Hi,
i want to use enum data type.
e.g.
Enum Symbols
usd = 1 'USD
eur = 2 'EUR
jpy = 3 'JPY
gbp = 4 'GBP
cad = 5 'CAD
chf = 6 'CHF
aud = 7 'AUD
nzd = 8 'NZD
End Enum
i want to add this datatype in vtl.
so that if i want to do options to user in input box.
e.g.
How can i do this. Can you please guide me.
Thanks in advance
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks