Database Edit Table; which column (OpenInsight Specific)
At 13 SEP 1999 03:55:47PM Jim Jones wrote:
How can I determine, programmically, which column( and value) has focus within a 'database edit table' control?
I would also like to be able to set the 'TEXT' property for a specific column (and value) in a 'database edit table' control with my program.
I've tried several approaches and seem to be at a deadend. Any suggestions would be appreciated.
Thanks,
J.J.
At 13 SEP 1999 05:05PM CT Savell wrote:
I think you are looking for the POSCHANGED event which delivers NextRow and NextColumn whenever the position of the edit table cell with focus changes.
At 13 SEP 1999 05:28PM Stephen S. Revelation wrote:
Jim,
CT Savell is correct is referring to the POSCHANGED event to retrieve the next cell position to receive focus. Alternatively, to get the current(with focus) position at anytime, use the SELPOS property. As far as setting text to a particular cell in an edit table, I'd recommend using the CELLPOS property to set the TEXT property.
Good Luck,
Stephen Revelation
At 13 SEP 1999 07:39PM Richard Hunt wrote:
Your question…
How can I determine, programmically, which column( and value) has focus within a 'database edit table' control?
answer…
POSITION=GET_PROPERTY(CTRLENTID,'SELPOS')
COLUMN=POSITION
ROW=POSITION
question…
I would also like to be able to set the 'TEXT' property for a specific column (and value) in a 'database edit table' control with my program.
answer…
POSITION=COLUMN:@FM:ROW
OLD_POSITION=SET_PROPERTY(CTRLENTID,'ACCESSPOS',POSITION)
OLD_TEXT=SET_PROPERTY(CTRLENTID,'ACCESSDATA',TEXT)
I hope this helps. Edit tables are very tricky. and are interesting too.