Tip Bank

DevX - Software Development Resource

Unload Forms

This will unload all forms in memory before the calling form is unloaded. Not only does this unload each form, it also fires each form’s unload event, allowing for a

DevX - Software Development Resource

Registering Custom Interfaces

When the object exposes the custom interfaces via standard marshalling, the proxystub DLL is required for marshalling data across the threadprocessescomputer boundaries.The interfaces are specified in an IDL file that

DevX - Software Development Resource

Convert an Input String Into a Proper String

If you want to convert the input string into a proper string usingjavascript, this is a simple function that will perform the task: String.prototype.ProperCase = function() { return this.substr(0,1) .toUpperCase()

DevX - Software Development Resource

Basic Event Logging

Any production application should include event logging for troubleshooting and auditing purposes. This code can be placed in any module and called whenever you have an error or event that

DevX - Software Development Resource

Changing the Environment Inside a Program

Question: How do I change the environment inside a program (filename.4gl)? Example: setenv TBCONFIG $tbconfig.01 Answer: I don’t think you can do it. If you’re running a 4gl program, you

DevX - Software Development Resource

Maximum Number of Columns Allowed

Question: What is the maximum number of columns allowed in an Informix table? Answer: For Informix 7.3X, the maximum number of columns in a table is 2,767.

DevX - Software Development Resource

NetUserGetInfo – API Call

Question: I am using “NetUserGetInfo” API call to get the NT user profile. I use: typedef struct _USER_INFO_3 How can I parse the “usri3_flags” member in detail? Answer: Use this:

DevX - Software Development Resource

GetPrimaryDCName

Question: I’m trying to get the PDC name for a domain on my network using the following code. It works fine within the VB IDE, but the moment I compile