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

Re: How to embed a variable within an INPUT string -Reply



Sorry for the bad advice.  I just tried this and it is working for me.

  let $My_Data = 'Green Onions'
  let $input_string = 'Press <Enter> to keep '|| $My_Data
  display $input_string noline
  input $Output_Data ' ' type=char

Hope this works for you,

Kimberly


>It doesn't seem to work. Instead of showing the 'Press <Enter>...' as
>the prompt, it shows the literal '$input_string' as the prompt. Also, I
>wanted it to work with the -xcb SQR flag.
>Bob
>> -----Original Message-----
>> From: Kimberly Lawrence [SMTP:Kimberly_Lawrence@CCNOTES.CCITY.COM]
>> Sent: Wednesday, November 26, 1997 4:56 PM
>> To:   Multiple recipients of list SQR-USERS
>> Subject:      Re: How to embed a variable within an INPUT string
>> -Reply
>>
>> Bob,
>>
>> If I remember correctly I ran into this a few weeks ago.  Here is what
>> I
>> did:
>>
>> let $My_Data = 'Green Onions'
>> let $input_string = 'Press <Enter> to keep '|| $My_Data
>> input $Output_Data type=char $input_string
>>
>> Let me know if that doesn't work and I'll try to hunt down my sqr
>> where I
>> finally got it working.
>>
>> Thanks,
>>
>> Kimberly
>>
>>
>> > I don't think so. What I want is an input prompt that says:
>> >
>> > Press <enter> to keep Green Onions:
>> >
>> > Bob
>> >
>> > -----Original Message-----
>> > From: Wes Williams [SMTP:wwilliams@MAIL.RKD.SNDS.COM]
>> > Sent: Wednesday, November 26, 1997 2:35 PM
>> > To:   Multiple recipients of list SQR-USERS
>> > Subject:      How to embed a variable within an INPUT string -Reply
>> >
>> > Bob is this what u want to do ?
>> > let $My_Data = 'Green Onions'
>> > input $Output_Data type=char 'Press <Enter> to keep the default '
>> > concat  $My_Data with  $Output_Data
>> >
>> > Wes
>> >
>> > >>> Smith Robert S
>> > <Smith_Robert_S%PRC.COM@internet.rkd.snds.com> 11/26/97 12:38pm
>> > >>>
>> > Here is my input:
>> >
>> > input $Output_Data type=char 'Press <Enter> to keep the default '
>> >
>> > What I would like to do is have a variable within that string:
>> >
>> > let $My_Data = 'Green Onions'
>> >
>> > input $Output_Data type=char 'Press <Enter> to keep ' || $My_Data
>> >
>> > or
>> >
>> > input $Output_Data type=char 'Press <Enter> to keep ' $My_Data
>> >
>> > (I am not sure of the syntax, if any)
>> >
>> > However, it seems that it doesn't allow the use of variables, it
>> just
>> > gives me:
>> >
>> >   (SQR 2503) Unknown qualifier for INPUT.
>> >
>> > Any Ideas?
>> >
>> > Bob Smith
>> > Litton Enterprise Solutions
>> > smith_robert_s@prc.com
>> >
>> > p.s. What is the equivalent of Oracle's Desc and Sybase's sp_help in
>> > SQLBase?