View unanswered posts | View active topics It is currently Wed Apr 23, 2014 12:10 pm






Reply to topic  [ 3 posts ] 
setFriendlyName function problems 
Author Message
Rookie

Joined: Tue Aug 14, 2007 1:38 pm
Posts: 16
Post setFriendlyName function problems
I am running v. 3.50 and typed in the following code:

setFriendlyName("bob");

I get the following error: calling procedure 'setFriendlyName'. 'const' expressions does not fit. Parameter: 'string & sFriendlyName'. Expression: ' "bob" '. Type: 'string'

I ran the same code on version 3.05 and it ran. Any help would be appreciated!


Tue Nov 06, 2012 6:11 pm
Profile
Senior Roboticist
User avatar

Joined: Wed Sep 28, 2011 10:13 pm
Posts: 630
Location: If I told you, I'd have to kill you.
Post Re: setFriendlyName function problems
I don't know about 3.5, but it works fine in 3.54. Why aren't you running the latest version?

_________________
A.K.A. inxt-generation
Self-proclaimed genius, and future world dominator.
My Brickshelf Folder
"Don't they teach recreational mathematics anymore?" - The Tenth Doctor
Bow down to Nikola Tesla, King of the Geek Gods.


Tue Nov 06, 2012 9:00 pm
Profile WWW
Rookie

Joined: Tue Aug 14, 2007 1:38 pm
Posts: 16
Post Re: setFriendlyName function problems
Downloaded 3.54. Same issue unless I declare a string variable first:

string name ="bob";
setFriendlyname(name);

I didn't have to declare the variable with older versions, just type in "bob" into the function call.

I got it working but I don't get why? I'm not a programmer so any explanation for my understanding would be great.

Thanks


Fri Nov 09, 2012 2:19 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 3 posts ] 

Who is online

Users browsing this forum: No registered users and 2 guests


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.
Designed by ST Software for PTF.