TheDanishDragon Posted December 13, 2008 Share Posted December 13, 2008 (edited) Hi AU3'ers can someone explain what this means? I am new to auto it, so please mane a example out of it ^^ Dim $Grid[2][4]=[["Paul", "Jim", "Richard", "Louis"], [485.44, 160.68, 275.16, 320.00]] does it means that it create a 2*4 table? Anyway, how to connect paul and 485.44? /TDD Edited December 13, 2008 by TheDanishDragon Link to comment Share on other sites More sharing options...
KaFu Posted December 13, 2008 Share Posted December 13, 2008 It's a 2-dimensional array, read it as 2 rows with 4 fields. Dim $Grid[2][4]=[["Paul", "Jim", "Richard", "Louis"], [485.44, 160.68, 275.16, 320.00]] MsgBox(0,"",$Grid[0][0] & @crlf & $Grid[1][0]) Keep in mind, that array are 0-based. OS: Win10-22H2 - 64bit - German, AutoIt Version: 3.3.16.1, AutoIt Editor: SciTE, Website: https://funk.eu AMT - Auto-Movie-Thumbnailer (2022-Nov-26) BIC - Batch-Image-Cropper (2023-Apr-01) COP - Color Picker (2009-May-21) DCS - Dynamic Cursor Selector (2024-Feb-16) HMW - Hide my Windows (2018-Sep-16) HRC - HotKey Resolution Changer (2012-May-16) ICU - Icon Configuration Utility (2018-Sep-16) SMF - Search my Files (2023-Jun-03) - THE file info and duplicates search tool SSD - Set Sound Device (2017-Sep-16) Link to comment Share on other sites More sharing options...
TheDanishDragon Posted December 13, 2008 Author Share Posted December 13, 2008 My goal with autoit is to make a equation library, and solver. So that you can store a formula such as: F=m*g and have some values such as F,m and g - which is stored to a single line of text. First off all i want to make a database, which contains all the units/prefixs/units. My best gueas Dim $DATABASE = {TPIC1{{ formula1| formula2|..}{prefix(unit)|prefix(unit)|prefix(unit)|..}}} Eksample: Dim $DATABASE = {Forces{{F=m*g}{F(N)|m(m)|g(m/s^2)}}{NEVERENDING} is it possible to sort those varriables into variables? After all, is there some way to separate them, think it's the best way to make a useful database atm. I use {} to separate the topics Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now