Frank, Downloading and installing the file Gene.zip was easy done succesfull. The form: I am not able to enter a value in column #Weird if I have entered 8 in the column text. Is that how it is supposed to work? Regards, Koen
Op do 10 jan. 2019 om 16:36 schreef Frank Cazabon frank.cazabon@gmail.com:
I was hoping that I would get Gene's response first as it really was a quick and dirty thing to show him how it could be done, but if others are interested I guess it won't hurt to have more eyes on it:
https://drive.google.com/file/d/1mR9CS02c3xr20-Y-sVr2B6cxAvsM8APh/view?usp=s...
Let me know if there is a problem downloading the file as I generally don't share files this way, so may have made a silly mistake when trying to share it.
Frank.
Frank Cazabon
On 10/01/2019 11:25 AM, Koen Piller wrote:
Frank Would you mind to e-mail me the link also? Regards Koen
Op do 10 jan. 2019 om 15:06 schreef Frank Cazabon <
frank.cazabon@gmail.com>
Gene,
I've knocked up a quick demo which I hope meets your requirements and emailed you the link to the download on google drive.
Frank.
Frank Cazabon
On 09/01/2019 02:52 PM, Gene Wirchenko wrote:
At 05:28 2019-01-08, Frank Cazabon frank.cazabon@gmail.com wrote:
Gene, back in April last year you were asking if anyone could write code to your specification regarding the grid problems you were having. I don't recall ever seeing your specification, maybe if you posted it someone might be able to do the code for you.
At that time, I was also having difficulties posting to thelist. I thought I had come up with something, but maybe, it did not make it and I mistakenly deleted it. Let me specify something simple:
Consider a cursor or table of: thetext c(20) evennr n(3) weirdnr n(3)The validations are: thetext>"" evennr%2=0 weirdnr%3=0 and the row-level validation is: asc(thetext)%2=weirdnr%2
When a control-level validation error occurs, throw anappropriate message box and then set focus to the control with the erroneous value.
For a row-level validation:
- All control-level validations should be done first. Start with
the current control, then do all the others from left to right. The first that fails gets the message box, and checking stops.
Then, do the row-level validation. If it fails, throw anaoppropriate message box and then set focus to the control in the first column from the left of the values that are checked. (In the example above, thetext is left of weirdnr, so set focus to thetext.)
Part 2:
The columns can now be rearranged in any order. Despite this: The coontrol-level validations should still set focus to thecorrect control.
The column-level validations done at the start of the row-levelvalidation should be done in the order current then left-to-right. NOTE THAT THIS COULD NOW BE A DIFFERENT ORDER.
The row-level validation should still set focus to the leftmostinvolved control. NOTE THAT THIS MIGHT BE A DIFFERENT CONTROL. (Example: If weirdnr gets moved to the left of thetext, row-level validation failing should set focus to weirdnr.)
This is basic functionality that I want/need. I have been unableto get this to work with VFP's Grid despite my efforts.
[snip]
Sincerely,
Gene Wirchenko
[excessive quoting removed by server]