User Tools

Site Tools


setlimitneeded_return_static_dynamic_boundary_flag_stepstringclass_.htm
Navigation:  ABC Library Reference > StepStringClass > StepStringClass Methods >====== SetLimitNeeded (return static/dynamic boundary flag:StepStringClass) C6H0009.jpg ====== Previous pageReturn to chapter overviewNext page

SetLimitNeeded, VIRTUAL

blk2blue.jpg

The SetLimitNeeded method returns a value indicating whether the StepClass object's steps and boundaries are static (set at compile time) or dynamic (set at runtime). A return value of one (1) indicates dynamic boundaries that may need to be reset when the monitored result set changes (records are added, deleted, or filtered). A return value of zero (0) indicates the boundaries are fixed at compile time (name or alpha distribution) and are not adjusted when the monitored result set changes.

Implementation:

The SetLimitNeeded method returns one (1 or True) if the LookupMode property equals ScrollBy:RunTime; otherwise it returns zero (0 or False).

Return Data Type:     BYTE

Example:

BrowseClass.ResetThumbLimits PROCEDURE

HighValue ANY

 CODE

 IF SELF.Sort.Thumb &= NULL OR ~SELF.Sort.Thumb.SetLimitNeeded()

   RETURN

 END

 SELF.Reset

 IF SELF.Previous()

   RETURN

 END

 HighValue = SELF.Sort.FreeElement

 SELF.Reset

 IF SELF.Next()

   RETURN

 END

 SELF.Sort.Thumb.SetLimit(SELF.Sort.FreeElement,HighValue)

See Also:     StepClass.SetLimitNeeded

setlimitneeded_return_static_dynamic_boundary_flag_stepstringclass_.htm.txt · Last modified: 2021/04/15 15:57 by 127.0.0.1