Developer forum
cancel
Showing results for 
Search instead for 
Did you mean: 

INFIELD{2} not displaying VALUES{2} properly

Bruce
Booster
I have defined a 2-dimension array parameter, of integer type, with a VALUES{2} command. It displays fine in the parameter list, but in the interface, I only get the integer displayed, not the description. What am I missing?

I think I've encountered this before, but I can't remember what I did to solve it (apart from placing a dummy OUTFIELD over the top of the infields...a bad solution).

Parameter array values:

Interface result:
Bruce Walker
http://www.brucepwalker.com
https://www.mindmeister.com/65450406

-- since v8.1 --
AC22 6025 INT Full | macOS Mojave 10 | 3.2 GHz Intel Xeon W | 32 Gb RAM | Radeon Pro Vega 56 8 Gb
1 ACCEPTED SOLUTION

Solution
Palawat
Newcomer
Let's say that your parameter is paramName, try this ;

! Master Script
dim paramNameSt[]
paramNameSt[1] = "Room Name"
paramNameSt[2] = "Room Number"
paramNameSt[3] = "Room Category"
paramNameSt[4] = "Room Category Code"
paramNameSt[5] = "Room Abbreviation"
paramNameSt[6] = "Room Area"

dim paramNameInt[]
paramNameInt[1] = 1
paramNameInt[2] = 2
paramNameInt[3] = 3
paramNameInt[4] = 4
paramNameInt[5] = 5
paramNameInt[6] = 6

values{2} "paramName", paramNameInt, paramNameSt
! UI Script
ui_infield{3}	paramName[1][1], 10, 10, 200, 20,
				8, "",
				vardim1(paramNameInt),
				1, 0, 0, 0, 0,
				paramNameInt, paramNameSt, paramNameInt
Cheers,

Archicad 24 Solo, Windows 10, Corei7 3.4 GHz, 16 GB Ram.

https://www.indigofigs.com
https://www.facebook.com/indigofigs

View solution in original post

2 REPLIES 2

Solution
Palawat
Newcomer
Let's say that your parameter is paramName, try this ;

! Master Script
dim paramNameSt[]
paramNameSt[1] = "Room Name"
paramNameSt[2] = "Room Number"
paramNameSt[3] = "Room Category"
paramNameSt[4] = "Room Category Code"
paramNameSt[5] = "Room Abbreviation"
paramNameSt[6] = "Room Area"

dim paramNameInt[]
paramNameInt[1] = 1
paramNameInt[2] = 2
paramNameInt[3] = 3
paramNameInt[4] = 4
paramNameInt[5] = 5
paramNameInt[6] = 6

values{2} "paramName", paramNameInt, paramNameSt
! UI Script
ui_infield{3}	paramName[1][1], 10, 10, 200, 20,
				8, "",
				vardim1(paramNameInt),
				1, 0, 0, 0, 0,
				paramNameInt, paramNameSt, paramNameInt
Cheers,

Archicad 24 Solo, Windows 10, Corei7 3.4 GHz, 16 GB Ram.

https://www.indigofigs.com
https://www.facebook.com/indigofigs

View solution in original post

Bruce
Booster
That did the trick! Thanks Palawat.
Bruce Walker
http://www.brucepwalker.com
https://www.mindmeister.com/65450406

-- since v8.1 --
AC22 6025 INT Full | macOS Mojave 10 | 3.2 GHz Intel Xeon W | 32 Gb RAM | Radeon Pro Vega 56 8 Gb

Still looking?

Browse more topics

Back to forum

See latest solutions

Accepted solutions

Start a new discussion!