BBjInputT::getLength

Description

In BBj 24.00 and higher, this method returns the maximum input length for the BBjInputT control.

Syntax

Return Value Method
int getLength()

Parameters

None.

Return Value

Returns the maximum input length of the BBjInputT control.

Remarks

The default maximum input length is 255; it can be overridden with BBjInputT::setLength().

Example

rem ' BBjInputT

sysgui = unt
open (sysgui)"X0"

sysgui! = bbjapi().getSysGui()
sysgui!.setScale(2,2)

window! = sysgui!.addWindow(25,25,150,150,"BBjInputT",$00090083$)
window!.setCallback(window!.ON_CLOSE,"eoj")

inputt! = window!.addInputT(101,25,25,100,25,$0008$)
inputt!.setLength(16)
inputt!.setBeep(0)
print "getLength =",inputt!.getLength()," getBeep = ",inputt!.getBeep()
inputt!.setPlaceholder(inputt!.getMask())
inputt!.setToolTipText(inputt!.getMask())
inputt!.focus()

mask$ = "%hz:%mz:%sz %a"
inputt! = window!.addInputT(102,25,75,100,25,$0008$,mask$)
inputt!.setLength(16)
inputt!.setBeep(1)
print "getLength =",inputt!.getLength()," getBeep = ",inputt!.getBeep()
inputt!.setPlaceholder(inputt!.getMask())
inputt!.setToolTipText(inputt!.getMask())

process_events

eoj:
release

ClosedVersion History

  • BBj 24.00: BBjInputT::getLength added.

See Also

BBjAPI

BBjSysGui

BBjControl

BBjWindow

See the BBj Object Diagram for an illustration of the relationship between BBj Objects.

Add additional See Also links below the first two.