Vasile1991
Programmer
Hello, I have a problem with arrays and determining the size of them.
I'm writing a complex select statement for determining only the the IDs I have in that table for those products.
I have simplified it to make it easier to understand... even simplified it will still not work...
1 SELECT product.name ;
2 FROM product;
3 WHERE alltrim(product.name) == alltrim(VVname) ;
4 INTO ARRAY arrayIDs
5
6 IF ALEN(arrayIDs) (Here I want to say that if it has no records show that message)
7 MESSAGEBOX("No results found.", 48, "Error")
8 RETURN
9 ENDIF
This kinda worked before... but I made some major changes to the project (this forms only) and now it seems it' not...
VVname is the control source I have from a textbox in a form... There are all links made with the database and everything is working fine. Only this problem :
The problem is that on row 6, when ALEN should be executed, it says the array doesn't not exist (arrayIDS not found). What am I missing? And No, there should be data found.
Please help me out..
Thank you, Vasile.
I'm writing a complex select statement for determining only the the IDs I have in that table for those products.
I have simplified it to make it easier to understand... even simplified it will still not work...
1 SELECT product.name ;
2 FROM product;
3 WHERE alltrim(product.name) == alltrim(VVname) ;
4 INTO ARRAY arrayIDs
5
6 IF ALEN(arrayIDs) (Here I want to say that if it has no records show that message)
7 MESSAGEBOX("No results found.", 48, "Error")
8 RETURN
9 ENDIF
This kinda worked before... but I made some major changes to the project (this forms only) and now it seems it' not...
VVname is the control source I have from a textbox in a form... There are all links made with the database and everything is working fine. Only this problem :
The problem is that on row 6, when ALEN should be executed, it says the array doesn't not exist (arrayIDS not found). What am I missing? And No, there should be data found.
Please help me out..
Thank you, Vasile.