Ursie Posted September 30, 2006 Share Posted September 30, 2006 What is the best wayt to check for an empty array entry. I tried to use "If array[3][8] = "" Then array[3][8] = _NowCalc ()" But that doesn't work somehow What method i need to use then ? Thnx for the help in advance Link to comment Share on other sites More sharing options...
Developers Jos Posted September 30, 2006 Developers Share Posted September 30, 2006 What is the best wayt to check for an empty array entry. I tried to use "If array[3][8] = "" Then array[3][8] = _NowCalc ()" But that doesn't work somehow What method i need to use then ? Thnx for the help in advanceShould work...assuming you are putting a $ in front of Array. SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Ursie Posted September 30, 2006 Author Share Posted September 30, 2006 Oh yeah sorry about the missing $ But i can tell you that it doesn't work. I even tried Msgbox ( 0 , "DEBUG" , "|" & $array[3][8] & "|" ) And that show to me as || So i don''t know what is going wrong here. Well it is most probarly my little brain that is causing the problem then Link to comment Share on other sites More sharing options...
Developers Jos Posted September 30, 2006 Developers Share Posted September 30, 2006 (edited) Oh yeah sorry about the missing $ But i can tell you that it doesn't work. I even tried Msgbox ( 0 , "DEBUG" , "|" & $array[3][8] & "|" ) And that show to me as || So i don''t know what is going wrong here. Well it is most probarly my little brain that is causing the problem then Yes it does.. here is a simple example to demonstrate it works: Dim $array[5] $array[0] = "A" $array[2] = "C" $array[4] = "E" For $x = 0 to 4 If $array[$x] = "" then MsgBox(0,"demo","Array entry is empty:" & $x) Next Edited September 30, 2006 by JdeB SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted September 30, 2006 Moderators Share Posted September 30, 2006 Oh yeah sorry about the missing $ But i can tell you that it doesn't work. I even tried Msgbox ( 0 , "DEBUG" , "|" & $array[3][8] & "|" ) And that show to me as || So i don''t know what is going wrong here. Well it is most probarly my little brain that is causing the problem then If $array[3][8] = '' Then what do you expect to see as a return? Local $array[4][9] $array[3][8] = 'Something' MsgBox(0, 'Debug', '|' & $array[3][8] & '|');Should be |Something| as a value $array[3][8] = '' MsgBox(0, 'Debug', '|' & $array[3][8] & '|');should be || as a valueI like Jdebs example explaining it better though Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. 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