Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 4 of 4
  1. #1
    Join Date
    Feb 2004
    Location
    Cowfields of Germany
    Posts
    617

    Concat Variables NOT THE STRINGS INSIDE THE VARIABLES

    What I'm trying to do is reduce the number of lines of code from 54 to 5 plus the comment line. Is there a way to concat a variable? I know I put "" around false; that's because I am passing that string to a SQLite database. It's still in the development stage.


    Code:
    -- A for loop that counts from 1 to 10
    min = 1;  -- The number to start at
    max = 54;  -- The number to stop at 
    for count = min, max do
    	sProg..count = "false"
    end
    any suggestions?

    chris

  2. #2
    Join Date
    May 2005
    Posts
    1,115
    Use a table.
    Never know what life is gonna throw at you.
    (Based on a true story.)

  3. #3
    Join Date
    Feb 2004
    Location
    Cowfields of Germany
    Posts
    617
    do you mean like this...

    Code:
    -- A for loop that counts from 1 to 10
    sProg = {}
    min = 1;  -- The number to start at
    max = 54;  -- The number to stop at 
    for count = min, max do
    	sProg[count] = "false"
    end
    Chris

  4. #4
    Join Date
    May 2005
    Posts
    1,115
    Yeah. :thumbup:
    Never know what life is gonna throw at you.
    (Based on a true story.)

Similar Threads

  1. Dividing Strings and storing in variables
    By mkruckow in forum Setup Factory 7.0
    Replies: 5
    Last Post: 06-13-2005, 02:15 AM
  2. session variables in action strings
    By tkilshaw in forum Setup Factory 7.0
    Replies: 3
    Last Post: 04-21-2005, 12:58 PM
  3. Comparing Two Strings
    By Desmond in forum AutoPlay Media Studio 5.0 Examples
    Replies: 0
    Last Post: 10-03-2003, 01:23 PM
  4. INFO: Setting Environment Variables
    By Support in forum Setup Factory 6.0 Knowledge Base
    Replies: 0
    Last Post: 10-10-2002, 12:07 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