Auto formatting, VB style

biometrics

Active Member
Licensed User
Longtime User
Auto:

End Sub on Sub

endif -> End If

xyz=1 -> xyz = 1

If Not bToggleVideo Then -> If Not(bToggleVideo) Then

MsgBox "abc" -> MsgBox("abc")

No need for:
Sub Globals
Dim ListView1 As ListView
End Sub
 

CidTek

Active Member
Licensed User
Longtime User
I think a tidy code function that fixes indents in the current sub that the cursor is in would be cool.
 

NeoTechni

Well-Known Member
Licensed User
Longtime User
I'd like it to correct capitalization of variables/subs when you finish with a line
If you start typing Function, replace it with sub\
The tooltip that shows the parameters of a sub, should indicate which parameter you're currently editing

2 combo boxes at the top of an activity
1 listing all the widgets/objects
the other listing all the available events for the selected widget
Automatically generate the member of a selected event if it doesnt exist, scroll to it if it does.

Optional parameters
Just have the missing parameters filled in during the compile stage.

When we type public sub, remove the public (and private)
 
Last edited:

NeoTechni

Well-Known Member
Licensed User
Longtime User
Ah.

Though copying VB6's UI would be better, given thats what most of us are used to.

Also, the With keyword.
 

NeoTechni

Well-Known Member
Licensed User
Longtime User
That's a remarkable supposition to make!

To assume most people on a 'Basic' forum are used to one of/if not the most popular UI of 'Basic'? Especially given the many comments I've read about how people are used to VB6 here?

Also, lines that fail to compile should show up red. It'd be nice if it could detect syntax errors before compiling too
 
Last edited:

corwin42

Expert
Licensed User
Longtime User
To assume most people on a 'Basic' forum are used to one of/if not the most popular UI of 'Basic'? Especially given the many comments I've read about how people are used to VB6 here?

I use B4PPC for 3 years now and B4A since it is released and I have never written a single line in VB6.

The IDE could be better and have much more features of course but in a one man project like B4A is you have to select which features to implement. And I would enjoy widget support or some other Android features B4A doesn't support yet much more than some cloned features from VB6 or an improved IDE which brings no "real" advantage.

Sent from my LG-P500 using Tapatalk
 

NeoTechni

Well-Known Member
Licensed User
Longtime User
It does provide an advantage. Optimization/streamlining saving a few seconds for a step adds up.
I've seen quite a few people here admit they came from VB6.
 

Gary Miyakawa

Active Member
Licensed User
Longtime User
I'd be happy with a post process (secondary program) that would clean it up... That way we don't pile more into the IDE... (and on Erel)...


GaryM
 

NeoTechni

Well-Known Member
Licensed User
Longtime User
That'd be messy, and a lot of time would be spent re-inventing the API erel already has.

But I do intend to try some of the formatting myself.
 

Jost aus Soest

Active Member
Licensed User
Longtime User
Good ideas!

I would also prefer an option called "full VB6-Style"! :)

If Not bToggleVideo Then -> If Not(bToggleVideo) Then
Even better: I don't want to see any ugly "(" or ")"!
So keep it simple: If Not bToggleVideo Then
(The same for Loop-conditions etc. pp.)

MsgBox "abc" -> MsgBox("abc")
Again: I don't want to be forced to use "(" or ")" - 'cause they are redundant!

No need for:
Sub Globals
Dim ListView1 As ListView
End Sub
That would be great!
This is the thing I will forget again and again! :BangHead:
 
Top