dvd99
asked on
Varibles in Delphi
Hellofrom java i have started learning delphi.
In java i use varibles like this :
t = Text.getText();
so then i could do things like text.setText(t);
How do i do this in delphi?
In java i use varibles like this :
t = Text.getText();
so then i could do things like text.setText(t);
How do i do this in delphi?
What kind of class is "Text" ?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks guys you both helped heaps!!
I'm not sure what you want to do:
if you want to assign a value to a variable, then use:
number:=12345 (if number is an integer)
or
text:='hello' (if text is a string)
if you want to get the value of a variable, then you simple use something like this: showmessage('your text is:'+text);...that gives you a messagebox with the value of the text-variable.
hope this helps
rene