[Gambas-user] Complete an IF inside the IDE

T Lee Davidson t.lee.davidson at gmail.com
Fri Jun 28 03:28:34 CEST 2019


I'm not sure what you are saying. I was following you until, "Even though there is ENDIF at the end"

There is only one ENDIF in that code, and it matches the single IF. The whitespace before the IF is irrelevant.


___
Lee


On 6/27/19 5:43 PM, Mayost Sharon wrote:
> hello
> 
> When I write code:
> 
> Public Sub Main()
> Dim sString As String
>    If sString Then
> Else
> Endif
> End
> 
> Note that there is a space before the IF
> 
> When I go to the end of the line of the IF and press the Inter key
> It completes my ENDIF
> Even though there is ENDIF at the end
> 
> Is it okay?
> 
> Thank you
> 
> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]----
> 


More information about the User mailing list