Skip to content

Category: Tips

sort code tips and tricks

Var, Dim or both?

API 2.0 added Var as an alias for Dim. Var is more recognized by coders from other languages and that’s great. Easily readable code is the goal, so I use both.

Comments closed

Doing Progress Right

The ProgressBar control and loops go hand-in-hand. If there is a ProgressBar on a Window, you can bet a For loop is close by. But there are right and wrong ways to do this, and most of the time I see progress code, I see the wrong way.

Comments closed

Default Values Tip

Often when debugging an application, you’ll need to enter the same data in the same fields over & over. There is a temptation to set the value of the field to the test data. The downside of this is that you need to remove all those defaults before deploying your application.

Comments closed

Non-Visible Characters in Strings

As a follow-up to our post on Escaping Quotes in Strings, someone asked how they might deal with something such as the tab character in a String. Unlike with a quote, dealing with a non-visual character (such as a tab or end-of-line) in a String is trickier because you can’t actually type those characters. So instead you have to refer to the character another way.

Comments closed