devxlogo

March 28, 1997

Playing a sound collection

Question: I have 10 .wav files that I want to play in a loop.If I make the mmplayer wait property true, I suffer from control failure during the loop time.I

DBGrid

Question: I am using a DBgrid. I have defined two NEW Persistent fields as lookupfields. In the Columns editor, I added them to the grid display. Those two fields are

Insufficient Memory, TFloatField in TQuery

Question: 1. I developed an application, but after running for about one hour, a message error: “Insufficient memory to do the operation” occurred. The error did not cause the application

Memo Fields and Carets

Question: I need to be able to move the caret in my memo field back to the begining of the field. Any idea how I do this? Answer: Try this:Memo1.SelStart(0);This

Changing Applet’s Background Color

Question: Can you tell me how to change the background color of an applet from the normal grey to white? I would greatly appreciate it. Answer: Try putting the line:

More than One Class in Same File?

Question: Is it possible to have more than one class in the same file ? Answer: Yes. The file Foo.java may contain several class declarations, but amongthem must be a

ClassFormatError

Question: I’m a beginner in Java. I’ve tried two different applets now (one of which I borrowed from another site), both of which involved text fading and color changing. I

Difference between yield() and sleep()

Question: What is the difference between calling yield() and sleep()? Also, in what instances would you call either method? Answer: The Java platform uses the multithreading facilities of the host

Calling the Operator =

Question: How can I call the operator= of the base class from the operator=in the derived class?The data member in the base class is a private data member. I want