SRL Archive - Help and Support

help : "default" ?


n3ss3s

2007-05-17 08:37:59

What does this keyword "default" do?

And in java if I make a case I can put like for example if the user has typed 1 then type 1 and like that until it comes to the point that user has typed 5 and after that I can put default to make it type for example user didnt type anything 1-5

How do I do that in scar?

~alex~

2007-05-17 11:33:34

I think its used in case statements for if none of the options are chosen… Not sure though. (I'm just going by the little Java I know lol)

Spky

2007-05-17 12:08:36

No use in Scar. In delphi it's like:

property Bla: Boolean read FBla write FBla default True;

n3ss3s

2007-05-17 14:53:42

alex, thats exactly the thing what I mean.

So how do I do it in SCAR?

Janilabo

2007-05-17 16:31:01

He said there is no use for it in SCAR.. :p

n3ss3s

2007-05-18 03:25:42

god damit no use for the "default" but is there anything other way tho do it instead of typing if(not(blablabla))then for the length of the whole case?

JuKKa

2007-05-18 09:54:54

i used DEFAULT!


var lol,default: boolean;
begin
if lol = default then
writeln('gay');
end.

n3ss3s

2007-05-18 10:04:43

jukka ***** sä oot kujalla!