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 8 user(s) online. 0 member(s) and 8 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