Dim tables and save the dates
- Juan Carlos
- Posts: 889
- Joined: Mon Sep 06, 2010 1:02 pm
Dim tables and save the dates
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?
- airsoftsoftwair
- Posts: 5443
- Joined: Fri Feb 12, 2010 2:33 pm
- Location: Germany
- Contact:
Re: Dim tables and save the dates
The syntax is:
Then you can access it like this:
Code: Select all
t = {}
For Local k = 0 To 6 Do t[k] = {x = ..., y = ...}
Code: Select all
DebugPrint(t[5].x, t[5].y) ; dump position of element 6
- Juan Carlos
- Posts: 889
- Joined: Mon Sep 06, 2010 1:02 pm
Re: Dim tables and save the dates
Thanks Andreas now I work to save the dates in a file.