• 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. form returning to main function

Stats

  • Locked Locked
  • Replies 1
  • Subscribers 144
  • Views 12996
  • 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

form returning to main function

Rojalin
Rojalin over 13 years ago

hello,

I want  to write a code for a function which will create a form in which many fields are there.In each field i want a cyclic field of many lists..where user will enter there  one of their choice.after this it will return to main  function where entered field given by user will execute some other functions.

For example,

my main function will create a form named My form which has different field named m1,m2,m3 like this.m1 is having m1_1,m1_2,m1_3 in cyclic field.m1_1 is a list of floating numbers defined in my main function. 

 So anyone can help me.

Thanks 

  • Cancel
  • Quek
    Quek over 13 years ago

    Hi Rojalin

    Hope that this is what you need. Please load the form and press F10 in ciw.

    Best regards
    Quek


    procedure( myForm()
       let( (m1)
          m1=hiCreateCyclicField(
             ?name 'm1
         ?prompt "m1"
             ?choices list("m1_1" "m1_2" "m1_3")
          ) ;hiCreateCyclicField

          hiCreateAppForm(
             ?name 'sampleForm
             ?formTitle "Testing"
             ?fields list(m1)
             ?callback "sampleCallback(hiGetCurrentForm())"
          ) ;hiCreateAppForm

          hiDisplayForm('sampleForm)
       ) ;let
    ) ;procedure


    procedure( sampleCallback(myForm)
       let( (m1)
          m1=myForm~>m1~>value
          printf("User selected %s\n" m1)
       ) ;let
    ) ;procedure


    hiSetBindKey("Command Interpreter" "F10" "myForm()")

    sampleform.il
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel

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