
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.
Question: How can I dynamically add or delete entries from a list box, popuplist or combo box? Answer: List boxes, popup lists and combo boxes all use the Translationproperty. The
Question: How do I send e-mail from Java? Do I have to open a socket to a specific port on my server (and if so, which port and what should
Question: I have a cancel pushbutton with the IsDismissBtn property set toTrue. When I first created the form, the push button dismissed theform. I added some code to prompt the
Question: I’m writing an MDI application that has two documents. One of the documents has multiple views, which are implemented as FormViews. Several views for the same document can be
Question: How can I convert a String type value to an integer or float?For example,String str=”155.230″;float real;real = str.HowCanIConvert???????; I’ve tried it like this:Integer aValue = new Integer(String.valueOf(“1”)); But this
fld.SetFocus() but it doesn’t work. Any suggestions?
Question: I’m using OPO 1.0.16 on a Mac, and want to confine all input to afield on a form. The user can change some popups on the form, but thecursor
Question: How can I let a user enter a password and hide the charactersentered? Answer: You can let the user enter characters into a field and replace theletters entered by
Question: I posted this question to Java newsgroups, but the response from experts avoids the real issue. Simple applet: import java.applet.*; import java.awt.*; public class FirstApplet extends Applet { public
Question: The AWT’s Frame class provides a setCursor method that allows me to set the cursor to one of the standard images (arrow, watch, etc.). The problem is I’m implementing
Question: I like the automatic QBF facility that comes with all default Power Object applications. Is there any way to pass the selection criteria to a report? Answer: Yes, there
Question: I believe there is a JavaScript function: ‘ShowDocument(URL,targetFrame)’ Is there a way to replicate this in Java? I realize that in the future the solution may materialize when a
Question: I have a note section on my Web page. I would like to be ableto click a radio button, and a small window with the note inside it wouldpop
Question: I’ve noticed that I cannot get any values returned to my Power Objects application from a PL/SQL block. How can I get around this? Answer: The inability to get
Question: I would like to have a simple application that exists as its own form, without being in the standard MDI frame for OPO applications. Is this possible? Answer: Right
Question: Is there a utility or a routine that will allow comma-separated flat files to be imported into Blaze? I don’t want to spend too much money. Answer: There is
Question: I have made the poplist readonly to avoid activating it whenclicking, but apparently the DoubleClick() method doesn’t fire atall. How do I catch the double-click? Answer: The DoubleClick() method
Question: My application is working with a fairly large database. Althoughusers will never be allowed to request all of the data, differentselection conditions may return wildly varying amounts of data.
Question: I noticed that there are 3 different types of connect properties for a session. What’s the difference? Answer: Every session has three different connect properties that are used at
Question: If I have: class point { double x,y; } & import point; class test { public static void main(String args[]) { point[] P = new point[10]; P[0].x = 5;
Question: I have been trying to connect to Personal Oracle 7 on the Macintosh. I can connect from the DBA applications, but cannot connect from Power Objects. Can you give
Question: How do I eliminate the toolbar for a form? Answer: To eliminate the toolbar from displaying for a particular form, add the code: Self.SetToolbar(NULL) to the InitializeWindow() method for
Question: I have a very large table that contains thousands of rows. I want to let a user insert new rows into it on a particular form without having to
Question: on a form based on the selection. I tried this two ways: 1) Using the validate method. This worked when the value was changed but not when scrolling through
Question: I’m using an evaluation copy of OPO for the Mac. After I create a table, I go into the table structure window to try and change the table structure
Question: I am 14 years old and a new Java programmer. I would like to know the difference betweenan instance and an object.I am learning Java from the book Teach
Question: I have two applets running on the same page, one in each of two frames. I want them to communicate, but when I do a getAppletContext.getApplet() call, the second
Question: I mainly do database applications and I am currently working on a project that will become very big. I have been trying to find any references to comparisons between
Question: When I attempt to preview a report in OPO under Windows95, I get an error: WFW-03049: Internal buffer too small for printer port name Is this an OPO or
Question: I’m building some process control software and I need to addlabels, such as Upper Control Limit (UCL), into my chart. Answer: The graph control was added to PowerBuilder in
Question: How can code in one frame construct an object whose constructor is declared in another frame? For example, new parent.SomeObject(); does not seem to work. Why? Answer: Good question!