| 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
32
33
34
35
36
 | | Quintiq file version 2.0 |  | #parent: #root |  | Method GetDialogNameFromResponse (ModeledResponseQuillImplementation impl) as String id:Method_GlobalStateTestGenerator_GetDialogNameFromResponse |  | { |  |   #keys: '[142876.9.1250937696]' |  |   Body: |  |   [* |  |     dialogname := ''; |  |      |  |     value := impl.Body(); |  |     value := value.ReplaceAll( ' ', '' ); |  |      |  |     constructtext := 'construct('; |  |     start := value.FindString( constructtext, 0 ); |  |      |  |     if( start >= 0 ) |  |     { |  |       end := value.FindString( ')', start ); |  |       text := value.SubString( start + constructtext.Length(), end - start - constructtext.Length() ); |  |      |  |       try |  |       { |  |         x := construct( Dialog, text ); |  |         if( not isnull( x ) ) |  |         { |  |           dialogname := text; |  |         } |  |       } |  |       onerror |  |       { |  |       } |  |     } |  |      |  |     return dialogname; |  |   *] |  | } | 
 |