Hello all
1. This question is about a conversion of an existing VFP application without rewriting into the Lianja vision.
2. No pages or sections are created; a form is placed on the screen and is filled by processing metadata.
3. The business rules or validation methods for each form are accessed by determining what object is being processed.
The problem i am trying to conquer is that I so far have found no crash proof way of identifying the current object.
I have a set of code I have attached to the form in the keypress method as follows:
When I find the right event i add code to it to tell the prog what the current object is.
I suspect if the grid weren't present then the query to active row would also crash.
debugout 'CONSO'
debugout grid1.activerow
DEBUGOUT grid1.ActiveColumn
*DEBUGOUT tabindex
*DEBUGOUT this.activecontrol
GROW=grid1.activerow
GCOL= grid1.activeCOLUMN
debugout mcurobj
IF GROW=0 Or GCOL=0
DEBUGOUT 'EXIT CONSO NULL GRID'
*debugout this.baseclass
RETURN
ENDI
NFLD=grid1.column(gcol).controlsource
*DEBUGOUT oldval(grid1.ActiveColumn.controlsource)
DEBUGOUT THIS.NAME
retur
Tabindex, name, activecontrol, baseclass all crash Lianja when they are null or its equivalent. If I could tell that no valid object was in focus,
I could avoid the problem but everything crashes so thats not an option.
Any suggestions or questions will be appreciated.
Jim
Bookmarks