B4X has a New Command Syntax

BillMeyer

Well-Known Member
Licensed User
Longtime User
Hello Fellow B4X'ers

We have decided to make available a new syntax (it does NOT come with or need a library - BUT must be a part of your toolbox).

It is frequently requested by clients and is their usual go to syntax.

It goes like this:

The client requests: "Can you make it like Excel"
You: Sure no problem !!!
You then head over to our excellent software and type in: AutoMagically(Excel) and poof - there it is - looks exactly like Excel !!! - Amazing isn't it !!!

You can use this syntax anywhere (eg. in Anywhere Software) @Erel

Think of this: AutoMagically(SendSMS) - Google won't mind and your client is happy, maybe AutoMagically(goDead_When_InCar) and another use case is right here in the forum eg. AutoMagically(Create-A_NewThread) @DonManfred or AutoMagically(Search) or maybe AutoMagically(Xhosa) @Mashiane or AutoMagically(RTB) @klaus

Just think of the power in your keyboard when you use AutoMagically !!!

Make sure it is in your toolbox - you will save yourself a lot of pain and absolutely delight your clients !!!

So what creative uses can you think of for AutoMagically ??? Remember - the syntax is explicit AutoMagically(My Idea Here As String)

And finally AutoMagically(Enjoy...) @Peter Simpson
 

emexes

Expert
Licensed User
Longtime User
AutoMagically(goDead_When_InCar)
AutoMagically(Create-A_NewThread)
the syntax is explicit AutoMagically(My Idea Here As String)

I particularly like that identifier words can be separated using any of CamelCase, underscores, hyphens or even just plain spaces,

And finally AutoMagically(Enjoy..)

and that it doesn't get confused by dots into expecting methods or properties or subfields.

Nice_Job!!! ?
 
Last edited:

Cableguy

Expert
Licensed User
Longtime User
I tried AutoMagically(FinishAll_MyTasks) but it throws a "word not in dictionary " error... can it be a bug, or is my implementation wrong?
My boss just tried AutoMagically(ComplainAbout_EveryoneAndEverything) and it worked!
 

LucaMs

Expert
Licensed User
Longtime User
I'm probably too old (and I will not age further, I hope) so I don't understand anything anymore but...

Is this thread a joke or what else?

(it does NOT come with or need a library - BUT must be a part of your toolbox).
???

AutoMagically(Excel) and poof - there it is - looks exactly like Excel !!! - Amazing isn't it !!!
???
 

emexes

Expert
Licensed User
Longtime User
I tried AutoMagically(FinishAll_MyTasks) but it throws a "word not in dictionary " error... can it be a bug, or is my implementation wrong?

Try using Automagically(Finish_AllMyTasks) ie move the underscore to give cleaner distinction between the method (ie Finish) and what it is to be applied to (ie AllMyTasks).

I tried it here and it mostly works, except that for some reason it refuses to make coffee. I think this could be because the coffee maker's monthly firmware update is late, something to do with still trying to fix the overflow error caused by the previous update.
 

aeric

Expert
Licensed User
Longtime User
Unfortunately B4X doesn’t provide you more coffee you needed. Relax and don’t be too stress.
 

Cableguy

Expert
Licensed User
Longtime User
Oh.... I understand now...
I had found another workaround though
ExecuteManually(MyTasks) still works although deprecated
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…