On 2/29/24 15:56, andy pugh wrote:
On Thu, 29 Feb 2024 at 18:14, gene heskett <ghesk...@shentel.net> wrote:

Is it possible to concatenate several string vars into a variable name
in order to access an array of vars

No.

But you can do this with numbered variables.

So #[100 + #3] is a valid construction.

tholefinder.ngc currently uses #100 and #101 to return the exact xy location of the bolthole its positioned to check (but that is adjustable) so I likely will use #200, #210, #220 for the anchor points of the 3 0-9 element arrays for x,y,z. Any possible interference with o### etc while/do/etc markers?

How do I initialize that to 0.00000000, the same way, I assume by
#300=0, then #3000=first hole location x while incremnting #300 to 9
#3010=y location etc, #3020=zlocattion. Just to make sure its reserved when I write the actual data returned from tholefinder (which returns the exact center of the holes x in #100 y=in #101 etc) to that location for later use. This will greatly simplify the code, thank you very much Andy. Even simpler if I don't have to init the storage until I actually have data to write to that location.

Thanks Andy. Stay warm & well.

Cheers, Gene Heskett, CET.
--
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author, 1940)
If we desire respect for the law, we must first make the law respectable.
 - Louis D. Brandeis



_______________________________________________
Emc-developers mailing list
Emc-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-developers

Reply via email to