I was always planning on using SB in a couple of projects and I have used it in the
past for some quick and dirty admin processes across my network.
If there was a
glueware class of software SB would be at the top of the list. I save a lot of money for my clients connecting processes together to automate the solution.
Variant variables and undeclared types are good - even though I prefer to declare variables.
SB by default declares variables as global to the module. This includes FUNCTION/SUB variables not passed as arguments which are local by default. You can change this with SB option settings to require that all variables be assigned or SB will not run run the script. You also set the option that all variables in FUNCTION /SUB are local by default. Normally the only time I initialize a variable is if I'm incrementing it with
+= or
&=. SB doesn't like incrementing
undef variables. I rarely use
STR() or
VAL() functions with SB variant variables.
PRINT "1" + "2" would return 3
PRINT 1 & 2 would return "12"
Arrays. I'm still used to keeping track of them by numeric indices.
I rarely use indexed based arrays. All the DB extenion modules support returning the data in associative arrays. I wrote a JSON to SB associative function (webext.sbi) that makes working with JSON a dream.
HERE is an example of using the
webext.sbi extension module with a JSON string.
What would be really good would be a utility to take VB forms (without code) and to turn them
into viable SB forms - sadly, I know that I don't have the patience (or skill) to write it. An ANSI
terminal forms handler, OTOH, may be within my wheelhouse - sometimes a text interface is
just what the doctor ordered.
I use VB6 with VBCCR to create form / class COM DLLs as my user GUI interface on Windows 32 bit. The form events callback to SB FUNCTION / SUB routines which I use to load grids and update my DB.
HERE is an example I posted in this thread. My plan was to start a new thread showing how to use VB6 + VBCCR to create a modern looking GUI that runs on Windows 10 and 11. I've held back starting this thread to see how the ScriptBasic 3.0 release and its use progressed. So far you are the only person that has taken the time to respond.