- One problem, one weekend, eight languages
- How to retrive Outlook default signature
- How to completely uninstall VFP 9.0
- Retrieving VFP runtime DLL name required by EXE or DLL
- Send email via MSN email account
- Send email via Yahoo mail account
- Remove Structural CDX or Memo flag from a table
- Deleting pages from PDF file through Acrobat automation
- GDIPLUS.DLL security updates for VFP 8.0 and VFP 9.0
- Powershell - Benchmark Command
I have been programming in C for quite some time, but until recently I was not aware that you could specify column widths and string limits using variables. I have neither seen this functionality used in any projects until I started working with OpenSER.
Specify a variable column width:
printf("%*d", width, number);
Specify a variable number of characters from a string:
printf("%.*s", width, string);
The ufn_Proper() UDF for SQL Server is similar to the VFP Proper() function. It additionally allows to specify a set of delimiters.
IF EXISTS (SELECT * FROM sysobjects WHERE name = N'ufn_Proper')
DROP FUNCTION ufn_Proper
The ufn_StrExtract() UDF for SQL Server is similar to the VFP StrExtract() function.
-- ufn_StrExtract ---
IF EXISTS (SELECT * FROM sysobjects WHERE name = N'ufn_StrExtract')
DROP FUNCTION ufn_StrExtract
CREATE FUNCTION ufn_StrExtract (
The ufn_Alines() UDF for SQL Server is similar to the VFP Alines() function but w/o additional parameters.