Array from text file problem
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2018-04-12 04:21 PM
2018-04-12
04:21 PM
DIM sarray[] var = "" filename = "ProjectNotes.txt" ch1 = OPEN ("text", filename, "MODE=RO, LIBRARY") i = 1 j = 1 y = 1 sarrayThis repeats over and over thus causing a crash but I think it’s something along the lines that I am going for. I want it to repeat until one of the lines in my contains “EF-25” then not include that line. If anyone can help me solve it then I would really appreciate it!="" repeat n = INPUT (ch1, y, 1, var) pos = STRSTR (var, "EF-25") L1 = STRSUB (var, 1, pos) sarray = var j=j +1 i=i+1 y=y+1 until var = prefix CLOSE ch1 VALUES "refnote" sarray
If it can't be solved then I'd appreciate knowing that too, or if what I am trying to do can't be achieved.
Thanks
ArchiCAD 23
Windows 10
Windows 10
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2018-04-12 05:25 PM
2018-04-12
05:25 PM
I usually load the whole list of the "header column" first, and then analyze the content, and on the second open I open the proper row data. (I use it for localization and for finish definition)
See the steel beam/column objects - that is a good working example.
Piotr
See the steel beam/column objects - that is a good working example.
Piotr