Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

concatenated string in Pascal

I'm currently using a writeln command to write to a text file.

Is there any way to use concatenated string using record in pascal?

This is my pascal code currently:

Procedure SaveTopScores (Var TopScores : TTopScores);
    Var
    Count : Integer;
    CurrentFile : Text;
    Begin
    Assign(CurrentFile, 'HiScores.txt');
    Rewrite(CurrentFile);
    For Count := 1 To MaxSize
      Do Writeln(CurrentFile, TopScores[Count].Name, ',', TopScores[Count].Score);
      Close(CurrentFile);
    End;

And this is writing to the file in VB, is there a way to do a concatenated string in pascal?

VB

like image 901
orange Avatar asked Mar 17 '26 10:03

orange


1 Answers

Try str1 + str2. I think it's an extension on the original Pascal, but it should be quite common.

like image 94
LaC Avatar answered Mar 22 '26 13:03

LaC



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!