[Tutorial] Variables and Strings - Showing your name.
ExoSoft Forums :: Programming :: Delphi
Page 1 of 1 • Share •
[Tutorial] Variables and Strings - Showing your name.
Yes people, I'm bored and want to write some code, so here is a Console Application that outputs the name Hein D.
program ShowMyName;
{$APPTYPE CONSOLE}
uses
SysUtils;
Var
First: String; // This is just a thing, It needs to be assigned to something.
Last: String;
EntireName: String;
Space: String;
begin
First := 'Hein'; // Now First is assigned to Hein, so now First = Hein, before it was nothing.
Space := ' ';
Last := ' D.';
EntireName := First + Space + Last; // EntireName was assigned to nothing but now it has to combine First (Hein), Space ( ) and Last (D.).
WriteLn(EntireName); // WriteLn; writes out this entire text.
// Output is Hein D.
ReadLn; // If you wouldn't put this line in the Console App would disappear in like 1 second.
End.
So this is just a small example of showing your name. ^^
I hope this is understandable for you people out there and I would like some reactions and what you guys made with Variables.
Hein D.
program ShowMyName;
{$APPTYPE CONSOLE}
uses
SysUtils;
Var
First: String; // This is just a thing, It needs to be assigned to something.
Last: String;
EntireName: String;
Space: String;
begin
First := 'Hein'; // Now First is assigned to Hein, so now First = Hein, before it was nothing.
Space := ' ';
Last := ' D.';
EntireName := First + Space + Last; // EntireName was assigned to nothing but now it has to combine First (Hein), Space ( ) and Last (D.).
WriteLn(EntireName); // WriteLn; writes out this entire text.
// Output is Hein D.
ReadLn; // If you wouldn't put this line in the Console App would disappear in like 1 second.
End.
So this is just a small example of showing your name. ^^
I hope this is understandable for you people out there and I would like some reactions and what you guys made with Variables.
Hein D.
_________________
ExoSoft Co-Founder
Windows Programmer, financial organizer and marketing organizer.

Hein D.- ExoSoft Member

- Posts: 41
Join date: 2008-06-29
Location: The Netherlands

Re: [Tutorial] Variables and Strings - Showing your name.
People please don't forget to always put ' ' between the words you want to insert and don't forget the ; else it will give problems.
The // are just comments so you can leave them out.
The // are just comments so you can leave them out.
_________________
ExoSoft Co-Founder
Windows Programmer, financial organizer and marketing organizer.

Hein D.- ExoSoft Member

- Posts: 41
Join date: 2008-06-29
Location: The Netherlands

Re: [Tutorial] Variables and Strings - Showing your name.
Hey nice tutorial (i guess.)
I guess this will give people an explanation for what's going on and what the code does.
Good job!
Maybe you could begin a new thread for those things to make things clear. The basic rules i mean.
I guess this will give people an explanation for what's going on and what the code does.
Good job!
Hein D. wrote:People please don't forget to always put ' ' between the words you want to insert and don't forget the ; else it will give problems.
The // are just comments so you can leave them out.
Maybe you could begin a new thread for those things to make things clear. The basic rules i mean.
_________________
A.K.A. Victor V.
ExoSoft Co-Founder
Modeler, Mac Programmer, Website Creator, Concept Art and much more crap

shadowspy- Admin

- Posts: 37
Join date: 2008-06-29
Location: Here ;)

Re: [Tutorial] Variables and Strings - Showing your name.
And uh, stickied 
And I took the liberty of changing the thread name to a more understandable one.

And I took the liberty of changing the thread name to a more understandable one.
_________________
A.K.A. Victor V.
ExoSoft Co-Founder
Modeler, Mac Programmer, Website Creator, Concept Art and much more crap

shadowspy- Admin

- Posts: 37
Join date: 2008-06-29
Location: Here ;)

Re: [Tutorial] Variables and Strings - Showing your name.
KILL HIM, DOUBLE POSTER!! and after this off-topic sentence I have to say, thank you for making it a sticky and thank you for your response .

Hein D.
Hein D.
_________________
ExoSoft Co-Founder
Windows Programmer, financial organizer and marketing organizer.

Hein D.- ExoSoft Member

- Posts: 41
Join date: 2008-06-29
Location: The Netherlands

Re: [Tutorial] Variables and Strings - Showing your name.
Double posting is not bad
As long as it's about another thing.
And no problem m8
And no problem m8
_________________
A.K.A. Victor V.
ExoSoft Co-Founder
Modeler, Mac Programmer, Website Creator, Concept Art and much more crap

shadowspy- Admin

- Posts: 37
Join date: 2008-06-29
Location: Here ;)

Re: [Tutorial] Variables and Strings - Showing your name.
Yeah but I want to break your posting record.
And ehm I think I'm going to do a tutorial about the basic operators etc. from Delphi too.
And ehm I think I'm going to do a tutorial about the basic operators etc. from Delphi too.
_________________
ExoSoft Co-Founder
Windows Programmer, financial organizer and marketing organizer.

Hein D.- ExoSoft Member

- Posts: 41
Join date: 2008-06-29
Location: The Netherlands

Re: [Tutorial] Variables and Strings - Showing your name.
Good, keep on posting. I guess i'll have to create a tutorial (for maya) too, otherwise I can't keep up 
_________________
A.K.A. Victor V.
ExoSoft Co-Founder
Modeler, Mac Programmer, Website Creator, Concept Art and much more crap

shadowspy- Admin

- Posts: 37
Join date: 2008-06-29
Location: Here ;)

Permissions of this forum:
You can reply to topics in this forum





