JonBMN Posted August 28, 2013 Share Posted August 28, 2013 (edited) My first question before I start posting code and whatnot, is on the IniWriteSection the Failure returns 0 and sets @error to 1 for an invalid data type. Can anyone help me figure out what this certain invalid data type is, because the helpfile does not explain this is huge detail (I'm passing a 2d array with key value pairs). Edited August 28, 2013 by JonBMN Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted August 28, 2013 Moderators Share Posted August 28, 2013 (edited) JonBMN,The Help file defines the required data pretty clearly as: "The data to write. The data can either be a string or an array. If the data is a string, then each key=value pair must be delimited by @LF. If the data is an array, the array must be 2-dimensional and the second dimension must be 2 elements."So it is either:"key1=value1" & @LF & "key2=value2" & @LF & "key3=value3"or an array[[key1, value1], [key2, value2], [key3, value3]]If what are you using as data does not match one of those two requirements, it is invalid. What are you trying to use? M23Edit: I have just seen your edit - how do you construct this 2D array? Edited August 28, 2013 by Melba23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
Solution JonBMN Posted August 29, 2013 Author Solution Share Posted August 29, 2013 I figured it out, I had been trying to write values with a 2d array like so: $exampleArray[10][2] Come to find out I had been trying to use a 2d array with: #exampleArray[10][10] That was what was creating the invalid data type error. 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