Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 5 of 5
  1. #1
    Join Date
    Jul 2005
    Location
    Egypt
    Posts
    88

    Smile Thats me again .. Sorry for disturbance

    Hello people ,
    I am now facing a little problem .. maybe I could not find the answer coz I am kinda newbie , However , Here's my Question :

    I wanna get a text from an input1 .. Here is the action :

    result = Input.GetText(input1);

    Now I want to let that "result" appear into another input BUT inserted in a sentence like :

    Good One , I like the [result]

    such that the bold [result] is the text which I got from Input 1 ..
    Shall I expect any answer ??

  2. #2
    Join Date
    Jun 2002
    Location
    Israel
    Posts
    1,843
    I wanna get a text from an input1 .. Here is the action :

    result = Input.GetText(input1);

    Now I want to let that "result" appear into another input BUT inserted in a sentence like :

    Good One , I like the [result]

    such that the bold [result] is the text which I got from Input 1 ..
    Shall I expect any answer ??
    Simple enough:

    1. you need to use:
    result = Input.GetText("input1");
    WITH QUOTATION MARKS FOR THE INPUT OBJECT

    2. Add the following action:

    Input.SetText("input2", "Good One , I like the"..result);

    Explanation: What you do is have a string of text ("Good One , I like the") to which you concatenate (..) the variable (result) whose value you got in the previous action.

    Hope that helped.

    Yossi

  3. #3
    Join Date
    Jul 2005
    Location
    Egypt
    Posts
    88
    Thanks for the fast reply mate .. Actually it worked for the example I gave but I discovered that I didn't write my real need

    I need to insert that result into a Sentence , Hi bla bla bla [result] so bla bla bla


  4. #4
    Join Date
    Sep 2002
    Location
    Sol 3
    Posts
    3,160
    Input.SetText("input2", "Hi bla bla bla "..result.." so bla bla bla");

    If the insertion point is always in the same place then you can use the above. Or you could use a String.Replace to replace a unique string with the result from your input box.

    Input.SetText("input2", String.Replace("Hi bla bla bla [result] so bla bla bla", "[result]", Input.GetText(input1), ";

    Tigg
    TJ-Tigger
    "A common mistake that people make when trying to design something completely foolproof was to underestimate the ingenuity of complete fools."
    "Draco dormiens nunquam titillandus."
    Map of IR Forum Users - IR Project CodeViewer - Online Help - TiggTV - QuizEngine

  5. #5
    Join Date
    Jul 2005
    Location
    Egypt
    Posts
    88
    You made my day .. Thanks a lot Guys

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts