Emil_halim
member
Posts
639
Threads
104
Location
Alex, Egypt
Post #522
2011-11-09 19:31:31 UTC
ok here is with strfold , still have access violation
function event_Let() {
uses edi;
char buf[2048];
char line[2048];
char val[255];
Dword Len;
boolean ParesFlg = true;
len = Ziron_ExtractLine(@line, 2048);
// remove 'let' form line
strFold(@buf, 4);
if(ParesFlg)
{
Ziron_ShowMessage(@line); // show our entire line for debug purpose
Ziron_GetNextToken();
return true;
}
else
{
return false; // let Ziron handle the line
}
}
here is the test code
Let a = 100;
http://www.freewebs.com/ogremagic/index.htm
Colin
admin
Posts
928
Threads
49
Location
Bulgaria
Post #523
2011-11-09 19:32:10 UTC
ps i see your line is on @line, not @buf, that was just example :P
strFold(@line, 4);
Emil_halim
member
Posts
639
Threads
104
Location
Alex, Egypt
Post #524
2011-11-09 19:33:47 UTC
oh , sorry ,corrected it and still have access violation
http://www.freewebs.com/ogremagic/index.htm
Colin
admin
Posts
928
Threads
49
Location
Bulgaria
Post #525
2011-11-09 19:38:46 UTC
can you try without the boolean? i think there is a small problem with this, i will have a check now...
Emil_halim
member
Posts
639
Threads
104
Location
Alex, Egypt
Post #526
2011-11-09 19:40:46 UTC
yes , the problem is in boolean
http://www.freewebs.com/ogremagic/index.htm
Colin
admin
Posts
928
Threads
49
Location
Bulgaria
Post #527
2011-11-09 19:41:25 UTC
ok, i found it is not just boolean, it is the direct assignment has another bug, try this
boolean yourvarname;
yourvarname = true;
this should work for now :)
Emil_halim
member
Posts
639
Threads
104
Location
Alex, Egypt
Post #528
2011-11-09 19:43:34 UTC
yes you are wright , will ziorn will allow assignment with var declaration.
http://www.freewebs.com/ogremagic/index.htm
Colin
admin
Posts
928
Threads
49
Location
Bulgaria
Post #529
2011-11-09 19:49:16 UTC
sorry i don't understand, what do you mean?