devxlogo

February 2, 1998

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.

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

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

Aborting a Loop

Question: Is there any way to abort a loop with just pressing a kee. Like you could do in Pascal: dountil keypress Answer: If you are writing a loop that

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

Mouse Support Under DOS

Question: In what direction should I look to find a way tobuild a simple dos aplication with mouse control. Answer: Building a DOS application that provides mouse support involves writing

Endless Loop

Question: I am having a problem with getting an infinite loop out of a particular program and I am not quite sure where the problem is at. If you could

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

Accessing I/O Memory under Win32

Question: I would like to program the parallel port in Windows NT or 95. What should I do? Answer: At the simplest level, accessing the parallel port involves reading and