Register | Login
Forum Index > Requests and Feedback > ZirToken
Author Message
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
Emil_halim
Ziron Beta Tester

avatar

(send private message)

Posts: 639
Topics: 104

Location:
Alex, Egypt
[522] - posted: 2011-11-09 19:31:31
ok here is with strfold , still have access violation
Code:
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
Code:
Let a = 100;


http://www.freewebs.com/ogremagic/index.htm
Admin
Site Admin

avatar

(send private message)

Posts: 933
Topics: 55

Location:
OverHertz Studio
[523] - posted: 2011-11-09 19:32:10
ps i see your line is on @line, not @buf, that was just example :P

Code:
strFold(@line, 4);


Download Ziron
Get free hosting for Ziron related fan-sites and Ziron projects, contact me in private message.
Emil_halim
Ziron Beta Tester

avatar

(send private message)

Posts: 639
Topics: 104

Location:
Alex, Egypt
[524] - posted: 2011-11-09 19:33:47

oh , sorry ,corrected it and still have access violation

http://www.freewebs.com/ogremagic/index.htm
Admin
Site Admin

avatar

(send private message)

Posts: 933
Topics: 55

Location:
OverHertz Studio
[525] - posted: 2011-11-09 19:38:46
can you try without the boolean? i think there is a small problem with this, i will have a check now...

Download Ziron
Get free hosting for Ziron related fan-sites and Ziron projects, contact me in private message.
Emil_halim
Ziron Beta Tester

avatar

(send private message)

Posts: 639
Topics: 104

Location:
Alex, Egypt
[526] - posted: 2011-11-09 19:40:46

yes , the problem is in boolean

http://www.freewebs.com/ogremagic/index.htm
Admin
Site Admin

avatar

(send private message)

Posts: 933
Topics: 55

Location:
OverHertz Studio
[527] - posted: 2011-11-09 19:41:25
ok, i found it is not just boolean, it is the direct assignment has another bug, try this

Code:
boolean yourvarname;
yourvarname = true;


this should work for now smile

Download Ziron
Get free hosting for Ziron related fan-sites and Ziron projects, contact me in private message.
Emil_halim
Ziron Beta Tester

avatar

(send private message)

Posts: 639
Topics: 104

Location:
Alex, Egypt
[528] - posted: 2011-11-09 19:43:34

yes you are wright , will ziorn will allow assignment with var declaration.

http://www.freewebs.com/ogremagic/index.htm
Admin
Site Admin

avatar

(send private message)

Posts: 933
Topics: 55

Location:
OverHertz Studio
[529] - posted: 2011-11-09 19:49:16
sorry i don't understand, what do you mean?

Download Ziron
Get free hosting for Ziron related fan-sites and Ziron projects, contact me in private message.
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
create new reply


Quick reply:

Message:



Currently Active Users:
There are currently 20 user(s) online. 0 member(s) and 20 guest(s)
Most users ever online was 1046, January 28, 2022, 2:08 pm.


Statistics:
Threads: 225 | Posts: 1848 | Members: 51 | Active Members: 51
Welcome to our newest member, yecate
const Copyright = '2011-2024 © OverHertz Ltd. All rights reserved.';
Web development by OverHertz Ltd