Retriever for B4J

B4J Retriever is a small utility program that allows the user to search any of their B4J source files. It will search for .b4j and .bas files in the Search Folder that is seleced or entered in the Search Folder combobox.

The text that is searched for is entered into the Search for edit box. Any text whether it be Keywords or other words like API and so on. Any found Files are listed in the List of Files Found Listbox.

Setup for Retriever

SETUP for the B4J.exe

Select the Setup Menu Option and navigate to the location of a B4J installation.

Normally the location would be: C:\Program Files (x86)\Anywhere Software\B4J\B4J.exe

Look for the B4J folder and then select the B4J.exe file as shown below.

Select B4J.exe. Click the Open button. This is the B4J.exe program that will be used from the Retriever program to display .b4j files that were found in the Search operation.

If the file found had an extension of .bas then the MS WordPad.exe program opens the file.

Search Folders

Manage Search Folder List

Select the Search Folders Menu Option.

This will open a Search Folder Creator window where the Folders are managed.

ADD FOLDER

A Search Folder can be typed into the Search Folder edit box or you can use the Browse button to locate the folders where there are B4J files.

Click the Browse Button. A Browse for Folder Dialog is displayed as shown below.

Navigate through the Folder Lists to locate the Folder that you want Retriever to be able to search in for the .b4j and .bas files.

Select Folder and click the OK button.

The Folder path is placed into the Search Folder edit box.

Click the Add Folder Button and the folder and its path are added to the Search Folder List.

DELETE FOLDER

Select the Folder in the Search Folder List to be deleted and then click the Delete Folder button.

Keywords

Manage Keywords List

Select the Keywords Menu Option.

A Manage Keywords List window is displayed where Keywords can be Added or Deleted.

ADDING KEYWORDS

1. Enter a Keyword in the New Keyword Edit box.

2. Click the Add New Keyword button.

The added Keyword is then displayed in the Keywords List.

DELETING A KEYWORD

1. Select the Keyword to delete in the Keywords list.

2. Click the Delete Selected Keyword button.

Using Retriever

1. First time using Retriever do the Setup Menu Option. This allows Retriever to open selected files with the B4J.exe and MS WordPad.exe.
2. Use the Search Folders Menu Option to create a List of Folders where you have B4J files.
3. Use the Keywords List to Add any Keywords you may wish to have in the Keywords List.
4. The Retriever program is now ready to use.

Entering Keywords

ENTERING KEYWORDS OR OTHER WORDS TO SEARCH FOR

There are several ways to enter words to search for:

1. Type the Keyword or word into the Search for edit box. You will notice that the Keywords Listbox will choose the closest Keyword to what is being typed into the edit box.
2. After typing in a Keyword partially and seeing the Keyword you are looking for appear in the Keyword Listbox you can click the Keyword in the Keyword Listbox and it will be entered into the Search for edit box.
3. Alternatively you can look through the Keyword Listbox to find a Keyword and click it. It is then added to the Search for edit box.
4. Or double click a Keyword in the Keyword Listbox. This will put the Keyword into the Search for edit box and also activate the Begin Search button and will search through the Selected Folder List, shown in the Search Folder combobox.

Begin Search

Click the Begin Search button and the Retriever program begins the search for the Search for text in the Folder displayed in the Search Folder combobox.

The files found that contain the Search for text are displayed in the List of Files Found Listbox. In the Status Bar is displayed the number of files found in the search.

View Files Found

Select the file to View in the List of Files Found Listbox.

The View button and the B4J button are now both enabled and ready for use.

The complete path of the selected file is displayed in the Status Bar.

To View this file click the View button. Alternatively you can double click the file and the View window will be displayed.

VIEW WINDOW DISPLAYED

The View Window is sizeable and scrollable. The number at the beginning of each line indicates the line number in the source code file.

Text in the View window can be selected and with right-click of the mouse button the context menu enables you to copy the selected text to the clipboard. Ready to paste in your own code if desired.

TIP

Once the View window is opened you can double click any of the other files in the List of Files Found Listbox and they will display in the View window.

Opening a File in B4J and MB WordPad

Click the B4J button and the B4j.exe program is started and loads the selected file. In this case it is DutchPro.b4j.

Scrolling down in the editor, look for the text searched for "TEXTFIELD" which can be seen on lines 15 to 24 and 247.

The line numbers from the View Window are not exact when viewing a .bas file in MS WordPad.exe.