Tip Bank

DevX - Software Development Resource

Determining the OS using API

Question: Is it possible to use API to determine the OS of a system without resorting to SysInfo control? Answer: Sure. Just call the GetVersionEx API. Add the following to

DevX - Software Development Resource

Debugger breakpoint mismatch

Question: We have installed Powerbuilder 6.0.0. and have migrated applications. The application is working OK, but I am having a problem with the debugger. When I put a “break point”

DevX - Software Development Resource

Converting long to two integers

Question: How do you convert a long integer to two integer values (that is, get the low word and high word contained in a long integer)?Danial Appleman’s API Guide discusses

DevX - Software Development Resource

Record date/time when updating record

Question: I’m using PB6.0 with Sybase SQL Anywhere 5.0. I would like to be able to record the date and time in my table(s) whenever a user updates or adds

DevX - Software Development Resource

Determining time zone setting

Question: How can I find the Active Time Zone offset from UTC that the computer clock is set to? This value changes when going from Standard to Daylight Savings Time.

DevX - Software Development Resource

Controlling other programs

Question: How can I make a program that controls other programs? For example, I’ve seen programs that can change the text in a text box of another program. Answer: Sounds

DevX - Software Development Resource

DPB and DCOM with Active Server Pages

Question: What threading model does DPB use? Apartment? I’d like to use PB to create MTS components for an Active Server Pages project. Do you foresee any problems? Any advice?

DevX - Software Development Resource

PB 16-bit or 32-bit under PB4

Question: I have PB 4.0 installed under Windows NT. How do I tell if it is 16-bit or 32-bit PB? Answer: You can check the environment object for an ostype