cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 
Libraries & objects
About Archicad and BIMcloud libraries, their management and migration, objects and other library parts, etc.

Infield Character Text Limit?

JGoode
Expert
Is there any way that I am able to limit the amount of characters that someone can type into the infield? Either that or is there any way that you can display the entire amount of text that is in the infield in the object?

Thanks.
ArchiCAD 23

Windows 10
3 REPLIES 3
JGoode
Expert
bump
ArchiCAD 23

Windows 10
matjashka
Advocate
First, define a Parameter of Text type, called "superLongInfield".
_v=0
_vv=23
	ui_infield "superLongInfield", 0, _v, wd, ht
	_v=_v+_vv
	ui_outfield superLongInfield, 
	0, _v, wd, ht
	_v=_v+60
I don't see a way to limit the length of infield input but the above will display the full text from infield (not dynamically, but upon change of focus). Works in AC20
Matt Krol [LinkedIn]
BHMS Architects and Planners, Chicago
AC 10 ... 26 USA
Anonymous
Not applicable
And what, STRLEN does not fit?
!!! Master script
nn=77 !max number of characters
n=STRLEN (string_expression)

!!! At the time of filling ui_infield "string_expression" will be a warning.

if n > nn THEN PRINT "Exhausted the maximum number of characters."