Tired of repeating the same code over and over again, especially when developing a sample project for other members, I thought I'd create this snippet. It's imperfect, but it's still useful.
B4X, then for B4A, B4J, B4i.
Update:
I implemented @PaulMeuris's suggestions (post #5), they're good...