spik3ee
Technical User
- Feb 5, 2009
- 1
Hi, first post =)
Basically i have two forms in my application,
and one form contains a record & a save procedure
type
TShares = record
Name : string[20];
Profession : string[20];
Location : string[50];
var
Records : array[1..50] of TShares;
procedure Save(RecordNo : integer);
begin
Records[RecordNo].name := Edt_name.Text;
Records[RecordNo].profession := Edt_Name.Text;
Records[RecordNo].location := Edt_Address.text;
end;
Now what i want to do is,
when i enter a name on my second form, i want to check whether the name exists in the array, and if so, display the data for that particular record.
im thinking
If Edt_Name.text = Frm1.Records[RecordNo].name then
however ofcourse RecordNo is underlined in red, even though i'ev put my save procedure under public declarations
any help?
Basically i have two forms in my application,
and one form contains a record & a save procedure
type
TShares = record
Name : string[20];
Profession : string[20];
Location : string[50];
var
Records : array[1..50] of TShares;
procedure Save(RecordNo : integer);
begin
Records[RecordNo].name := Edt_name.Text;
Records[RecordNo].profession := Edt_Name.Text;
Records[RecordNo].location := Edt_Address.text;
end;
Now what i want to do is,
when i enter a name on my second form, i want to check whether the name exists in the array, and if so, display the data for that particular record.
im thinking
If Edt_Name.text = Frm1.Records[RecordNo].name then
however ofcourse RecordNo is underlined in red, even though i'ev put my save procedure under public declarations
any help?