SRL Archive - OSR Help

NewLine identifier


Bobzilla69

2010-09-21 07:53:25

Hey,

I am looking to use a string to store lots of debug information, but i want it to be able to type each on a newline.

example:
the coma represent the newline identifier

S:= Walked to tree , Cut tree , Walked to Bank , Banked

Walked to tree
Cut tree
Walked to Bank
Banked

how i want it all to be store is in a single string per RS character.

i know that /n or \n works in other languages but whats the equivalent to use in Simba?

HyperSecret

2010-09-21 08:09:22

Doesn't each writeln get its own line? so…


var S: String;

S := [Walked to tree , Cut tree , Walked to Bank , Banked];
for i := 0 to High(S) do
writeln(S[i]);

Unless I am missing something that you are asking?

Gu3st...

2010-09-21 08:10:40

#13#10 is "Enter" for Windows
#10 is "Enter" for Linux

Example: S:= 'Walked to tree'#13#10'Cut tree'#13#10'Walked to Bank'#13#10'Banked';

Bobzilla69

2010-09-21 08:16:22

From: Zyt3x
#13#10 is "Enter" for Windows
#10 is "Enter" for Linux

Example: S:= 'Walked to tree'#13#10'Cut tree'#13#10'Walked to Bank'#13#10'Banked';


awesome, thats just what i was looking for thanks