Table of Contents

Tips on PrevFocus and Multivalue Arrays (Functions/Subroutines/Programs)

Created at 12 MAY 1997 02:00PM

PREVFOCUS

 

Sometimes when programming we want to know what the last control was that had the focus.  In Open Insight we have a property of the System control that tells us this information.  The syntax to do this is as follows:

           

prevControl = Get_Property("SYSTEM" , "PREVFOCUS")

 

This system property will always hold the id of the last object that had focus, whether or not the object was on the form or the desktop.  PrevFocus is not local to the application.

 

MULTIVALUE ARRAYS  

 

If you want to get all of the data within a MultiValued field the correct property that should be used is the ARRAY property.  If the text property is used, only the first line of information is retained in the variable and not the entire field.  The syntax to do this is as follows:

 

fieldData = Get_Property("<window name>.<control name>" , "ARRAY")