Project Home
Project Home
Trackers
Trackers
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Qnx IDE: Tip of the Day #5: Prompt for command line arguments: (4 Items)
   
Qnx IDE: Tip of the Day #5: Prompt for command line arguments  
The IDE will prompt you for command line arguments during each launch of the executable by using ${string_prompt} as the
 C/C++ Program Arguments in the program's Launch Configuration.
Re: Qnx IDE: Tip of the Day #5: Prompt for command line arguments  
Hi Elaina,

I can't seem to get this tip to work.  What I get instead is an error "Reference to undefined variable PeekAddress".  
This is for a command-line of just

${PeekAddress}

I've tried using double quotes, and question marks in various combinations, but nothing seems to work.  What am I 
missing?

--Andy
RE: Qnx IDE: Tip of the Day #5: Prompt for command line arguments  
If you're trying to get a launch to prompt for command-line arguments,
I've had success with:

${string_prompt}

In the "Arguments" field.

-David

-----Original Message-----
From: Andy Gryc [mailto:community-noreply@qnx.com] 
Sent: November 23, 2009 12:24 PM
To: tips-ide
Subject: Re: Qnx IDE: Tip of the Day #5: Prompt for command line
arguments

Hi Elaina,

I can't seem to get this tip to work.  What I get instead is an error
"Reference to undefined variable PeekAddress".  This is for a
command-line of just

${PeekAddress}

I've tried using double quotes, and question marks in various
combinations, but nothing seems to work.  What am I missing?

--Andy



_______________________________________________

Tip of the Day
http://community.qnx.com/sf/go/post42390
RE: Qnx IDE: Tip of the Day #5: Prompt for command line arguments  
Okay.  I get it now--it must be the exact literal "string_prompt" inside
the curly braces.  My assumption was that this was a string prompt that
was configurable so that you could actually provide the prompt text.

If I use the value ${string_prompt} exactly as written, it stops and
asks as it should.  Anything else grabs a variable of that name.  

--Andy