Autor Beitrag
Spurius
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 142

Win XP Home
D3 Prof, D7 Prof
BeitragVerfasst: Do 11.09.03 18:12 
Hallo,
ich will einer variablen den wert eines memo feldes zuweisen
ausblenden Quelltext
1:
variable := memo1.lines[0];					

aber es kommt die fehlermeldung, dass memo1 ein undefinierter bezeichner ist. wenn ich z.B. memo1.add.lines(irgendwas) eingebe dann ist memo1 nicht unbekannt. was mach ich da falsch?
MfG
Spurius
GSE
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 740

Win 2k, Win XP Pro
D5 Prof, D6 Ent, D2k5 PE
BeitragVerfasst: Do 11.09.03 18:17 
Hi,
versuch mal den Namen der ParentForm davor zu schrieben, sprich:
variable := Form1.memo1.lines[0](wobei form1 diejenige Form ist, auf der sich das Memo befindet).
Sollte das nicht helfen poste mal etwas Code drumherum, da man ohne Context recht wenig erkennen kann!

mfg
GSE

_________________
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs
and the universe trying to produce bigger and better idiots. So far, the universe is winning. (Richard Cook)