Jump to content

Position in arrays


Sarah83

Recommended Posts

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

Link to comment

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.

post-1022-1100526600.jpg?width=400

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.