Forgot password?

Create an account!

Forum

« back

RhinoScript – propertyListBox values

Messages

Please log in to write a message.

  • 1. ant (Jan 11, 2014 17.09):

    Hi,
    I'm trying to use the values from a propertyListBox and loop through them but Rhino just ignores them. If I use a normal variable Or number everything is OK but how can I use the numbers from my propertyListBox?
    Thanks,

    [ rvb]
    Option Explicit
    Call Main()
    Sub Main()

    Dim colNumberOld
    Dim colNumberNew
    Dim colName

    Dim i,j
    Dim arrayPos2
    Dim VarAnyNumber : VarAnyNumber = 2

    colName = array(_
    "no.1",_
    "no.2",_
    "no.3")

    colNumberOld = Array(1, 2, 3)
    colNumberNew = Rhino.PropertyListBox(colName, colNumberOld, "...")

    For i = 0 To 10
    If i < colNumberNew(2) Then '<--- If I put a VarAnyNumber or
    'type a number here the script works
    Rhino.Print i
    End If
    Next

    End Sub

Recommend

Why are these buttons gray?