Page 1 of 1

Dim tables and save the dates

Posted: Tue Oct 13, 2015 1:20 pm
by Juan Carlos
Hi, I'm working with an app to read the mouse x and y positions from 7 elements on a picture and I want save this x and y points in a dim table with the seven elements with its two x and y positions but I don't know how programmed this table with Table[Element Number] [Position X][ Position Y] and save this content in a file and read this file to positioning the elements everytime that I load the picture, how is programmed?

Re: Dim tables and save the dates

Posted: Thu Oct 15, 2015 10:46 pm
by airsoftsoftwair
The syntax is:

Code: Select all

t = {}
For Local k = 0 To 6 Do t[k] = {x = ..., y = ...}
Then you can access it like this:

Code: Select all

DebugPrint(t[5].x, t[5].y)   ; dump position of element 6

Re: Dim tables and save the dates

Posted: Fri Oct 16, 2015 11:05 am
by Juan Carlos
Thanks Andreas now I work to save the dates in a file.