Skip to main content

Dropdown menu with fields

I want to create a dropdown menu with the fieldnames. In my test script (Test fields to dropdown menu works) it works but in my project script (RB Temp 1) it doesn't work. What do i wrong? I want to understand how the basic code is to populate a list and show it to the user.
 

Brian Element Mon, 08/27/2018 - 05:01

In reply to by Robert van den…

I did a google search and found this article: http://www.vbforums.com/showthread.php?608301-What-is-indenting-and-why…

Also you can look at any of my code and see how it is indented.  It makes it much easier to read for humans but the computer doesn't care.  If you ever start working in Python you will have to indent as that is part of the language.

Robert van den… Mon, 08/27/2018 - 04:12

For now i fixed it by define a variable, after pressing that button the script sets that variable to "X" so it's not blank. So now if the script from the button is almost finished it sets the variable not to blank. And when that variable is not blank the button is disabled. Is this the most efficient method"
DisableButton4 = "X" Code in the end of the Case
If DisableButton4 <>"" ThenDlgEnable "SelectFields3", 0End If