SRL Archive - Suggestions

Function Copy?


Sir R. M8gic1an

2010-06-29 07:22:29


function Copy(s: string; times: integer): string;
var
i: integer;
begin
for i := 1 to times do
Result := Result + s;
end;

My apologies if it's already there in some form of shape, I just couldn't find it in the function list… ?

~RM

nielsie95

2010-06-29 07:24:37

It is there though ;)

Nava2

2010-06-29 10:16:02

Copy is in there, but I guess what you are thinking of is StringOfChar from SCAR. Which I don't think is in Simba.

nielsie95

2010-06-29 11:59:24

Think again :p

MylesMadness

2010-06-29 12:01:17

So this is like Replicate or StringofChar just with strings? cool I guess

Sir R. M8gic1an

2010-06-29 14:43:21

Replicate would be the right one.

~RM

Nava2

2010-06-30 03:09:37

/facepalm

Sir R. M8gic1an

2010-07-18 08:15:12

Well……………..

I don't see Replicate nor StringOfChar on the function list….

~RM

i luffs yeww

2010-07-18 08:35:40

http://i32.tinypic.com/2nrq7lt.png

http://i29.tinypic.com/wwjg91.png

Huh. Well he's right about them not being in the function list. That's caused due to some lines being "open," right? Not having a semicolon or something? I remember someone saying something about something like that. (That last sentence was quite vague. :p)

Sir R. M8gic1an

2010-07-18 08:41:29

Thanks ian. I still don't see it on the function list tho.

~RM

Wizzup?

2010-07-18 09:35:46

From: Rasta Magician
Thanks ian. I still don't see it on the function list tho.

~RM


Yeah, that is because some of those functions are added by PascalScript rather than MML/Simba. It is not as easy to list those as well. Well, probably not too hard but requires a lot of tweaking.