Libraries & objects
About Archicad and BIMcloud libraries, their management and migration, objects and other library parts, etc.

A way to do like PUT/GET with strings

Anonymous
Not applicable
Hi

I want to make a dynamic INFIELD, where the number of items are determined by a .txt file and can vary from an user to one other.

i thought about the PUT and GET but it don't work with strings.

is anyone know a method to perform this in an other way ?
3 REPLIES 3
Anonymous
Not applicable
Make an array and use the PARAMETERS statement to put in the string values.
Anonymous
Not applicable
yes it's what i did for the parameters values.

my problem is for the pictures, i thought about something like this , make an array with all values for picture and then i give the array in parameters


DIM pict[][]

FOR i=1 to VARDIM1(param)

pict[1] = param + ".png" !! name of the picture
pict[2] = param !! text
pict[3] = param !! the value definition

NEXT i


UI_INFIELD{3} param, 0, 0, 100, 100,
2, "",
0,0,0,0,
100, 100,
pict

it don't work
it try also with loops, same thing
Jochen Suehlo
Moderator
Jevrod,
if you use param without [] in UI_INFIELD, you will alway get a table representation of the array.
If you use param, you have to define VALUES in the Parameter-Script like:

VALUES "param" "text1","text2","text3","text4"

Then you can write something like tghis in the UI:

ui_infield{3} param[1], 0, 0, 240, 136,
2, pict[1][3], 4, 4,
240,136,240,136,
1, "text1", "text1",
2, "text2", "text2",
3, "text3", "text3",
4, "text4", "text4"

Don't know, if this is what you want.
Jochen Suehlo . AC12-27 . MAC OSX 14.4 . WIN11
GDL object creation: b-prisma.de