hi everyone, i had a problem of defining the upper-limits of a
safearray at runtime, so i worked this code out:
(Setq p_data
"(setq pos_data (vlax-make-safearray vlax-vbstring '(0 . 5) '(0 . zappa)))"
)
(Setq p_data (vl-string-subst
(rtos (length liste))
"zappa"
p_data
)
)
(eval (read p_data))
the problem was that the length of "liste" changed depending on user input. so i wanted to tie the upper-limts of one dimension to the length of "liste".
my question: is there a more "elegant" way to get the same result? iīm a bit new to
this vl/vlax-stuff, maybe iīve overseen something in the vlisp documentation?
btw, this seems to be a great bb, i just discovered it a few days ago and gathered a
wealth of information already.
S! Cider