Visual FoxPro – Tips & Tricks
In this section of my VFP Blog I am writing about cool code fragments and “good 2 know” things.
| Table of Content |
Dynamic Declarations and Value AssignmentsPrimarily, I only wanted to write about the bad habit of using VFP's Macro Substitutions over and over again instead of utilizing faster native commands. But in this context, there still is more to talk about. Thus, this is a general blog post dealing with any kind of native optimization, where 'native' means replacing a slow VFP command with another, faster one. Preprocessor and Compile-Time HandlingDo you think the way you manage your nested include files is the perfect one? Do you believe that VFP cannot replace constant definitions in strings, and that two defined constants with the same name but different values must always clash? Then this article may be worth reading! Write Protect Your PropertiesSometimes you want some of your properties being read-only. There are several ways to do that in VFP. All have their pros and cons. This article describes my way of doing it and how I got there. Cool VFP Event BindingYou know all about VFP’s native event binding, do you? Hierarchical Table Order (on one column only!)This is my entry posting: Hierarchical indexing/sorting VFP table data on one column only using plain-vanilla CDX-indexing, is one of my “secrets“ I like to share with you. Meanwhile, I’m using that kind of indexing in many places, as in my native VFP TreeView, for instance. LOADPICTURE() Function - Some Myths RevealedVFP’s LOADPICTURE() creates a COM picture object and returns a fancy interface reference. Lately, I contributed some content for the VFPX help file project (you might guess it, talking about VFP’s LoadPicture() function). VFP’s offline help pages are not the right place to write epic stories;-) Thus, you can read the whole thing here! Design Time References (Monitor Designer Changes) | |
Many VFP-developers who are going to code some cool tools that work with a Form- or a Class-Designer session are faced with a common problem: How to monitor the existence of that designer session? | |
| |
I like to work with VFPX tools like the PEM Editor. This morning I downloaded the latest version 4.10 (August 16, 2009). The update fixes some minor bugs and adds some new functionality. Among other things, the update promises to fix a bug that occurred when working with VFP FORMSETs. Well, it kept it’s promise … almost :-) | |
| |
While developing your classes you frequently want to test them on the fly. In such scenarios the VFP Class Browser comes in handy. You can instantiate your work in progress from there by simply drag & drop the classes you want to test to VFP's desktop (of course they have to be GUI-classes). | |
| |
Since VFP 7.0 we’ve got native VFP language support to convert any kind of binary data into ASCII byte streams back and forth. One of the many cool things we can do using this feature is encoding binary image data to be stored inside HTML pages and/or XML tags. The encoding is called „Encoded Base64 Binary“. |