[Date Prev][Date Next][Thread Prev][Thread Next]
[Author Index] [Date Index] [Thread Index]
[SQR-USERS Info] [SQRUG Home Page]

RE: [sqr-users] sqr command line parameters not being accepted



Change your ASK to INPUT, and move it to the main part of the program (not the 
setup section)
Unless you really need a substitution variable.
Steve.
 

-----Original Message-----
From: sqr-users-bounces+steve.cavill=infoclarity.com.au@sqrug.org
[mailto:sqr-users-bounces+steve.cavill=infoclarity.com.au@sqrug.org] On Behalf 
Of Amol Gokhale
Sent: Wednesday, 20 July 2005 4:56 PM
To: sqr-users@sqrug.org
Subject: [sqr-users] sqr command line parameters not being accepted


Hi,

I am trying to accept parameters in an SQR file from the command line and 
unfortunately the parameters are not being accepted.

I have given a print command on the parameter and it is not being printed..
I've posted my program below. I dont know whats wrong.

begin-setup
Declare-Variable
!    default-numeric = Decimal(12)
    Text $num
End-Declare
    ask $num        !random number

end-setup
begin-program
    print $num (1) center
    do accept_params

end-program
!-----------------------------------------------------------------------!
! Function:
! Description:    This procedure
!-----------------------------------------------------------------------!
begin-procedure accept_params
    #debug show '===>'
    #debug show $num
    print $num (1) center
end-procedure



Amol Gokhale
Consultant
MindCraft Software Pvt. Ltd.
'Building excellence, delivering value..'
www.mcsil.com
Tel :+91-22-5692-6200/ 5699-6200
Fax:+91-22-5693-9730
DISCLAIMER
The information in this email is confidential and intended solely for the 
addressee. Access to this email by anyone else is
unauthorized. Any use, distribution, copying or disclosure by any other person 
is strictly prohibited and may be illegal. If you
received this in error, please notify the sender by reply e-mail and then 
destroy the message. Opinions, conclusions, and other
information in this message that do not relate to the official business of 
MindCraft shall be understood to be neither given nor
endorsed by MindCraft. When addressed to our clients the contents in this email 
are subject to the terms and conditions expressed in
the governing client engagement policy.

 DISCLAIMER
 The information in this email is confidential and intended solely for the  
addressee. Access to this email by anyone else is
unauthorised. Any  use,distribution, copying or disclosure by any other person 
is strictly  prohibited and may be illegal. If you
received this in error, please  notify the sender by reply e-mail and then 
destroy the message. Opinions,  conclusions, and other
information in this message that do not relate to  the official business of 
MindCraft shall be understood to be neither given  nor
endorsed by MindCraft. When addressed to our clients the contents in  this 
email are subject to the terms and conditions expressed
in the  governing client engagement policy.


_______________________________________________
sqr-users mailing list
sqr-users@sqrug.org
http://www.sqrug.org/mailman/listinfo/sqr-users



_______________________________________________
sqr-users mailing list
sqr-users@sqrug.org
http://www.sqrug.org/mailman/listinfo/sqr-users