Login
Try VertexFX
  • Home
  • Knowledgebase
  • Blog
  • Home
  • Knowledgebase
  • Blog

Import

home/Knowledge Base/Technical Support/API/Client API's/VTL/VTL Client Scripts/Import/Importing DLL

Importing DLL

12 views 0 Updated on December 21, 2021 hybrid-solutions

Importing DLL

VTL Script allows users to import Dlls(COM DLL) by using CreateObject Function.

Sample

 Public Sub main()    Dim Connection    Dim Recordset    Dim SQL    'declare the SQL statement that will query the database    SQL = "SELECT * FROM Test"    'create an instance of the ADO connection and recordset objects    Set Connection = CreateObject("ADODB.Connection")    Set Recordset = CreateObject("ADODB.Recordset")    'open the connection to the database     Connection.Open "DSN=Examples_dsn"    'Open the recordset object executing the SQL statement and return records     Recordset.Open SQL,Connection    'first of all determine whether there are any records     Dim vEOF     vEof = Recordset.EOF    If vEof Then     AlertMessage "No records returned."    Else     'if there are records then loop through the fields         Do While NOT vEof             AlertMessage Recordset("row")            AlertMessage Recordset("row2")            Recordset.MoveNext()         Loop    End If    'close the connection and recordset objects freeing up resources    Recordset.Close    Set Recordset=nothing    Connection.Close    Set Connection=nothing End Sub

When attaching the script the below window will appear to alert users about all DLLs that are used inside the script, to run the script you should allow DLL imports else the script will not run.

Import DLL


Back to VTL Client Script Index

Was this helpful?

Yes  No
Leave A Comment Cancel reply

About
VertexFX Trader has a closed-loop trading structure with Backoffice dealing desk, Client Terminals, Dedicated Hosting, White Labelling and Bridging Capabilities. Through VertexFX Risk Management Bridge...
Categories
  • Release Notes
  • Technical Support
  • VertexFX Pro Setup
  • Mobile Trader
  • Lite VertexFX Mobile Trader
Community
  • Blog
  • Media Center
Need Support?
If you need any further help, don't hesitate to send a support request to our support team.
Contact Support
  • Privacy Policy
  • Brokers Terms
  • Traders EULA
  • ISV Terms
  • Plugins EULA
  • Copyright 2023 hybridsolutions.com. All Rights Reserved.