Home
Top.Mail.Ru Yandeks.Metrika
Forum: "Main";
Current archive: 2002.01.08;
Download: [xml.tar.bz2];

Down

Help with two questions! Find similar branches


Socol   (2001-12-15 10:45) [0]

Hello dear gopoda programmers!
Help write variables to a file and load them.
There are 3 Labels
And 3 Variables ABC
The task is to write variables to files and load them if necessary.
You need to assign labels to labels like this
Label1.caption: = A;
Label2.caption: = B;
Label3.caption: = C;
and then, when you click on a commandbuton, the variables are saved in peremen.sav.
And similarly loaded.
+++ How to download anemia image * .gif +++
I thank everyone who answered!



Anatoly Podgoretsky   (2001-12-15 11:43) [1]

Readln (f, a, b, c);
Writeln (f, a, b, c);



Song   (2001-12-15 22:22) [2]

Type Rec = Record
a, b, c: String;
End;
Var ff: File of Rec;
n: Rec;

.

Read (ff, n);

Label1.Caption: = na;
Label1.Caption: = nb;
Label1.Caption: = nc;

.

Write (ff, n);


It's simple !!!



Вадим   (2001-12-15 23:05) [3]

2Song

Type Rec = Record
a, b, c: String;
End;
Var ff: File of Rec;
n: Rec;

This will not work, you need to use ShortString;



Song   (2001-12-16 22:28) [4]

Yes, I just forgot, but I do this: a, b, c: String [100];
this will work



KilkennyCat   (2001-12-17 03:48) [5]

It will not work in any way :)
you forgot to open the file :))



Builder   (2001-12-17 03:53) [6]

Or maybe writeComponent? :)



Song   (2001-12-19 23:24) [7]

Well, it’s as clear as daylight that you need to open it, reset it for reading, and then close it - you just didn’t write any extra info, everyone knows that already! (look at the crux of the matter)



Pages: 1 whole branch

Forum: "Main";
Current archive: 2002.01.08;
Download: [xml.tar.bz2];

Top









Memory: 0.83 MB
Time: 0.078 c
4-22509
Karan
2001-11-08 12:50
2002.01.08
GetkeyboardState- What does?


6-22281
Verona
2001-10-04 12:22
2002.01.08
Sending messages to e-mail


1-22100
Avol
2001-12-15 18:29
2002.01.08
How in Delphi to make a table of records for the game?


1-22108
Michael
2001-12-19 19:10
2002.01.08
Long printing on matrix printer


1-22120
Leviathan
2001-12-19 22:26
2002.01.08
Libraries of icons





afrikaans albanian Arabic armenian azerbaijani basque belarusian bulgarian catalan Chinese (Simplified) Chinese (Traditional) croatian Czech danish Dutch English estonian filipino finnish French
galician georgian German greek haitian Creole hebrew Hindi hungarian icelandic indonesian Irish italian japanese Korean latvian lithuanian macedonian malay maltese norwegian
persian polish portuguese Romanian russian serbian slovak Slovenian Español swahili Swedish thai turkish Ukrainian urdu vietnamese welsh yiddish bengali bosnian
cebuano Esperanto gujarati hausa hmong igbo javanese kannada khmer lao latin maori marathi mongolian nepali punjabi somali tamil telugu yoruba
zulu
English French German Italian Portuguese Russian Spanish