D dennishea Active Member Licensed User May 29, 2009 #1 This is my program. Sub Globals 'Declare the global variables here. Dim Shows(0) End Sub Sub App_Start Form1.Show FileSearch(Shows(0) ,"\libraries\videos\serinity") End Sub Click to expand... Below is the error code. After reading help I am still lost on how to solve it. The path I have listed in filesearch is valid I believe. I have used c:\ in it and and if I use the full path that I get from the address bar I still get the same error. I am using win 7. Denny Attachments error.jpg 10.5 KB · Views: 508
This is my program. Sub Globals 'Declare the global variables here. Dim Shows(0) End Sub Sub App_Start Form1.Show FileSearch(Shows(0) ,"\libraries\videos\serinity") End Sub Click to expand... Below is the error code. After reading help I am still lost on how to solve it. The path I have listed in filesearch is valid I believe. I have used c:\ in it and and if I use the full path that I get from the address bar I still get the same error. I am using win 7. Denny
klaus Expert Licensed User Longtime User May 29, 2009 #2 Instead of the Array Shows() you should use an ArrayList object, like. FileSearch(ArrayList1 ,"\libraries\videos\serinity") Best regards.
Instead of the Array Shows() you should use an ArrayList object, like. FileSearch(ArrayList1 ,"\libraries\videos\serinity") Best regards.
D dennishea Active Member Licensed User May 29, 2009 #3 @Klaus That is what I thought shows was. I rerenamed shows back to arraylist1 and still get the same thing. I have never been good at arrays and I am still not. Also if you look at the error the path is not the same as the one in filesearch. It's like I programed filesearch for one path the program is set at a default. Denny
@Klaus That is what I thought shows was. I rerenamed shows back to arraylist1 and still get the same thing. I have never been good at arrays and I am still not. Also if you look at the error the path is not the same as the one in filesearch. It's like I programed filesearch for one path the program is set at a default. Denny
klaus Expert Licensed User Longtime User May 29, 2009 #4 Sorry I copied your uncomplete path name, you must use the full path name. ArrayList1 is a control you must add onto the form in the IDE under Controls/Connections/ArrayList. Best regards. Last edited: May 29, 2009
Sorry I copied your uncomplete path name, you must use the full path name. ArrayList1 is a control you must add onto the form in the IDE under Controls/Connections/ArrayList. Best regards.
D dennishea Active Member Licensed User May 29, 2009 #5 @Klaus That's what I did (IDE under Controls/Connections/ArrayList). In windows 7 I've tried severel verisions of the path and can't seem to get it right. If this was xp and all that was wrong was the path I would get it right. I don't want to reinstall xp to test that posibility. I will try to find a windows 7 forum to get a handle on file path. Thanks much for your help. Denny
@Klaus That's what I did (IDE under Controls/Connections/ArrayList). In windows 7 I've tried severel verisions of the path and can't seem to get it right. If this was xp and all that was wrong was the path I would get it right. I don't want to reinstall xp to test that posibility. I will try to find a windows 7 forum to get a handle on file path. Thanks much for your help. Denny
agraham Expert Licensed User Longtime User May 29, 2009 #6 I think there is some confusion about arrays and arraylists, I very much doubt if it is anything to do with Windows 7. Can you post the actual spb file rather than us trying to comment on a code fragment.
I think there is some confusion about arrays and arraylists, I very much doubt if it is anything to do with Windows 7. Can you post the actual spb file rather than us trying to comment on a code fragment.
D dennishea Active Member Licensed User May 29, 2009 #7 @agraham Here is the program. It isn't much, it's just a start on trying to understand arraylist. Denny Attachments Movies.sbp Movies.sbp 486 bytes · Views: 407
@agraham Here is the program. It isn't much, it's just a start on trying to understand arraylist. Denny
klaus Expert Licensed User Longtime User May 29, 2009 #8 Try the attached program. It works on my desktop XP, and should also work on yours. The problem you have is that you declare ArrayList1 as an ArrayList object and you also declare an Array varaible with the same name ArrayList1. And as you put the brackets in the code line the program assumes that it is an Array variable and not an ArrayList object. Best regards. Attachments MoviesNew.sbp MoviesNew.sbp 465 bytes · Views: 401 Last edited: May 30, 2009
Try the attached program. It works on my desktop XP, and should also work on yours. The problem you have is that you declare ArrayList1 as an ArrayList object and you also declare an Array varaible with the same name ArrayList1. And as you put the brackets in the code line the program assumes that it is an Array variable and not an ArrayList object. Best regards.
D dennishea Active Member Licensed User May 30, 2009 #9 Thanks Klaus, that helped quite abit. When I'm done I will explain what it's for. Thanks again for your and agrahams help. Denny
Thanks Klaus, that helped quite abit. When I'm done I will explain what it's for. Thanks again for your and agrahams help. Denny