1
- property title; name; objectName; method; highlighted; decimalSeparator : Text
2
- property class; form; trigger; projectMethod; objectMethod; withSelection : Boolean
3
- property lineTexts : Collection
1
+ property title : Text:= Get window title:C450 (Frontmost window:C447)
2
+ property name : Text:= ""
3
+ property objectName : Text:= ""
4
+ property method : Text:= ""
5
+ property highlighted : Text:= ""
6
+
7
+ property class : Boolean:= False:C215
8
+ property form : Boolean:= False:C215
9
+ property trigger : Boolean:= False:C215
10
+ property projectMethod : Boolean:= False:C215
11
+ property objectMethod : Boolean:= False:C215
12
+ property withSelection : Boolean:= False:C215
13
+
14
+ property lineTexts : Collection:= []
15
+ property decimalSeparator : Text
4
16
property _controlFlow : Object
5
- property rgx : cs:C1710 .regex
17
+ property rgx : cs:C1710 .regex := cs :C1710 . regex . new ()
6
18
7
19
Class constructor ()
8
20
@@ -12,20 +24,10 @@ Class constructor()
12
24
ARRAY LONGINT:C221 ($len ; 0 )
13
25
ARRAY LONGINT:C221 ($pos ; 0 )
14
26
15
- This:C1470 .title := Get window title:C450 (Frontmost window:C447)
16
-
17
27
// Identify the name & the type of the current method
18
- This:C1470 .name := ""
19
- This:C1470 .objectName := ""
20
- This:C1470 .projectMethod := False:C215
21
- This:C1470 .objectMethod := False:C215
22
- This:C1470 .class := False:C215
23
- This:C1470 .form := False:C215
24
- This:C1470 .trigger := False:C215
25
-
26
28
If (Match regex:C1019 ("(?m-si)^([^:]*\\ s*:\\ s)([[:ascii:]]*)(\\ .[[:ascii:]]*)?(?:\\ s*\\ *)?$" ; This:C1470 .title ; 1 ; $pos ; $len ))
27
29
28
- $ ƒ:= Formula from string:C1601 (Parse formula:C1576 ("_localized string:C1578($1)" ))
30
+ $ ƒ:= Formula from string:C1601 (Parse formula:C1576 ("Get localized string:C1578($1)" ))
29
31
$t := Substring:C12 (This:C1470 .title ; $pos {1 }; $len {1 })
30
32
This:C1470 .projectMethod := ($t= $ƒ.call (Null :C1517; "common_method" ))
31
33
This:C1470 .objectMethod := ($t= $ƒ.call (Null :C1517; "common_objectMethod" ))
@@ -47,10 +49,6 @@ Class constructor()
47
49
48
50
End if
49
51
50
- This:C1470 .method := ""
51
- This:C1470 .highlighted := ""
52
- This:C1470 .withSelection := False:C215
53
-
54
52
If (This:C1470 .form )
55
53
56
54
// #TO_DO 🚧
@@ -68,13 +66,9 @@ Class constructor()
68
66
69
67
End if
70
68
71
- This:C1470 .lineTexts := []
72
-
73
69
GET SYSTEM FORMAT:C994 (Decimal separator:K60:1 ; $t )
74
70
This:C1470 .decimalSeparator := $t
75
71
76
- This:C1470 .rgx := cs:C1710 .regex .new ()
77
-
78
72
// <== <== <== <== <== <== <== <== <== <== <== <== <== <== <== <== <== <== <== <== <== <== <== <== <== <==
79
73
Function get macroCall () : Boolean
80
74
@@ -258,7 +252,8 @@ Function ConvertToCallWithToken()
258
252
259
253
End if
260
254
261
- If (This:C1470 .highlighted = "\"@") & (This:C1470 .highlighted = "@\"")
255
+ If (This:C1470 .highlighted = "\"@")\
256
+ && (This:C1470 .highlighted = "@\"")
262
257
263
258
SET MACRO PARAMETER:C998 (Highlighted method text:K5:18 ; "Formula:C1597(" + Replace string:C233 (This:C1470 .highlighted ; "\" " ; "" )+ ").source" )
264
259
POST KEY:C465 (3 )
@@ -453,7 +448,7 @@ Function _comment() : Text
453
448
If ($c .length = 1 )
454
449
455
450
var v1; v2; v3; v4 : Variant
456
- Formula from string:C1601 (":C1810(v1; v2; v3; v4)" ).call ()
451
+ Formula from string:C1601 ("4D :C1810(v1; v2; v3; v4)" ).call ()
457
452
458
453
If ($c [0 ]= Split string:C1554 (This:C1470 .method ; "\r " )[v3 ])
459
454
@@ -489,11 +484,11 @@ Function _paste($text : Text; $useSelection : Boolean)
489
484
490
485
If (Count parameters:C259>= 2 )
491
486
492
- $target:= Choose :C955 ( $useSelection ; Highlighted method text:K5:18; Full method text:K5:17)
487
+ $target:= $useSelection ? Highlighted method text:K5:18 : Full method text:K5:17
493
488
494
489
Else
495
490
496
- $target:= Choose :C955 ( This:C1470 .withSelection ; Highlighted method text:K5:18; Full method text:K5:17)
491
+ $target:= This:C1470 .withSelection ? Highlighted method text:K5:18 : Full method text:K5:17
497
492
498
493
End if
499
494
0 commit comments