![]() |
|
Published 1998-09-01 Printer-friendly version
First up this month, a reminder that you can now download Clarion Online in Adobe Acrobat PDF format. Yup, that means you can now read the magazine from the comfort of your local hard drive, all formatted up for easy printing.
Note: If you haven't tried downloading yet, you should be aware that it is a two step process. What you download here at the magazine is actually a small loader program for the Internet file distribution service (called GIGEX) which Clarion Online uses. Once you have downloaded that, you run the loader and it will take care of logging into GIGEX and retrieving the actual PDF file.
Now that you have the PDF file, you'll need the Adobe Acrobat Reader to read it. If you don't have the Acrobat reader already installed on your machine, you'll find it in the \ADOBE directory on any TopSpeed Clarion CD (CW2, C4, C5EE, etc.) or at http://www.adobe.com. Note that you most likely have it installed already, since Clarion4 (and 2) provide a number of manuals only in PDF format.
Finally, Eric Jacobowitz sent in a recommendation for a program named "ClickBook", a nifty utility for printing booklets, brochures, address books, etc. Using it, you can easily print Clarion Online front to back (i.e., both sides of the page) with ring binder margins, etc., ready to file and read anywhere. And since ClickBook works with virtually any Windows program, it can be used for a lot more than just printing Clarion Online. If you are interested, visit their web site at http://www.bluesquirrel.com.
Well, the TopSpeed C5 Enterprise Edition Roadshow finally arrived in my hometown a few days ago, so I took that opportunity to get some more info on what is happening with C5. Interesting tidbits revealed there included:
For all the bells and whistles surrounding C5, though, one of the things I was most impressed with was the effort the TopSpeed is expending to make the basic AppGen environment more streamlined and logical. Embed trees, the window formatter, the list box formatter, and many other areas where we end up spending a lot of our time are being radically improved compared to the older versions, most of which haven't really changed since CW 1. Kudos to them for paying attention to those small (but time sucking) details.
Late note: Many more dates and locations have been added for the Roadshow. Please check at http://www.topspeed.com for more details.
And now, my personal favorite bit of news from the show:
Antonio announced that a few days prior to the August 27th Roadshow, TopSpeed worked out an arrangement to bundle WISE Solutions' wonderful Windows Installation System with C5EE. Yes, kids, that means the TopSpeed Deployment Kit (TDK) is out and WISE is in! A great move on TopSpeed's part, in my opinion, since the TDK simply wasn't a very strong product. I'd much rather see them partner with a market leader and keep their own resources focused on their core products. A win-win situation for everybody.
On the same subject, the post Beta-2 version of C5EE demonstrated by Russ Eggen already had options built in to generate WISE scripts for an application. Kewl!
While at the C5EE show, I took the plunge and got the upgrade, figuring I might as well take advantage of a we-don't-charge-your-credit-card-until-it-ships offer which was available only at the show. Gonna happen sooner or later anyway...
So, home I run clutching my new C5EE Beta-2 disc in my hot little hands. The Enterprise install went pretty smoothly (whoops - there went another 70 megs!)... until I tried to run C5.
Up pops the name, company and serial number box. Hmmm. No serial numbers on the disk or envelope. Well, ok, during TopSpeed betas in the past, you just entered the serial from your prior released version (C4, in this case). Fine. Fire up C4, get the serial number, go back to C5, fire it up, enter the serial and *voila* -- an invalid serial number error. Huh? Try again typing very carefully, same result.. ("Ready the phasers, Mr.Sulu"). How about my CW 2 number, I think. Fire that up, get the number, run C5, etc. and - invalid serial. ("Arm the photon torpedoes, Mr. Checkov!"). Good thing Antonio and Russ had already left town (for them, at least).
One thing I had noticed, though, was that my CW 2 serials had 3 letters in addition to the serial number. Tried it with various combinations of numbers, etc. - same result. ("I can't hold her for much longer Captain, she's going to blow!") Finally, I got the inspiration to look in the Clarion4 INI file (where serials are kept) and *gasp!*, there was the number displayed by C4 -- along with an additional three letters which C4 doesn't display anywhere. Tried that and *tada* -- it finally worked. ("Dammit, Jim, I'm a programmer, not a cryptographer!", he mutters)
Moral of the story: Either have your C4 registration card handy or go look in Clarion4.INI for your real serial number. The displayed number won't work.
Antonio made a big point at the Roadshow that the EE Team Developer was also a Software Version Control System - a very useful tool even for developers who work alone. So, moving along, I go back to the CD to install the Version Control System. Chose that option on setup and... "Could not create destination file \setup.ins. Error number 13" followed by another error and no install. Well, of course it can't create the file on the dang CD-ROM. Who designed this install? A Tribble? ("Head for the Jefferies tubes - Core breach in progress!").
Right. Copy the setup file from the CD to a hard drive. Run it. Hey, it seems to be doing ok until it gets to this screen where you specify a network directory for a Team PVCS file (I'm installing on a non-networked PC). Yipes - it defaulted to ":\PVCS" (no drive letter). Press 'Browse' to change it to something else. And wait. And wait. Yup. Setup is locked up. ("Fire all weapons!")
Use the three fingered salute to blast Setup out of memory. Try again, but I'm not going to press 'Browse', no sirree! Just press 'Next' on that screen and... "There is not enough space on drive :\PVCS. Please free up some space or change the Target location" Meaning, of course, go press the Browse button so that you can lock up your machine again. Can you say "Run screaming in circles and bang your head against the wall"?
I finally had to hack into the installation files with a binary editor and manually change the default string ":\PVCS" in SETUP.INS to "E:\VCS". Re-running the install with the modified file, I got a warning that E: wasn't a network drive (which it isn't), but the install finally worked. Sheesh! As a public service, if anyone with EE (and no network) wants a modified setup file, drop me a line (TomH@ClarionOnline.com) and I'll send a file and instructions on how to use it.
Moral of this part of the story: Have a network, write me or don't bother trying to install the Team Developer/Version Control System from Beta-2.
You know, I'm beginning to wonder if they call it the Enterprise Edition just because you have to be so enterprising to get the dang thing installed!
Ok, on to more pleasant topics!
Let's say you want to force input for a Field using PROP:Touched. To do that, you would do the following (substituting the field equate for your field for ?MyField):
In EVENT:Selected for the Field you want to force an Accept with you'd put
?MyField{PROP:Touched}=True
In the EVENT:Accepted for the Field you do something like
IF MyField=''
Message('Cannot be blank')
?MyField{PROP:Touched}=True
SELECT(?MyField)
CYCLE
END
Problem is, now the user can't press Cancel without having to enter a valid value first (note: users just love that). Carl's tip to get around that is:.
On the Cancel button add:ALRT(MouseLeft)
In the EVENT:AlertKey for ?Cancel add: POST(EVENT:Accepted,?Cancel)
That's it. He tested it in CW2 and C5EE Beta 4 (dang Team TopSpeed member) and says it works perfectly.
Hmmm. I beginning to wonder if the 'T' in Carl's name stands for TipMeister!
Just a reminder to be careful when using string slicing, especially if you are using variables to set the ranges. Remember, slicing is fast because the compiler does no checking at all - it just does exactly what you tell it to do.
What brings this up? I've seen a few recent postings where people were getting weird program behavior and GPF's. They ended up being caused by errant input data which created situations where:
Just be sure to always check your ranges before slicing. On the same subject, I'll often use a construct like "SomeString = MyString[var : size(MyString)]" whenever I want to grab from some point in a string to the end. By using the SIZE function, my range will always be correct, even if I later change my field or variable sizes.
Here are some tidbits and announcements gleaned from the TopSpeed forum and elsewhere over the last couple of weeks. If you see any products here which you would like to see scheduled for a full review in Clarion Online, let us know!
One of the really nice things about using Clarion is the overall generosity of the user community. (Go ahead, all of you give yourselves a pat on the back!) Often, this manifests itself in truly useful templates or tools which the authors have made available to the rest of us for that most favorite of prices: FREE! Each month, this column features a handy free template or tool which you might want to add to your bag of Clarion tricks.
Note: If you decide to download and try out any free items mentioned here, please remember that you get what you pay for - don't expect support from the author like you would from a commercial product. While most of them are generous to a fault (as witnessed by their giving away the template), they are NOT obligated in any way, shape or form to you because you want to use the template. Be nice to them!
This month's jewel (or tool) is:
Frank Piscopo's Report Writer Interface Templates
Ever tried to integrate CW Report Writer reports into your applications? Quite a pain, isn't it? Frank Piscopo has come to the rescue with a template and library which really automates the entire process.
Here's how he describes them:
"All you have to do is to include the extension template RWINT4.TPL in your FRAME procedure; the rest is done for you automatically. When you run the APP, a new menu 'RW Reports' is added to your frame menubar. From then on, you can select the 'Settings' option, and configure the system to your heart's content."
"When the user runs any of the reports which are configured to appear on the menu, the user is prompted by a wizard-like interface to enter the values for any runtime variables defined in the .TXR file. When the user gets to the last prompt, the report is run using the Report Writer Runtime Print engine CWPRINT.EXE."
A fairly comprehensive readme file details how to install and use the template, as well as providing a bit of background information on how it all works. Versions are available for both CW 2 and C4, and they can be downloaded from Steve Parker'shttp://www.par2.com web site. The file is approximately 1 meg in size.
Note: You will need a ZIP compatible program to extract the template installation program and its instructions. Also, like any template, don't forget to register it.
Next month: Who knows? You'll just have to come back and find out!
Each month, this column will provide you with the latest in Clarion news, tips, rumors, freebies and basically anything else that seems interesting about the going's on in the Clarion world.
So, who determines what's most interesting? YOU DO!!
Are you a vendor? Let me know about new releases, updates, betas, product plans or anything else you think Clarion Online readers might want to know about.
Are you a user (and who isn't)? Drop me a line about any cool nuggets of information you come across, free templates or examples worth sharing, or anything else that other readers might find useful.
What do you get for contributing? Well, you'll see your name up in lights (phosphor, to be accurate) here in the Bit-vine credits. For especially useful bits, you may even win an autographed GIF of an official Clarion Online shirt or other similarly valuable prize. Come on, how can you resist?
Let me hear from you! The magic address isTomH@ClarionOnline.com
Everything in this column is the sole opinion of me, the author, and does not necessarily reflect the views of this magazine, its publisher, or even of myself (hey, I can change my mind, too!). Don't bet the farm on anything you read here: consider it a starting point for your own inquiries and research. The point here is that this column is intended to both enlighten and entertain, and that in the fast-moving world of software development this month's truth (or product release date) is often next month's "oops, did I say that...?".
'Nuff said!
Copyright © 1999-2008 by CoveComm Inc. All Rights Reserved. Reproduction in any form without the express written consent of CoveComm Inc., except as described in the subscription agreement, is prohibited.
Clarion Magazine ISSN 1718-9942
One year: $189
(includes all back issues since '99)
Renewals from $139
Two years: $289
Renewals from $239