haorenhui
2023-10-30 6d6cc10d9e8e242661da7fd655dec155a09d676c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
Quintiq file version 2.0
#parent: #root
Method GetFormProperties (String formname, output String title_o, output Key form_key_o) id:Method_GlobalStateTestGenerator_GetFormProperties
{
  #keys: '[142876.9.202774578]'
  Body:
  [*
    if( formname <> ''
        and GlobalStateTestGenerator.NotExcludedForm( formname ) )
    {
      info( ">>>>> GetFormProperties: formname=", formname );
      
      form_type := ApplicationScope.ResolveType( formname, true );
      
      if( form_type.IsDerivedFrom( typeof( Form ) ) )
      {
        frm_new := construct( Form, form_type );
        
        title_o := frm_new.Title();
        form_key_o := frm_new.Key();
      }
      else
      {
        dlg_new := construct( Dialog, formname );
        
        title_o := dlg_new.Title();
        form_key_o := dlg_new.Key();
      }
    }
  *]
}