Results 1 to 2 of 2
  1. #1
    Senior Member
    Join Date
    Nov 2015
    Posts
    126

    Default Need help in vtl

    Hi sir,
    Can we create user defined class in vtl programming. Or is structure concept is present in vtl programming like mql4.

    Thanks in advance.
    BGT

  2. #2
    Administrator Rawan-HS's Avatar
    Join Date
    Apr 2015
    Posts
    411

    Post

    Dear BGT

    You can do it that but as a following
    1- create the class you need outside the VTL then generate it as DLL .
    2- call your DLL inside the VTL such as :

    A - If your Dll is registered

    Code:
       Set myObject = CreateObject("MyReallyCoolObject.HelloWorld")    myObject.Print

    B - If your object is not registered use GetObject with a path to the file containing your object

    Code:
                Set myObject = GetObject("C:\some\path\helloworld.dll", "appname.HelloWorld")
                myObject.Print

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •