forms global doesn't contain all forms?

Hi…

Whilst debugging an existing solution in Servoy Eclipse (4.1.0 build 6510) I’ve noticed that the global (for example) forms.formname may not exist, but “formname” does appear in forms.allnames.

Any idea why this might be, or how I can ensure that forms.formname exists? (it’s being passed to application.showFormInDialog(…)) The form is listed under the solution in the Solution Explorer window.

I’m not sure if the debugger is telling me untruths or if I’m just missing something obvious.

Thanks in advance,
Shay

The forms object contains only the forms that are loaded into memory.

The forms.allnames contains all forms that are part of the active solution + all its (nested) modules.

As soon as you do forms.xxxx, if that form exists in your solution it will automatically get loaded by Servoy in the background and become an entry in the forms object.

So, if you want to check if a forms exists in your solution, use the forms.allnames property.

Hope this helps,

Paul