Tip Bank

DevX - Software Development Resource

Wild card searching using DataWindow

Question: I tried to place wild-card (e.g. ‘%Ken%’) for the searching of records in a DataWindow through QueryMode, but couldn’t get the result. Are there any other ways to do

DevX - Software Development Resource

DOS Graphics vs. Windows

Question: Is there a header file in Visual C++ v4 (sorry a bit behind :)) that replaces the old graph.h? I am writing console apps for school and would like

DevX - Software Development Resource

Autolaunch library PB configuration

Question: When I open PowerBuilder, I want it to open showing the library painter by default. I tried modifying the Target in the Propeties for the PowerBuilder icon by adding

DevX - Software Development Resource

Out of Memory errors in Delphi 2.0

Question: I am working on my first Delphi 2.0 application which has grown to be quite large over the past few months. The problem is that lately I have been

DevX - Software Development Resource

PowerBuilder dynamic menus

Question: We want to create menus dynamically where we store the menu items in a table. While running the application, we want to read the values from the table and

DevX - Software Development Resource

Variable-length data in structs

Question: Can I have variable length fields in a structure. I have tried something like: typedef struct { int length; char data[length];}; but that won’t compile. Is there a way,

DevX - Software Development Resource

List of keys in a .ini section

Question: Is there a Windows function or some quick wayget a list of the keys in an .ini file, such as: [Section]Key1=xxxKey2=yyyKey3=mmmKey4=ppp I want this: ‘Key1’, ‘Key2’, ‘Key3’, ‘Key4’ Answer:

DevX - Software Development Resource

Viewing Text File

Question: How can I view and print a text file in PB5-16? I don’t need to edit. Answer: Use the FileOpen, FileRead and FileClose commands to read you text file.

DevX - Software Development Resource

Virtual Functions and Polymorphism

Question: Say you have three classes, a base (called Base),and two classes derived from it (called Derv1 andDerv2). Base has a pure virtual function (called TypeGet()) that is defined in