diff --git a/app/src/gambas3/.src/Editor/Code/FEditor.class b/app/src/gambas3/.src/Editor/Code/FEditor.class index 78f22183b..4a284340e 100644 --- a/app/src/gambas3/.src/Editor/Code/FEditor.class +++ b/app/src/gambas3/.src/Editor/Code/FEditor.class @@ -3651,14 +3651,16 @@ Private Sub CreateLocalVariable() As Boolean Dim sType As String Dim I As Integer - If aSym.Count < 3 Then Return + If aSym.Count < 2 Then Return If aSym[0] = "TRY" Then aSym.Remove(0) aType.Remove(0) Endif - If aSym[0] = "IF" Or If aSym[0] = "ELSE" And aSym[1] = "IF" Then + If aSym.Count < 2 Then Return + + If aSym[0] = "IF" Or If aSym[0] = "ELSE" Then I = aSym.Find("THEN") + 1 If I <= 0 Then Return aSym.Remove(0, I) @@ -3747,6 +3749,15 @@ Private Sub CreateLocalVariable() As Boolean sType = "s" Endif + + ' Inc & Dec + Else If aSym.Count = 2 And If aSym[0] = "INC" Or aSym[0] = "DEC" Then + + sName = aSym[1] + sType = GetSymbolType(sName) + If sType Then Return + + sType = "i" Endif diff --git a/app/src/gambas3/img/module/class.png b/app/src/gambas3/img/module/class.png index e33a92b6a..7d3134538 100644 Binary files a/app/src/gambas3/img/module/class.png and b/app/src/gambas3/img/module/class.png differ diff --git a/app/src/gambas3/img/module/form.png b/app/src/gambas3/img/module/form.png index e4b3d607f..b517db008 100644 Binary files a/app/src/gambas3/img/module/form.png and b/app/src/gambas3/img/module/form.png differ diff --git a/app/src/gambas3/img/module/module.png b/app/src/gambas3/img/module/module.png index d7cc09cab..02535c498 100644 Binary files a/app/src/gambas3/img/module/module.png and b/app/src/gambas3/img/module/module.png differ diff --git a/app/src/gambas3/img/module/report.png b/app/src/gambas3/img/module/report.png index 44e4279d7..d73556317 100644 Binary files a/app/src/gambas3/img/module/report.png and b/app/src/gambas3/img/module/report.png differ diff --git a/app/src/gambas3/img/module/termform.png b/app/src/gambas3/img/module/termform.png index a8c88478f..2bd82db25 100644 Binary files a/app/src/gambas3/img/module/termform.png and b/app/src/gambas3/img/module/termform.png differ diff --git a/app/src/gambas3/img/module/webform.png b/app/src/gambas3/img/module/webform.png index c8574f03b..cada1081d 100644 Binary files a/app/src/gambas3/img/module/webform.png and b/app/src/gambas3/img/module/webform.png differ diff --git a/app/src/gambas3/img/module/webpage.png b/app/src/gambas3/img/module/webpage.png index 71e653c8f..748a5c812 100644 Binary files a/app/src/gambas3/img/module/webpage.png and b/app/src/gambas3/img/module/webpage.png differ