VFPX Projects HomeMiscellaneous HomeWindows API HomeNews HomeBasics HomeTips&Tricks HomeToolbox HomeComplex Controls HomeNeat Solutions HomeFoxtools HomeFoxQuill Home


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

Table of Content


Dynamic Declarations and Value Assignments

Dynamic Declarations and Value Assignments

Primarily, 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 Handling

Preprocessor and Compile-Time Handling

Do 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 Properties

Write Protection for Properties

Sometimes 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 Binding

Cool VFP Event Binding

You know all about VFP’s native event binding, do you?
Do you know about the event binding related errors in VFP’s help file?
How do you protect your events against unsolicited binding?
Did you ever bound to scalar and non-scalar properties, wondering about the odd differences?
Did you ever raised events on properties using a multi-parameter signature?


Hierarchical Table Order (on one column only!)

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 Revealed

LOADPICTURE() Function - Some Myths Revealed

VFP’s LOADPICTURE() creates a COM picture object and returns a fancy interface reference. Lately, I contributed some content  for the OffSiteLink 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)

Design Time References (Part II)

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?


Design Time References (Outermost Container)

Design Time References (Part I)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 :-)


Easily Remove Objects After Debugging

Remove Object after Debugging 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).


Encode Your Images "Base64 Binary"

Encode Images Base64 Binary 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“.