Tip Bank

DevX - Software Development Resource

Application Start Directory

Question: My application is started by clicking an icon with a TARGET of “\itgcssd1sgrsv3.0132sgrs.exe” and a START IN directory of “c:winnt”. Is there any way to determine the TARGET location

DevX - Software Development Resource

Powerscript – Mouse

Question: How do you get the position of the mouse pointer (x- and y-cordinates) in a script? Answer: Use the PointerX() and PointerY() functions.

DevX - Software Development Resource

Find if directory exists

Question: We would like to find out if a directory that was typed exists. Furthermore, we prefer not to use a list box control or getFileOpenName. Answer: To do this

DevX - Software Development Resource

Asking a proper question

Question: I have tried using the “shell” statement in VBA to load and run an existing .exe file. The file seems to load but does not run. (I have used

DevX - Software Development Resource

Highlighting a row a different color

Question: Using PFC, when I select a row, it turns dark blue, often obscuring the data. Is there a way to change the color to something lighter? Answer: The way

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

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

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

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.