|
|
This Page Updated: 3/17/2004 |
|
This is the page I put any tips about programming that I come across. If you want to see what languages I program in, check my resume. The bulk of my current work at my place of business is done in ASP.
Here's a subject you ought to look at: "The Invisible Web"
ColdFusion Tips: Have you ever had your CF program throw you this error?....
Dont bother looking at Line 497; ColdFusion is BSing you, and it really doesn't know where the problem is.
However WE do... Look for an HTML or ColdFusion tag that you forgot to close on the few lines preceding that line.
The instructor was John Miller, a very knowledgable programmer-type indeed. He provided lots of little shortcuts and insights into the bowels of the language.
Specific Programming TipsHow to find out the title bar text of the Active Window: FUNCTION ActWinText DECLARE Integer GetForegroundWindow in win32api DECLARE Integer GetWindowTextLength IN WIN32API Integer nWnd DECLARE Integer GetWindowText IN WIN32API Integer nhWnd, String @cString, Integer nMaxCount hforewnd = GetForegroundWindow() && determine the foreground window slength = GetWindowTextLength(hforewnd) + 1 && length of its title bar text wintext = REPLICATE( CHR(0), slength ) && make room in the buffer to receive the text retval = GetWindowText(hforewnd, @wintext, slength) && get title bar text wintext = Left(wintext, slength - 1) && remove null character from end of string RETURN wintext How to insert a combo box into a grid control: Microsoft's Method (lacks details) My Method - derived from http://www.iinet.net.au/foxpro/_foxy15.html Q. How do I replace the default textbox in a grid with a different class?
If you place the combo box on the form first, you can use the builder to set the combo box up.
Then you can mark it, do an EDIT / COPY, and paste that already set-up combo box INTO the
grid using SHIFT INSERT, in place of step 4 above (it DOES work, trust me...
Clipper ResourcesI've been developing in Clipper since 1990, at Paradyne Corporation. You can look at my resume to see what I've done in the past, but I actually do very little work in Clipper now, since my efforts have been focussed on Visual FoxPro and ColdFusion applications. Specific Programming Tips
|