SRL Archive - OSR Help

Assigning a string that contains '


riwu

2012-09-02 08:18:19

This problem is rather tricky:
MyString:='ab';
But let's say you want a ' between ab:
MyString:='a'b';
It's not going to work since ' interferes with the assignment.

A possible but extremely stupid solution would be to do
ThatAnnoyingSymbol:=GetPage(an url that contains ');
MyString:='a'+ThatAnnoyingSymbol+'b';

Is there any easier method to get around it or must i simply avoid having ' in string? (i'm using it in a Between function btw)

Solar

2012-09-02 08:35:25

I think if you want to say "I'm" you can use
Writeln('I''m');
where you use two '' between the I and m.

riwu

2012-09-02 08:55:01

From: Solar
I think if you want to say "I'm" you can use
Writeln('I''m');
where you use two '' between the I and m.

Wow never knew it works like this. Thanks!

Chris

2012-09-02 09:27:25

If you want to have one of these in a string:

Then you can use:
  writeln('That looks like a C: '#128', but idk the official name.');

litoris

2012-09-02 09:36:50

From: Chris
If you want to have one of these in a string:

Then you can use:
  writeln('That looks like a C: '#128', but idk the official name.');


Nice! I never knew that was possible.
By the way, that letter(รง) is a letter in my language's alphabet, and it's use to make the "ch" sound, like when you say "charity" or "charm". :D