devxlogo

We are an award-winning tech entrepreneurship website where trusted experts can provide value globally.

Since 1998, DevX has helped people start businesses, build websites, and provide enterprise technology to people globally. Interviewing the likes of Microsoft’s co-founder, Steve Ballmer, the publication brings comprehensive, reliable, and accessible insights to the Internet.

devxlogo

Trusted for 26 years

Over 30K Articles

1M+ Readers

Expert-reviewed

10K+ Tech Terms

As seen in:

microsoft logo
business_insider_logo
wired_logo
berkley
arstechnica_logo
hackernoon

The Latest

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

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

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:

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

How to Learn C++

Question: What is the best way to learn c++?I can study on line, by book or attend a course.Which are the bests places to start. Answer: The answer really depends

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

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

External function for checking a process

Question: Our Powerbuilder application launches an external program using the RUN command. We use the Timer Event to keep checkingif the process is running by using theKERNAL32 external function GetModuleHandleA.

Compressed file types

Question: I recently downloaded some applet source code, but they are all stored in “.tar” type files. What program do I need to expand them or otherwise make them useful?

Time formatting

Question: I need to find 2 things. I need a classthat will allow me to take a date and addand subtract days/months/years from it. I also need a class that

String to int

Question: I’m a new Java developer and was wondering if there is an easy way to grab information from a String object and place it into an “int”. For example:

Applet caching.

Question: I have been trying to test my applets under IE4.It seems to me that IE4 must keep applets cachedbecaused I think it keeps running my original applet.Is there a

Is there a PB code profiling utility?

Question: I was wondering whether you could direct me the appropriate product or contact for the following information.I am currently investigating the use of supporting test tools for PowerBuilder. In

Solving problems with Distributed PB Apps

Question: I had some problems with distributed applications. I developed a DPB project (both the server and the client). The server has a NVO that connects to a database and

Share Data from two primaries

Question: If I try to share data from one primary into the secondary, no problem. The problem occurs when I try to share data from two primaries into one secondary.

Changing Password in Oracle 7.3 database from PB

Question: I am creating a “Change Password” screen in PowerBuilder 5.0. The window basically accepts the password entered by the user, verifies it by connecting to the database, then tries

Bitmap size in PB toolbar

Question: How can I use a bitmap of 32X32 size for my toolbar icons? Does PB5.0 support this or is it necessary to shrink them to 16X16. Answer: The bitmap

Web Browser using VB 5

Question: I am currently writing software that will act as client and server software for a small ISP. I waswondering if there is any way to view web pagesusing Visual

Browsing with Netscape

Question: I need a way to find the “netscape.exe” file using VB. Then I want to send them to an Internet address using API. Answer: What if Netscape isn’t installed?

List boxes

Question: How can I put the output of a do-while loop in a list box then delete it for the next run?ex.o=0do (o=o+1)Randomize timerx=rnd( * 6)+1z=x*4Print z to loop Answer:

CD-ROM Detection

Question: How can I find the CD-Rom drive letter(s) from Visual Basic 5.0? Answer: The simplest method is to call the Win32 GetDriveType API against drives C:-Z:.Private Declare Function GetDriveType

removing the sheet toolbars

Question: I am using PB 5.0. I have an MDI application. There is a menu on the MDI frame. I inherited that menu to create a window menu. The window

PowerBuilder source recovery

Question: I have a client with a PowerBuilder application, but no source code. Is there a way to reverse-engineer or recover the source code?? Answer: It is not possible to

Year 2000

Question: Do you have any information on Year 2000 compliance effort for VB4 / VB5 systems? Answer: Visual Basic itself is and has been year 2000 compliant. The built-in Date