Wish EndIf to End If

aaronk

Well-Known Member
Licensed User
Longtime User
Or maybe even when type something like
IF ..something.. Then
automatically add the 'End If' like in vb.net

Same with a sub, automatically add 'End Sub' when you start the sub
 

rbsoft

Active Member
Licensed User
Longtime User
Or maybe even when type something like
IF ..something.. Then
automatically add the 'End If' like in vb.net

Same with a sub, automatically add 'End Sub' when you start the sub

I am not so keen about that. Often you just want to wrap a piece of existing code into if-endif structure, and then you need to drag the 'end if' or delete it or else.

About the sub - here B4A has already an excellent function that does just that and even more. Write 'sub' and press the Tab key. You get more options and the 'End Sub' will be added too.

Maybe Erel could add some <Tab> functionality to 'if', 'select', 'for', still. That might be a better solution. Or <Ctrl><Enter> might be a good way to complete a structure.

Rolf
 
Last edited:

aarondc

Member
Licensed User
Longtime User
Autocorrect functionality would allow you to do any number of custom replacements like endif to End If, etc.
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…