devxlogo

Tip Bank

Activate Your Applets

Did you ever feel the urge to use a nice Java class you just wrote as an ActiveX object on your Windows machine? Good news: you can do it in

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

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

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

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,

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:

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.

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

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