Skip to content
Low-level programming · Higher-level thinking
Login Register
Forum / Bugs and Fixes

assignment problem

A community discussion post from the original code:zIRON forum.

Emil_halim member
Posts
639
Threads
104
Location
Alex, Egypt

assignment problem

when compiling this

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

Replies

Emil_halim member
Posts
639
Threads
104
Location
Alex, Egypt

sorry , my mistake.

solved.

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