We value your input! Please participate in Archicad 28 Home Screen and Tooltips/Quick Tutorials survey
2017-11-24 11:33 AM
DIM sarray[] ! file in the library, containing parameter data filename = "ProjectNotes.txt" ch1 = OPEN ("text", filename, "MODE=RO, LIBRARY") i = 1 j = 1 sarray[1] = "" ! collect all strings DO n = INPUT (ch1, i, 1, var) IF n > 0 AND VARTYPE (var) = 2 THEN sarray= var j = j + 1 ENDIF i = i + 1 WHILE n > 0 CLOSE ch1 ! parameter popup with strings read from the file VALUES "RefNote" sarray
2017-11-25 08:35 AM
2017-11-25 08:55 PM
JGoode wrote:Create var parameter, or declare var = 0 in the script. And there will be no mistakes.
I keep getting an error on the "IF n > 0 AND VARTYPE (var) = 2 THEN" line
I don't know what's causing it or how to fix it.
2017-11-30 07:51 AM
if n > 0 then if vartype (var) = 2 then ...