Search My Blog

Tuesday, March 7, 2017

AutoScript Enabling PowerBuilder Built-In Commands

** Hot Tip **

AutoScript Enabling Built-In Functions

     The PowerBuilder IDE has a great Auto-Scripting feature. However, it does not address PB's built-in commands. Sometimes also referred to as Global Functions. These commands though are used in a plethora of places in the average App.  Without AutoScript support though, it can be a laborious journey through the PB Help sub-system to quickly extract what you need to know.

     Here is a video little tip though that can auto-script enable all of PB's built-in commands (functions) for your entire App in just a few seconds ...

Click here to watch ... Enjoy!

Regards .... Chris


  1. I tried this, Chris, but there are a couple of things I don't like about it. The first is that you don't get a popup until you have typed enough of the function name to be unique. (Maybe that's how Autoscript works in general - I really haven't used it before.) But my bigger concern is the statement "SF.function will compile but it won't run". That leaves one very error prone to forgetting to remove SF. and having your program crash because of it.

  2. Hi Dan;
    If you do no see the immediate pop-up like you see in my demonstration video - then, you might need to check your auto-script settings. Makes sure that things like "Show Return Type" and "Automatic Pop-up" are ON and "Activate Only After Dot" are OFF.
    Yes, the SF.xxxx() will fail but it won't take you long to remember to clear the "SF." syntax before saving (as I emphasize in the video). Remember though that this is only a "work Around" until Appeon updates the AutoScript feature in PowerBuilder.

    Regards ... Chris