Results 1 to 1 of 1

Thread: ConnectionIDs type conversion error

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Aug 2015
    Location
    Australia
    Posts
    45

    Default ConnectionIDs type conversion error

    Update. issue resolved.

    Coming back to have a second look I see my issue, I have missed the [] on the tconnection declaration

    tConnection[] amyconnections

    Resolves the issue.

    Regards
    Danny




    Hello, all.

    Looking for a little guidance with ConnectionIds, I have run into a problem when calling this function a type conversion error is thrown,


    Name:  Snap 2017-09-23 at 21.34.05.png
Views: 115
Size:  9.2 KB



    The code contains

    Object oConnection is a cConnection
    Use LoginEncryption.pkg
    Use DatabaseLoginDialog.dg
    End_Object


    String aconnectionini
    Boolean ainuse
    tConnection amyconnections



    Get ConnectionIniFile of oconnection to aconnectionini
    Get pbUseConnectionIni of oconnection to ainuse
    Get ConnectionIDs of oconnection to amyconnections

    The two functions in green return the expected values, ConnectionIDs results in the error

    The DFconnID contains

    [connection1]
    id=ALCG
    driver=ODBC_DRV
    connection=DSN=ALCG-Dev3
    DFPWD=removedencrytedpassword==
    trusted_connection=yes


    The variables after failure are

    Name:  Snap 2017-09-23 at 21.41.50.png
Views: 142
Size:  13.6 KB



    The struct is empty due to the failure.

    Has anyone else seen this error condition with ConnectionIDs

    REgards
    Danny
    Last edited by Danny; 24-Sep-2017 at 08:22 AM.

Tags for this Thread

Posting Permissions

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