Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 7 of 7
  1. #1
    Join Date
    Jun 2006
    Posts
    3

    where is the wrong?

    ı want to 20+30+40 with lisbox but ı not understand where is the wrong

    plz help
    Attached Files

  2. #2
    Join Date
    Jul 2002
    Location
    USA
    Posts
    3,959
    Be sure to use String.ToNumber() when you are getting a numeric value from a label, input, etc...

  3. #3
    Join Date
    May 2000
    Location
    Indigo Rose Software
    Posts
    2,150
    Not totally sure but I did notice this in your code:

    Code:
    result = Label.GetText("Label1");
    is =  result + 40
    Label.SetText("Label4", is);
    should be

    Code:
    result = Label.GetText("Label1");
    is =  result + 40;
    Label.SetText("Label4", is);
    Not sure if that is the answer but it is worth a shot. You might need to explain further.

    Adam Kapilik

  4. #4
    Join Date
    May 2005
    Posts
    1,115
    No, ; is optional in Lua.
    Label.GetText("Label1") returns a string.
    Never know what life is gonna throw at you.
    (Based on a true story.)

  5. #5
    Join Date
    May 2000
    Location
    Indigo Rose Software
    Posts
    2,150
    good call.

    Adam Kapilik

  6. #6
    Join Date
    May 2006
    Posts
    5,380
    for clarification

    Code:
    result = Label.GetText( "Label1"); 
    result = String.ToNumber(result); 
    is =  result + 40 
    Label.SetText( "Label4", is);
    output enhanced with AMS Code Pretty
    Open your eyes to Narcissism, Don't let her destroy your life!!

  7. #7
    Join Date
    Jun 2006
    Posts
    3
    thanks a lot

    ı could make
    Attached Files

Similar Threads

  1. What in the H.E. Double cock roach am I doing wrong?
    By Bruce in forum AutoPlay Media Studio 5.0
    Replies: 8
    Last Post: 05-31-2005, 10:19 PM
  2. Dependencies: Doing it wrong but where?
    By synistics in forum AutoPlay Media Studio 5.0
    Replies: 10
    Last Post: 06-03-2004, 08:46 PM
  3. Wrong Error Code (When not reaching host)
    By Thierry_Zoller in forum Setup Factory 6.0
    Replies: 0
    Last Post: 04-21-2004, 05:53 PM
  4. NEED HELP ON A MESSAGE AFTER A WRONG PASSWORD
    By dragon in forum AutoPlay Menu Studio 3.0
    Replies: 0
    Last Post: 02-21-2002, 11:11 PM
  5. Something wrong with install images.!!!
    By vesta in forum Setup Factory 6.0
    Replies: 5
    Last Post: 02-03-2002, 02:49 PM

Posting Permissions

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