Register | Login
Forum Index > Bugs and Fixes > assignment problem
Author Message
Pages: 1
Emil_halim
Ziron Beta Tester

avatar

(send private message)

Posts: 639
Topics: 104

Location:
Alex, Egypt
[493] assignment problem - posted: 2011-11-09 09:09:18

when compiling this
Code:
program WIN32CUI 'Helper test';


#include 'console.zir';

#include 'Helper.zir';

int32 len =0;
const name = '    Emil      ';

pointer str1 = Trim(@name,@len);
print('trim test = ', str1 , '\r\n');
print('len sfter trim = ', len , '\r\n');

pointer leftstr = Left(str1 ,3);
print('left test = ', leftstr , '\r\n');


wait_key(nil);
ExitProcess(0);


i got that error

12,21]: Expected procedure address or register or macro call or procedure/function call or - or number or hexadecimal or variable or local variable or local parameter or constant string or constant but found Trim in [test.zir]
Code:
pointer str1 = Trim(@name,@len);


BTW , when put containt of Helper.zir in the test program , i did get any error.

http://www.freewebs.com/ogremagic/index.htm
Emil_halim
Ziron Beta Tester

avatar

(send private message)

Posts: 639
Topics: 104

Location:
Alex, Egypt
[494] - posted: 2011-11-09 09:12:50

sorry , my mistake.

solved.



http://www.freewebs.com/ogremagic/index.htm
Pages: 1
create new reply


Quick reply:

Message:



Currently Active Users:
There are currently 1 user(s) online. 0 member(s) and 1 guest(s)
Most users ever online was 999, May 11, 2018, 10:01 am.


Statistics:
Threads: 224 | Posts: 1847 | Members: 50 | Active Members: 50
Welcome to our newest member, NobodyAtWork
const Copyright = '2011-2021 © OverHertz Ltd. All rights reserved.';
Web development by OverHertz Ltd