Run out of parameters - help, please
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2005-06-22 07:59 PM
2005-06-22
07:59 PM
In an effort to get round this GDL limitation I have tried using a parameter as a simple array, with four possble values, thereby using one parameter instaed of four!!
My problem is that these values are, ideally, boolean (checkboxes), and I cannot get them to appear via the Interface script, no matter what I do. I don't need any associated pictures in the interface, and the checkboxes are 'independent' inasmuchas none affects another, and the result I want is not appropriate for drop-down boxes etc. I also want to avoid the need for the user to have to enter a value, if at all possible.
I understand the process (I think):
UI_INFIELD "checkbox[1]" 100,100,14,14
UI_INFIELD "checkbox[2]" 100,116,14,14
... and so on.
I've tried a loop, thus:
FOR j = 1 TO 4
param="checkbox["+Str(j,1,0)+"]"
UI_INFIELD param 100,84+j*16,14,14
NEXT j
Neither works.
Am I on a Fool's Errand, or does someone really knowledgeable and helpful know how to overcome this little difficulty?
BTW: it is not possible for me to re-engineer the object - I didn't originate the scripts, and I don't have full acces to all the associated Macros.
4 REPLIES 4
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2005-06-22 08:51 PM
2005-06-22
08:51 PM
Does
UI_INFIELD "checkbox[1]" 100,100,14,14
work? I have no manual by the hand (tomorrow in the office) to proof, but AFAIR you have to use the new infield-command UI_INFIELD{2}.
UI_INFIELD "checkbox[1]" 100,100,14,14
work? I have no manual by the hand (tomorrow in the office) to proof, but AFAIR you have to use the new infield-command UI_INFIELD{2}.
bim author since 1994 | bim manager since 2018 | author of selfGDL.de | openGDL | skewed archicad user hall of fame | author of bim-all-doors.gsm
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2005-06-22 11:34 PM
2005-06-22
11:34 PM
UI_INFIELD "checkbox[1]" 100,100,14,14 doesn't work, but if I use
UI_INFIELD{2} "checkbox[1]" 100,100,14,14 I get an error indicating that there is a parameter missing, or some such!!
Can you advise by giving a simple example of how to get this new command to work? The example in the ArchiCAD GDL Help doen't give working examples of this command!
UI_INFIELD{2} "checkbox[1]" 100,100,14,14 I get an error indicating that there is a parameter missing, or some such!!
Can you advise by giving a simple example of how to get this new command to work? The example in the ArchiCAD GDL Help doen't give working examples of this command!
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2005-06-23 01:08 AM
2005-06-23
01:08 AM
AHA! GOT IT!
The new UN_INFIELD{2} doesn't require parentheses around the parameter name!
Obvious when you think about it(??)
My thanks go to F Beister, who made me THINK about what I was doing!!
The new UN_INFIELD{2} doesn't require parentheses around the parameter name!
Obvious when you think about it(??)
My thanks go to F Beister, who made me THINK about what I was doing!!

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2005-06-23 01:34 AM
2005-06-23
01:34 AM
MikeS wrote:One of the great benefits of this (apart from being able to use arrays) is that you can build Spreadsheet style interfaces in the UI - I am even thinking of making a SuDoku puzzle solver with this GDL command.
AHA! GOT IT!
The new UN_INFIELD{2} doesn't require parentheses around the parameter name!
Obvious when you think about it(??)
My thanks go to F Beister, who made me THINK about what I was doing!!
--:David Nicholson-Cole GDLA:--
http://sustainabletallbuildings.blogspot.com
http://chargingtheearth.blogspot.com
http://sustainabletallbuildings.blogspot.com
http://chargingtheearth.blogspot.com