Jump to content
Sign in to follow this  

Programming noobie trying to translate .NET to AutoIt

Recommended Posts

Thanks ahead of time if you can help me, folks -- and I have to beg for your patience with this one. Here's the situation: a vendor's COM API documentation is from a .NET perspective, and I am just abysmally ignorant of that language and OO in general. And here's a question that's an example of of what I need to know:

If I were to try to do the following --

Public Function GetCustomData(ByVal strVar As String) As String
    'Get the controller
        Dim dc As PCProxyLib.DataController
        dc = GetDataController()
    'Get the ports table
        Dim tbl As PCProxyLib.DataTable
        tbl = dc.GetTable(PCProxyLib._Tables.dtFlags)
    'Save the flags
        GetCustomData = tbl.GetString(strVar)
    Catch ex As Exception
        GetCustomData = ""
    End Try
End Function 

-- in AutoIt, how would I go about it?

I understand that  Dim dc As PCProxyLib.DataController  is probably equivalent to  Local $dc = ObjCreate(PCProxyLib.DataController)  and so forth -- but the details are bogging me down enough that I just fail to make headway.

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...