Advertisement

07.10.2008 at 06:48AM PDT, ID: 23553687
[x]
Attachment Details

passing a TStringlist between 2 forms ...

Asked by BdLm in Delphi Programming, Programming Languages, Pascal Programming Language

I'm working with 2 forms and I want to call from one form a function inside the other form,
why do I  get an  run time error,  I can't see the error, I can't see my error   .-(  Start Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
Form1:   here I get the run time error 
procedure TLibraryDefinitionsForm.AutoInsert(aRecord : TStringList);
var    i   :  Integer;
begin
 
      for i:= 0 to aRecord.Count-1 do
         begin
               LibViewStatusBar.SimpleText :=  aRecord[i];
         end;
 
 
end;
 
 
From2 :  here I create the data ....
 
procedure TLoadExcelLibForm.ImportDataSetButtonClick(Sender: TObject);
var   i,j       :  Integer;
      aRecord   :  TStringList;
begin
     //
     aRecord  :=TStringList.Create;
 
     ADOQuery.First;
 
     repeat
 
        //
        aRecord.Clear;
 
 
        //  loop  through all fields
        //
        for j:= 0 to  ADOFieldNamesListBox.Count-1 do
           if ADOFieldNamesListBox.Selected[j] then
               begin
                 //  show the field
                 MyStatusBar.SimpleText := ADOQuery.FieldByName(ADOFieldNamesListBox.Items[j]).asString;
 
                 aRecord.Add(MyStatusBar.SimpleText);
 
                 aRecord.Add('******');
                 aRecord.Add('xxxxxxx');
 
                 end;
         //  just for debugging, aRecord has the correct data inside ...
         //
        for i:= 0 to aRecord.Count-1 do
         begin
            MyStatusBar.SimpleText :=  aRecord[i];
 
         end;
 
         //  call the function inside the other module ->  
         // where is the bug ??????????
        LibraryDefinitionsForm.AutoInsert(aRecord);
 
        ADOQuery.Next;
 
     until ADOQuery.Eof;
 
     //
     aRecord.Free;
end;
 
end.
[+][-]07.10.2008 at 06:58AM PDT, ID: 21973439

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.10.2008 at 06:59AM PDT, ID: 21973453

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.10.2008 at 07:03AM PDT, ID: 21973495

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.10.2008 at 07:09AM PDT, ID: 21973549

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.10.2008 at 07:17AM PDT, ID: 21973637

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.10.2008 at 07:25AM PDT, ID: 21973697

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.10.2008 at 07:26AM PDT, ID: 21973710

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.10.2008 at 07:48AM PDT, ID: 21973945

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.10.2008 at 07:54AM PDT, ID: 21974006

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.10.2008 at 07:57AM PDT, ID: 21974043

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.10.2008 at 07:59AM PDT, ID: 21974069

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.10.2008 at 08:03AM PDT, ID: 21974109

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.10.2008 at 08:03AM PDT, ID: 21974117

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.10.2008 at 08:12AM PDT, ID: 21974200

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.10.2008 at 11:38AM PDT, ID: 21976237

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.10.2008 at 01:17PM PDT, ID: 21976981

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.10.2008 at 01:20PM PDT, ID: 21977007

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.10.2008 at 10:03PM PDT, ID: 21980084

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.10.2008 at 10:07PM PDT, ID: 21980092

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.11.2008 at 12:12AM PDT, ID: 21980469

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Delphi Programming, Programming Languages, Pascal Programming Language
Sign Up Now!
Solution Provided By: ziolko
Participating Experts: 4
Solution Grade: A
 
 
[+][-]07.11.2008 at 12:53AM PDT, ID: 21980641

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.11.2008 at 01:03AM PDT, ID: 21980677

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.11.2008 at 01:09AM PDT, ID: 21980696

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.11.2008 at 01:15AM PDT, ID: 21980723

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.11.2008 at 01:21AM PDT, ID: 21980746

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]07.11.2008 at 03:29AM PDT, ID: 21981149

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.11.2008 at 04:13AM PDT, ID: 21981315

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628