• Skip to main content
  • Skip to search
  • Skip to footer
Cadence Home
  • This search text may be transcribed, used, stored, or accessed by our third-party service providers per our Cookie Policy and Privacy Policy.

  1. Community Forums
  2. Custom IC SKILL
  3. Variable number of dialog box fields

Stats

  • Locked Locked
  • Replies 9
  • Subscribers 143
  • Views 15087
  • Members are here 0
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Variable number of dialog box fields

thomas1000
thomas1000 over 12 years ago

I am trying to construct a dialog box with a variable number of fields, however,  the hiCreateStringField ?name parameter is supposed to be a single-quoted symbol reference so I cannot simply assign the result of hiCreateStringField to an array and then reference it.  I must have the wrong approach.  

Does anyone know how to construct a form with a variable number of fields?  If so, can you point me in the right direction?  I want to be able to create fields in an indexed loop and read their values that way.

  • Cancel
Parents
  • Andrew Beckett
    Andrew Beckett over 12 years ago

    I think this is what you want:

    procedure(FileFormCallback(theForm)
      let((ValueList)
        ValueList=foreach(mapcar fieldName theForm->fieldList
          get(theForm fieldName)->value
        )
        printf("%L\n" ValueList)
      )
    )

    (note no need to use nth or anything like that, and will cope with any number of fields)

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • Andrew Beckett
    Andrew Beckett over 12 years ago

    I think this is what you want:

    procedure(FileFormCallback(theForm)
      let((ValueList)
        ValueList=foreach(mapcar fieldName theForm->fieldList
          get(theForm fieldName)->value
        )
        printf("%L\n" ValueList)
      )
    )

    (note no need to use nth or anything like that, and will cope with any number of fields)

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Children
No Data

Community Guidelines

The Cadence Design Communities support Cadence users and technologists interacting to exchange ideas, news, technical information, and best practices to solve problems and get the most from Cadence technology. The community is open to everyone, and to provide the most value, we require participants to follow our Community Guidelines that facilitate a quality exchange of ideas and information. By accessing, contributing, using or downloading any materials from the site, you agree to be bound by the full Community Guidelines.

© 2025 Cadence Design Systems, Inc. All Rights Reserved.

  • Terms of Use
  • Privacy
  • Cookie Policy
  • US Trademarks
  • Do Not Sell or Share My Personal Information