Forum Discussion

elanto's avatar
elanto
Occasional Contributor
5 years ago
Solved

DelphiScript runtime error on: .GetColumn('name').Index

Hi SM-TestComplete Community, First of all, here are some general info: --- TC language: DelphiScript Testcomplete Version: 14.20.2175.7 x64 OS: MS WIN 10 Pro 64-bit The AUT (Desktop) is built...
  • elanto's avatar
    elanto
    5 years ago

    I attached the same picture, maybe it is now better to see.

    The error text is: "An Exception occurred: 0xC0000096; class: ; description: ".

    <So, a copy/paste of your code snippet would be helpful.>

    -- START SNIPPET

    procedure einenBeliebigenMandantenLoeschenAberNichtDenDemoDatenMandanten();
    var
    i, mandantenAnzahl, ColumnVerzeichnisIndex: Integer;
    lVerzeichnis: String;
    const
    MAX_ANZAHL_MANDANTEN = 15;
    begin
    lVerzeichnis := ProjectSuite.Variables.DemoDatenMandantenPfad;

    if NOT Aliases.Lohn.FMandantenanlage.Exists then
    begin
    Aliases.Lohn.FSMenu.MDIClient.Keys('~fm');
    end;
    Aliases.Lohn.FMandantenanlage.Maximize;
    Aliases.Lohn.FMandantenanlage.Panel1.NO_1.TS_Mandanten.GR_Mandant.Keys('^[Home]');
    mandantenAnzahl := Aliases.Lohn.FMandantenanlage.Panel1.NO_1.TS_Mandanten.GR_Mandant.RowCounter;
    ColumnVerzeichnisIndex := Aliases.Lohn.FMandantenanlage.Panel1.NO_1.TS_Mandanten.GR_Mandant.GetColumn('Pfad').Index + 1;

    -- END

    Thank you.

    E.A.