Sarah83 Posted November 12, 2004 Report Posted November 12, 2004 Hi! If I have two arrays with 12 elements of strings and I will like to know if e.g. in both arrays the elements at position 4 are filled in with some values (I can check this with a blank string constant) and all others are blank how could I find out the position four? I thougt of a case structure in which I will list all possibilities. Sarah Quote
didierj Posted November 12, 2004 Report Posted November 12, 2004 Or might this be an approach: Didier Quote
hfettig Posted November 15, 2004 Report Posted November 15, 2004 If you take one of the sting array controls and an empty string constant, wire them both to a 'not equal' operator, the result is a boolean array. Each element of the array shows you if the corresponding element of the string array is filled or not. Now if you check position 4 of the boolean array it shows you whether that position is filled. Do that for both arrays and 'and' the results and you will know, whether both positions are filled. Quote
Michael Aivaliotis Posted November 17, 2004 Report Posted November 17, 2004 Or might this be an approach: Didier 2633[/snapback] Everyone... Let's not forget the "Empty String/Path?" Function. It can also check if a string is empty (blank) with only one node. Quote
didierj Posted November 17, 2004 Report Posted November 17, 2004 you're right (first think, then write...) Quote
Jim Kring Posted November 18, 2004 Report Posted November 18, 2004 Everyone... Let's not forget the "Empty String/Path?" Function. It can also check if a string is empty (blank) with only one node. 2671[/snapback] "Empty String/Path?" is very useful. Here is an undocumented feature of that function -- checking if a Variant is null. :thumbup: Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.