2005-01-11 07:16 PM
DO n = INPUT (ch1, i, 1, keynote) IF n > 0 AND VARTYPE (keynote) = 2 THEN sarray...which I am later in the script trying to retrieve:= keynote j = j + 1 ENDIF i = i + 1 WHILE n > 0
i = 1 FOR i = 1 to arrayLength split_char = ",," ! Two commas, field delimeter keynote = sarray test_text = keynote txlen = STRLEN (keynote) tx_split = STRSTR (keynote, split_char) IF tx_split > 0 THEN ! If there is a Split Character found keynote_num = STRSUB(keynote, 1, tx_split-1) keynote_text = STRSUB(keynote, tx_split+2, txlen) ELSE keynote_num = keynote keynote_text = " " ENDIF GOSUB 110 GOSUB 120 NEXT iSubroutines 110 and 120 actualy try to process the text to place it on the drawing.
2005-01-12 01:18 AM
2005-01-12 02:58 AM
Rob wrote:I don't think you need to put that statement in the loop, Rob, and execute it for every element. One statement above the loop may be enough to trick the GDL compiler.
sarray= ""
2005-01-12 03:24 AM
2005-01-12 12:57 PM
2005-01-12 04:02 PM
2005-01-12 07:27 PM
ch1 = OPEN("text", filename, "Mode = RO", Library)SHOULD be telling Archicad to read the file as text, but it is not.
2005-01-12 08:00 PM
2005-01-12 10:35 PM
It seems like the statement:it should go like this:
Code:
ch1 = OPEN("text", filename, "Mode = RO", Library)
2005-01-12 10:50 PM