Hi Guys Thanks for the help. Really appreciate it.
Josh you were saying that JkTrAdd is a handle(pointing to the newly added surface) and this is temporary? So trying to call a function or calculation further down the line of code using JkTrAdd would not be possible? Like for instance I wouldn't be able to say HDuplicate(JkTrAdd,x,y)?
Nevertheless I am slowly understanding the syntax usage.(keyword slowly l:) )..
And Raymond thanks for the tips on 'Function' and its functions..lol.. but seriously, after you had suggested to use a function I went digging through the VS manual, and there it was, together with user-defined procedures.. It seems they can be very useful. However it also looks like a bit of a mission to implement. As the examples(in the manual)suggest, they are created so they can be 'easily' retrieved later. And also as you had mentioned, it simplifies the code. From your example in of itself I can see more lines of code then Adding the surfaces one by one as your example showed(the example just before the function one). I gather that the function serves a purpose where somewhere down the line I wanted to added four other polygons I could just call that particular one (Add4Polys) and feed in the new polys? Is this correct?
For what its worth, the two replies in this post alone have expanded my knowledge immensely and I really appreciate such help. So thanks again.
Also on a side note.. I noticed not a lot of people post their codes up here for others to see. Is there a legal reason for this? (Like a rule for the forum?). Would be nice to have a place where we could share our codes and maybe get others to comment on it, like you guys have done, to make it better, or improve it. Does such a place exist for vectorscripting?
Thanks again. Tui