BCS Surf And Develop Like A Boss

BCS Programmer’s Workbench.

sb01

When surfing the web and developing software a workbench developed by BCS supports categories and subsequent members of the specified category.

sb02

Also a web browser is embedded into the same workbench. When I populate the browser’s URL and tap enter (or click on the URL) the browser navigates to that page. A button on the browser allows me to capture the current URL and its title to create a member of the selected category.

sb03

The categories and its members are sorted in ascending alphabetical sequence. There are also navigational features both categories and category details. Category members may contain any executable application or associated file type such as the PDF or word document.

This combination of features allows me to be one or two click away from any web page, software development environment or any other available end user application .

A 32 bit executable program may be downloaded by clicking here.
A 64 bit executable program may be downloaded by clicking here.
The component documentation can be found by clicking here.
The source code may be found by clicking here.

Mr. Arch Brooks, Software Engineer, Brooks Computing Systems, LLC authored this article.

BCS File IO Direct Access

There are those times when direct access input and output (IO) fulfills information management requirements.  This approach is further leveraged by using a record structure of the overall information stored in the direct access file.

fio01

When you attempt to read a file and the file does not exist the following message box will appear.

fio02

Before you erase the record area the following dialog appears.

fio03

Of course the file will be created when you use the Write Data Record option.  On subsequent reads this message will not be generated.

A 32 bit executable program may be downloaded by clicking here.
A 64 bit executable program may be downloaded by clicking here.
The component documentation can be found by clicking here.
The source code may be found by clicking here.

Mr. Arch Brooks, Software Engineer, Brooks Computing Systems, LLC authored this article.

BCS Query Data Field

When the end user would like to query specific data fields in a MySQL data table this tool will satisfy those requirements.

qdf01

The process begins by asking you for the data element to query against by the dialog listed below

qdf02

Double Click on the selected item to continue the process.  By changing the parameters of this utility any existing field in the entire database may be queried.

A 32 bit executable program may be downloaded by clicking here.
A 64 bit executable program may be downloaded by clicking here.
The component documentation can be found by clicking here.
The source code may be found by clicking here.

Mr. Arch Brooks, Software Engineer, Brooks Computing Systems, LLC authored this article.

BCS Create Delphi Class

There are those times when a new Delphi class need to be created.  This application does that for the end user.

cg01

When the user clicks on Generate Class option the following dialog appears

cg02

Simply type in the class name and tap the OK control.  The application then shows the next dialog.

cg03

The resulting source code is listed below.

unit BCSStatU;
 
interface
 
uses Dialogs, Forms, System.Classes, SysUtils, Windows;
 
const
   maxArray = 7;
 
var
  sc: TStringList;
 
type
 
  TBCSStat = class(TCustomForm)
 
  private
 
  public
 
end;
 
var
 
  BCSStatc: TBCSStat;
 
implementation
 
end.

With one dialog for collecting the class name and one dialog for selecting the target sub directory any Delphi class can be created.

A 32 bit executable program may be downloaded by clicking here.
A 64 bit executable program may be downloaded by clicking here.
The component documentation can be found by clicking here.
The source code may be found by clicking here.

Mr. Arch Brooks, Software Engineer, Brooks Computing Systems, LLC authored this article.

BCS Generate Yii View

Because Yii is one of the fastest and most reliable PHP frameworks I use it for many web based projects.  From time to time I was required to create a new view files for Yii.  I decided to use a Delphi application to generate the Yii view file.  Then I modified that code to generate multiple Yii Views based on values in a collection or list of strings.

When the Clone View option is selected the following dialog appears to collect the view name from the user.

gyv02

Once the name is supplied the the user is then prompted to select an output folder.

gyv03

Once the output folder is selected the user the view file is generated and the application is ready for the next view to be generated or to exit the application.

Output from our example may be reviewed below.

<?php
 
/* @var $this yii\web\View */
 
use yii\helpers\Html;
 
$this->title = 'About Test';
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="site-about">
    <h1><?= Html::encode($this->title) ?></h1>
 
    <p>
        This is the About Test page. You may modify the following file to customize its content:
    </p>
 
    <code><?= __FILE__ ?></code>
</div>

 

Notice the application removes all spaces from the page name and uses that page name as the file name.  The “.php” extension is also added to the file name for acceptable usage.

When I selected the Multiple Views Option the following dialog appears.

gyv04

Type in as many view names as desired.  For each view name listed a complete view will be created in the target sub directory.

Either click the x on the dialog or select the Exit option on the Primary Options Menu to terminate execution of dialog.  The next dialog will identify the output location or views folder for the new views.

gyv03

Should a view exist in the output location the following dialog will appear.

gyv05

Since that file exists no output is attempted.  This application will not overwrite views.  Processing will resume with the next item in the list.

If you are not a Delphi developer you can still use this tool by following these instructions.

Establish a directory structure “C:\dev\w32\2016\BCSGenView” (minus double quotes).  Next create a “skel” sub directory (minus double quotes).  The input file is listed below.  The file name should be “about.php” (minus double quotes).

<?php
 
/* @var $this yii\web\View */
 
use yii\helpers\Html;
 
$this->title = 'About';
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="site-about">
    <h1><?= Html::encode($this->title) ?></h1>
 
    <p>
        This is the About page. You may modify the following file to customize its content:
    </p>
 
    <code><?= __FILE__ ?></code>
</div>

Go back to the “C:\dev\w32\2016\BCSGenView” sub directory and create a “xqt” sub directory (minus double quotes) and place the downloaded executable 32 or 64 bit there.  Execute the program in the “xqt” sub directory and enjoy.

A 32 bit executable program may be downloaded by clicking here.
A 64 bit executable program may be downloaded by clicking here.
The component documentation can be found by clicking here.
The source code may be found by clicking here.

Mr. Arch Brooks, Software Engineer, Brooks Computing Systems, LLC authored this article.

BCS Input Memo Data

There are those time when it is necessary to input lines of information.  For those instances this tool fits that purpose perfectly.

The memo control may be populated by initializing the memoContent of the frm023_area record description.

ime01

After the dialog is displayed click the x or Exit menu item to terminate executions.  The memoContent of the frm023_area record will contain the memo’s contents.

A 32 bit executable program may be downloaded by clicking here.
A 64 bit executable program may be downloaded by clicking here.
The component documentation can be found by clicking here.
The source code may be found by clicking here.

Mr. Arch Brooks, Software Engineer, Brooks Computing Systems, LLC authored this article.