Re: [fpc-pascal] Pointers

2005-07-27 Thread Leonhard Holz
Hello, Note that those addresses (like $a000) are all things from the 16-bit world. I'm not sure how far these are emulated correctly if you are running in a 32-bit world. Addresses for graphics cards are way different there, easier to use, but different from card to card. If you compile a win

Re: [fpc-pascal] string concatenation speed

2005-06-21 Thread Leonhard Holz
Hi, if (sl[4] <> '') then if ((sl[4][1] = '"') AND (sl[4][length(sl[4])] = '"')) then BaseColor := copy(sl[4],2,length(sl[4])-2) else BaseColor := sl[4]; You can tweak this a little by storing sl[4] and length(sl[4]) in local vars, but the whole appro