Tip Bank

DevX - Software Development Resource

Combining Text Fields

Question: How do I combine multiple text fields into a single field? For example, combining someone’s first, middle, and last name into a field called “full name”. I’ve done a

DevX - Software Development Resource

Maximizing the Browse Window

Question: When I use the BROWSE command it always displays the results in a normal window. Is there a command to maximize the browse window in the program? Answer: The

DevX - Software Development Resource

Using ORDER BY Based on a Parameter

Question: I want to construct an SQL query or stored procedure that will order its result set based on a query parameter. Something like: SELECT *FROM customersORDER BY ? Unfortunately,

DevX - Software Development Resource

Convert Text to Proper Case

Question: I am using SQL Server 7 and would like to convert an uppercase string to proper case. Is there an easy way to do it? Answer: SQL Server has

DevX - Software Development Resource

Creating an Executable File from a Project

Question: I copied my executable file and the VFP6R.DLL, VFPRENU.DLL, FOXUSER.DBF and FOXUSER.FPT files to my user’s PC. When I try to run it, the screen form flashes and the

DevX - Software Development Resource

Disabling Items in a Listbox

Question: I have a listbox with two properties called DisabledItemBackcolor and Forecolor. How can I disable single items in the listbox? List.Enabled(ItemID)=.F. disables all items (like the Enabled-Property itself). You

DevX - Software Development Resource

WAP Gateway and WML Documents

Question: Do I necessarily need a WAP gateway in order to view WML documents that reside on my Web server, or what is the WAP gateway for? Answer: You don’t

DevX - Software Development Resource

xp_cmdshell and Windows Apps

Question: Why can’t I run an application like ws-ftp from SQL with xp_xmdshell? ws-ftp will start, but it’s not visible on the screen. Answer: xp_cmdshell runs in the space of

DevX - Software Development Resource

Temporary Table Creation

Question: What is the advantage of creating temporary tables? Answer: SQL query optimizers, while usually very efficient and accurate, sometimes refuse to evaluate a query in the most efficient manner.