
NT Registry Query
Question: What is the best browser-based way to read values from the Registry? Can JavaScript do it? Answer: There is no easy way to read the Registry on a user’s

Question: What is the best browser-based way to read values from the Registry? Can JavaScript do it? Answer: There is no easy way to read the Registry on a user’s

Question: Is there a way for me to check if a file exists before writing to the file using Java? Answer: You can determine if a file exists by calling

Question: Does java have dynamic_cast? If so, how is itused? Answer: All class casts of nonprimitive types in Java are dynamic and performed at runtime.In C++ the dynamic_cast operator will

Question: I need help to calculate the number of days between two dates. This may seem like a trivial question, but for the life of me, I cannot find away

Question: How do I go about using exponents in Java? For example, how would I do 6 to the power of 3? Answer: You want to look at the documentation

Question: I’m having trouble reshaping a frame to the size of a loaded image. I start out by saying: int fx = image.getWidth(this); int fy = image.getHeight(this);then I try to

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”

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

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

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

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. Related Posts Scaling Your Project with

Question: I am attempting to add a picture of a form to a Word file. How can I do this? Answer: The simplest method, most often overlooked, is to run

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

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

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.

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

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

Question: Given: Dim oX as Object Set oX = optChoice1 If TypeOf oX is CheckBox Then… If optChoice1 is a CheckBox the If… will be true unless optChoice1 is an

Question: I made a project that resides in a subdirectory under Microsoft Visual Basic 4. Example: C:/Program Files/Microsoft Visual Basic// When I run the program, I want it to get

Question: I inserted a new row in a table with Identity column, and saved it by calling update function. Then I immediatly tried to modify this record and update again.

Question: How can I make a PB application as a service on Windows NT? I have an application that has no interaction with users, and I want to run it

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?

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

Question: When a user wants to find help on a column that has focus, I want that user to be able to hit F1, and help to be displayed based

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

Question: How can Powerbuilder do a Setprofilestring to a file that does not have a header and does not need one? Answer: You will need to check if the files

If you need an object serving only as a function argument, you can use an explicit constructor call to instantiate a nameless object rather than a named one: void putPixel(const

Ownership in its OO sense relates to the responsibility for the creation and the destruction of an object. An object (in its broader sense) is an owner of some other

Typedefs can be used to enhance portability by hiding the underlying type of an more abstract entity. For instance, when maximal precision of a floating point is required, one type

C++ still supports C-style type casting in the form of ‘(T) e’ as in: int i = (int) 7.333; Nonetheless, this casting notation is not recommended. What is amiss with