Loop with variable

Discussion in 'AutoCAD' started by pierre_desmarais, Feb 9, 2005.

  1. Hi!

    I have 3 variables, item1, item2 and item3, and I want to use it in a
    loop. What would be the syntax?

    for x = 1 to 3
    'Here is the problem! How do I join the value of x to the word item
    to make item1, 2 and 3?
    item&x = 10
    item "x" =10
    next

    Thx!

    PS: If it can be found in Sutphin or Cottingham's book please tell me
    where!

    Pierre Desmarais
     
    pierre_desmarais, Feb 9, 2005
    #1
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.