Autor Beitrag
Georg08
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 155
Erhaltene Danke: 6

Win XP
Delphi 7.0 Personal
BeitragVerfasst: Fr 08.05.09 20:13 
Hallo, ich habe folgendes problem:

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
var
i : Ineger;

i := 1;
editi.name;

Ich möchte die nummer des editfeldes einer variable entnehmen, aber das nimmt er nicht an gesauwenig:
ausblenden Delphi-Quelltext
1:
2:
edit+1+.name;
edit+''+i+''.name;


Danke für eure Hilfe


Moderiert von user profile iconNarses: Topic aus Delphi Language (Object-Pascal) / CLX verschoben am Fr 08.05.2009 um 20:18
Narses
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Administrator
Beiträge: 10184
Erhaltene Danke: 1259

W11x64
TP3 .. D7pro .. D10.2CE
BeitragVerfasst: Fr 08.05.09 20:18 
Moin!

Du suchst Suche in: Delphi-Forum, Delphi-Library FINDCOMPONENT. :idea: ;)

cu
Narses

_________________
There are 10 types of people - those who understand binary and those who don´t.
ffgorcky
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 573

WIN XP/2000 & 7Prof (Familie:Win95,Win98)

BeitragVerfasst: Fr 08.05.09 20:21 
Also ich meine, es müsste dann so laufen, wenn Du es nur ansprechen möchtest:
ausblenden Delphi-Quelltext
1:
gesuchtesEditFeld:=TEdit(Form1.FindControl('edit'+IntToStr(i)));					


Zuletzt bearbeitet von ffgorcky am Fr 08.05.09 20:23, insgesamt 1-mal bearbeitet
Narses
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Administrator
Beiträge: 10184
Erhaltene Danke: 1259

W11x64
TP3 .. D7pro .. D10.2CE
BeitragVerfasst: Fr 08.05.09 20:22 
Moin!

user profile iconffgorcky hat folgendes geschrieben Zum zitierten Posting springen:
Also ich meine, es müsste dann so laufen, wenn Du es nur ansprechen möchtest:
ausblenden Delphi-Quelltext
1:
gesuchtesEditFeld:=TEdit(Form1.FindControl(edit+IntToStr(i)));					
Das ist eine andere Funktion, s.o. ;)

cu
Narses

_________________
There are 10 types of people - those who understand binary and those who don´t.