I am trying to use Action Objects to keep several of my components in sync and to act on an OnClick event only once. The components are not menu items or toolbar buttons as in all the Action examples. I think I have discovered a problem that could almost be called a bug in Delphi, but can...
Here is *** for Glenn! And some for roo too!
After trying out various things with copying and moving etc and each time running into unexpected problems, I've implemented Glenn's suggestion of having a base value from which I calculate the indexes. So the array does not actually get cropped...
Nice to get confirmation for what I had thought myself, that what I wanted to do wasn't possible. My mistake was thinking of my dynamic array as a continuous block of memory with a pointer to it's start, so what I wanted to do was make that pointer point to a new start further into the array...
Wow, what a quick reply - thanks very much!
My program manipulates measured data values, at the moment about 200 x 200 doubles, but I want it to be able to do 1000x1000 or more. The user can then view this data as a 3D surface chart. He may want to edit certain points, apply verious filters...
I have a large 2 dimensional dynamic array of doubles.
I want to "crop" it in an elegant way, e.g. use a function SetDimensions(xstart, ystart, xend, yend) on it. Now the "high" end is no problem, I can just call SetLength(myDynArray, xend, yend) and it will either enlarge or reduce the size of...
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.