Meeting Recap for February 8, 2003


Visual MaxFrame Professional (VMP) - Mike Potjer

Mike showed us how to set up the shell of a new application with the use of the Application Setup Wizard, explaining the following stepsÖ

Step 1

Naming conventions

Step 2

Folder creation

Step 3

File locations

Step 4

Specify contents of development/app specific config file

Step 5

Specify n-tier services

Step 6

Review modify appinfo and appconfig free table contents


(Appinfo-settings user can change. Appconfig-settings you don't want the user to change)

Step 7

Create main menu & pjx project

Step 8

Select optional data elements and features they enable

Step 9

Specify VMP intermediate classes to be subclassed to appropriate counterparts (can also be created)

Step 10

Create desktop shortcut

Step 11


Output to the screen shows if each step was completed successfully. Once the app is created a project and *main.prg are created, all with heavily commented code. Application itself includes tools for modifying while running and other development tools and features. Mike showed us a few of these including - user/group administration, security settings, logged in info (history, current users) and locking non administrative users out of system (and warning them ahead of time by setting times and providing user messages).  Note from Mike:  I donít have a white paper for this, but anyone can go to, and download Tutorial 1, which is a 50 page document describing the application setup wizard in great detail.  I didnít think of that during the session.

Regular Meeting

Announcements:  VFP8 has been released

Thanks to Jan for providing the donuts.

SQL worm Ė if people applied SP3 the week before, all the problems would have been taken care of.

Presentation: Windows scripting & vb scripting

Mike has a white paper on the topic he will make available to everyone.

WShost is basically batch programming for windows. It is installed by default by the IE, except for the people who disable scripting. Therefore, you can pretty much guarantee people have what you need to run it. Norton will complain the first time a new script is run, so know who your customers are. Scripting Century will advise you something is going to run also.

If they have antivirus watching the data directory, your program/scripts may be slow because antivirus software is constantly monitoring updates to the directory. You may wish to turn antivirus checks on the data directory off.

MSDN, Ė they have the latest script host and documentation. MSDN -> products & technology -> Windows script.

Scripting consists of:

    1. Script host Ė tools that lets you run vb.script and jscript
    2. Comm objects to script components

The objects and properties are pretty well documented and not too difficult to translate into fox code.

Use Intellisense, define variable with the comm. Object name with the script object then when you instantiate it, it is a simple createobject.

You canít get dateCreated and DatelastAccess with fox functions, where if you have scripting itís all right there.

Itís not so much you canít get the stuff through fox and API, but that you can get it through properties in one place and they are fast.

Help file has version info. What version and language elements were installed when what was installed. If someone is using IE3, may not have some of the elements you want to get to. Therefore you need to know what versions of IE you clients will be running your scripting with.

You can read/write/delete registry keys easily with scripting.

Shell object does a shortcut object that makes it easier to do shortcuts.

When in vb script you can access wscript.sleep, in fox you can not access sleep directly in the foxpro environment. So you canít use the keyboard to interact with windows calculator you need script sendkeysÖ

Dictionary object Ė an empty collection. Has an add, exit, items

You can put whatever you want in the dictionary object. The disadvantage over vfp8 collections is you donít have subclassing and it isnít native. But it will give you in any version of fox without using access codes to gather and pass around. It is much smaller then creating a custom object to pass around.

Scripts, all you need is a text editor.

The script editor is nice for intellisense, etc. Script editor you canít download for free, but it is included with some of their products. MSE7.exe is the Msscript editor.

When you run a script, it will pop up a dialog if there is an error. Canít run the script inside the editor, but can save it and click explorer without shutting down the editor.

Application loader Ė George Tasker wrote one in VB. John Koziol wrote a fox version called genloader. It compares dates of the exe for the existence of a file in a particular folder. Nancy Folsom posted a genloaderII, which has updates. You need both of them to run genloaderII.

The thing you need to know about sendkeys is they just fire off and if the app isnít ready they disappear into a bit bucket abyss. %= alt ~ = enter

+ has a variable meaning in vb, the & is more specific it is just for concatenating strings.

Can use it for automated testing of your application.

Download for free Msscript encoder, screnc

What it will do:

Ď**start encode**

everything after this part needs to be encoded then you get a vbe file. If you can open that, everything above the marker is legible everything after it is jibberish.

Vb has pre-defined constants, and vb has some built into the syntax.

A constant has to be literal, where a define can be an expression.



The March meeting is scheduled for March 8, 2003.  Rick Schummer will again be joining us.  The topics Rick wants to talk about for the March meeting (and format for the meeting) will be:
10:00 - 11:15 - Creating and Using Real World Builders - Made Easy
11:15 - 11:30 - Break, questions
11:30 - 12:45 - Fishing with a ProjectHook
Comments or suggestions are welcome.


Cathy Pountney - GRAFUG Secretary

Return to Archives page