Could someone explain why this won't work, and what would need to be done to fix it?
SCAR Code:program New;
var
thething: tpoint;
begin
with thething do
begin
x := 52;
y := 91;
end;
end.
Code:Line 7: [Error] (7:6): Internal error (20) in script
Could someone explain why this won't work, and what would need to be done to fix it?
SCAR Code:program New;
var
thething: tpoint;
begin
with thething do
begin
x := 52;
y := 91;
end;
end.
Code:Line 7: [Error] (7:6): Internal error (20) in script
Interested in C# and Electrical Engineering? This might interest you.
You need a begin after the with..do
Meh, Whats with..do?
Someone care to explain?
The jealous temper of mankind, ever more disposed to censure than
to praise the work of others, has constantly made the pursuit of new
methods and systems no less perilous than the search after unknown
lands and seas.
With can only be used for supported classes.
It should work with all structured types :s
It like sets the variables or something? I'm lost...
Does it like set the variables for a type (You know... Like TUser), without all of the "TypeName.stuff" stuff?
Spky, you seem to know what they are...
The jealous temper of mankind, ever more disposed to censure than
to praise the work of others, has constantly made the pursuit of new
methods and systems no less perilous than the search after unknown
lands and seas.
with do usually helps with types in which you have to write out long things. they help because you could do this with formsso basically it lets you not have to put the . in between every variable you just have to do that.SCAR Code:with label1 do
begin
caption:='hi'
height:=29;
end;
Ahh. Ok.
Thats what I was pretty sure it did.
The jealous temper of mankind, ever more disposed to censure than
to praise the work of others, has constantly made the pursuit of new
methods and systems no less perilous than the search after unknown
lands and seas.
Soooooo... Arrays made easy?Would that work?SCAR Code:Var i:Array 0..5 of Integer;
Begin
With i do
Begin
[0]:=7633
[1]:=57453
[2]:=346
[3]:=2346
[4]:=58576
[5]:=2435434756
End;
End.
--------------------------------------------------------- ![]()
Pm me if you need any math functions made. Me = l0ving t3h mathz
--------------------------------------------------------- ![]()
Helpz! I made something like this
SCAR Code:With MainDTMPoint do
begin;
x:= 12;
y:= 14;
//Area and stuff
end;
With DTMSubPoint[0] do
begin;
x:= 34;
y:= 45;
//etc.
end;
and it doesnt work... It says looking for assignment.
Sorry for the highjack.
And, I don't know if it works... Try to compile it.
The jealous temper of mankind, ever more disposed to censure than
to praise the work of others, has constantly made the pursuit of new
methods and systems no less perilous than the search after unknown
lands and seas.
Only Class Types. (In SCAR)
but TPoint is a recorded type..
Co Founder of https://www.tagcandy.com
Which means...With-do will only work with certain types built into SCAR?
Interested in C# and Electrical Engineering? This might interest you.
I'm pretty sure I said "With can only be used for supported classes." about 9 posts ago...
Haha.
All this talk of supported/class or whatever crap you developers or to-be-developers are talking about is a bit brain freezing...
[CENTER][img]http://signatures.mylivesignature.com/54486/113/4539C8FAAF3EAB109A3CC1811EF0941B.png[/img][/CENTER]
[CENTER][BANANA]TSN ~ Vacation! ~ says :I Love Santy[/BANANA][/CENTER]
[CENTER][BANANA]Raymond - Oh rilie? says :Your smart[/BANANA][/CENTER]
but if you would import it via a plugin, would it then work?
Infractions, reputation, reflection, the dark side of scripting, they are.
Then where are Tpoints i thought they were built into scar.
No, please, you don't know what your talking about.
With only works for class, it doesn't have to do with anything else.
Gah. somthing class would look like this
SCAR Code:type
TSomthing = class
class function GetVersion : string;
end;
class function TSomthing.GetVersion: string;
begin
result := 'V 1.3';
end;
and recorded types are
SCAR Code:type = record
x, y : Integer;
end;
Co Founder of https://www.tagcandy.com
Whatever dude.
Icefire, no offence, but that was a bit arrogant don't you think?
[CENTER][img]http://signatures.mylivesignature.com/54486/113/4539C8FAAF3EAB109A3CC1811EF0941B.png[/img][/CENTER]
[CENTER][BANANA]TSN ~ Vacation! ~ says :I Love Santy[/BANANA][/CENTER]
[CENTER][BANANA]Raymond - Oh rilie? says :Your smart[/BANANA][/CENTER]
Nah, he's just annoyed 'cause we're too stupid to listen
Sky and Ice, thanks.
Interested in C# and Electrical Engineering? This might interest you.
There are currently 1 users browsing this thread. (0 members and 1 guests)