It is hard to read because it does not mention the actual puprose of serializing... or at least it doesn't do it in a clear and comprehensible way.
Btw, you could have also corrected/completed me without the insult/sarcasm. If you wanted to prove just how arrogant you are, you succeeded.
Since that site is slightly hard to read (I know what serializable is and I had to blink twice per word) I'll give a short "no nonsense" summary.
Serializable means you can store the object in binary form without much of a hassle.
When you write a class you want to be able to do...
No problem :)
As a general hint, whenever you use a component by dynamically creating it (dynamically = at runtime) you should go to the help file, look it up and see what it uses...
Oh, and I take it you know not to use VCL and CLX through each other? Cause basically every component can be...
I don't know the solution to your problem, but I do have one advice (which might be redundant).
Be sure to put this script in a file of it's own (*.js for javascript) and have the code added to the html files "include" this script. Otherwise you're in for a long coffee run if you ever...
I take it you have actually pasted a FileListBox on your form...
There is a difference between "form components" and function variables.
Stuff you put on the form is, essentially, a variable of a form, created together with it, and you can edit it at design time.
Function...
Hehe, it's actually laziness on my behalf...
I've come from Java, but I had to write 6 weeks in Delphi for a specific project. Rather than spending all my time trying to get to know all the existing components and picking appropriate ones, I went the java way and wrote almost anything I needed...
Or for a wrap that works regardless of which text you put in (especially when handling user input of varying length), you could use an own derivate of TCustomDialog (I think that's the appropriate base class but I'm not sure).
Give it a nice big TLabel and set it's Wrap property on, have the...
As a little expansion to what Clive wrote...
Right now, I don't have access to Delphi, but I *think* the FileListBox has an "items", "names", "files" or some such property that is of the TStrings type.
Here's what you do :
procedure Form.Create();
var...
The problem seems to be more persistent than I thought.
Win98 still generates blank pages... Could someone check my new version of the code and tell me what else could be the cause, because I am so lost this time...
procedure TEvaluationLine.asBitmap(var smallBmp : TBitMap);
begin...
Hmmm I' too lazy to actually check in Delphi right now, but I'm pretty sure the Tag property is a String.
That means that adding "1" to it 5 times yields '11111' rather than 5...
Work around it with nested IntToStr and StrToInt functions...
Hmmm that would explain things, lol... Did I mention I'm a Delphi noob? :D
So I guess I'll have to pass some bitmap as parameter rather than creating it in the function itself, huh? I can do that. *nods*
Can't try it out till monday, tho :(
*cries*
Me wanna code!
Oh, and thanks :)
In general, I'd advice you to study exactly when this happens, extract conclusions about the why based on this information.
Try out different things, play with your application. Especially try the things one normally would not do, as these situations are often the ones that generate the...
Hello, I am having a bit of a disturbing problem that is leaving me clueless...
I have written a component to display a set of "results", consisting of a name (TEdit), a score (TEdit), and a remark (TMemo). Each result is an instance of a self-written class called TEvaluationLine...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.