the example DB I posted earlier in this thread uses New list and OBJECT SET LIST BY REFERENCE. the list can be totally dynamic, it does not need to exist in the toolbox.
when you use default values, you essentially using text arrays constants. that is why, for example, if the popup menu is associated to the variable "myPopup", you need code that looks like If (False) ARRAY TEXT(myPopup;0) End if to tell the compiler that the variable is an array. (otherwise it may wrongly type it at numeric, based on code such as myPopup:=1) by the way, I just tested, setting the element to #0 of populated default value/text array popup menu works fine. are you using process variables or form local (anonymous) variables? are you running interpreted or compiled? what is the value type of the popup menu object? > 2019/01/31 3:01、Jim Crate via 4D_Tech <[email protected]>のメール: > > I see, it uses a list for the choices but can display a value not in the > list. That will be useful for those cases where the values come from a list. > In this case the popup choices are set dynamically based on other values. > This should also work with the “Default Values” property, right? Is there a > command to set the default values, and if so is that change local and not > persisted? ********************************************************************** 4D Internet Users Group (4D iNUG) Archive: http://lists.4d.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tech Unsub: mailto:[email protected] **********************************************************************

