mikroElektronika

Development Tools, Compilers, Books
It is currently 08 Sep 2010 16:10

All times are UTC + 1 hour




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: List of unresolved bugs
PostPosted: 04 Nov 2009 10:12 
Offline
mikroElektronika team
User avatar

Joined: 17 Aug 2009 16:51
Posts: 1063
Location: Belgrade
Bug ID: #0250001
Submitted by: aleksandar.nikolic

Severity: major (affects mikroPascal pro v2.5.0.0 and v3.2.0.0)
Status: assigned

Description:
Two literal strings cannot be passed as the parameters of a routine

Code:
program problem;

procedure Send_Vars(var Var1 : string[10]; var Var2 : string[10]);
begin
.....
end;

begin
  Send_Vars('Var1txt','Var2txt'); <- problem here
end.


Workaround:
Use string variable instead of string literal for at least one parameter:

program problem;

procedure Send_Vars(var Var1 : string[10]; var Var2 : string[10]);
begin
.....
end;

var
  Text:String[10];
begin
  Text := 'Var1txt';
  Send_Vars(Text,'Var2txt'); <- No problem here
end.

_________________
mikroElektronika Support team


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group