Infield Character Text Limit?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā2017-06-27 10:57 AM
ā2017-06-27
10:57 AM
Thanks.
ArchiCAD 23
Windows 10
Windows 10
3 REPLIES 3
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā2017-06-30 12:39 PM
ā2017-06-30
12:39 PM
bump
ArchiCAD 23
Windows 10
Windows 10
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā2017-06-30 05:36 PM
ā2017-06-30
05:36 PM
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+60I 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
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā2017-06-30 06:58 PM
ā2017-06-30
06:58 PM
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."
!!! 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."