Hello Friends, I have a doubt if I am doing this wrong, since I explain to you in I have 5 variables that I want to verify that they are not empty/null and I want to store them in a string and then launch a message with the empty variables that I am concatenating, as you see I am using choose case for each of the variables and I am putting it that it must always be a position within the array, because if I don't put the position always passes the first one and it goes to the next position, my question here is: is it possible to do it with a single line of code this?
or I'm doing it the right way.
Thank you for your recommendations, Greetings
String as_Fields[] = {'AAAA','BBBB', 'CCCCC' , 'DDDDD', 'EEEEE'}
For ll_positionAt=1 to 5
Choose Case True
Case (Len(Trim(ls_field)) = 0 Or IsNull(ls_field)) And ll_positionAt= 1
ls_Campo += as_Fields[ll_positionAt] + ','
Case (Len(Trim(ls_field1)) = 0 Or IsNull(ls_field1)) And ll_positionAt = 2
ls_Campo += as_Fields[ll_positionAt] + ','
Case (Len(Trim(ls_field2)) = 0 Or IsNull(ls_field2)) And ll_positionAt = 3
ls_Campo += as_Fields[ll_positionAt] + ','
Case (Len(Trim(ls_field3)) = 0 Or IsNull(ls_field3)) And ll_positionAt = 4
ls_Campo += as_Fields[ll_posicionAt] + ','
Case (Len(Trim(ls_field4)) = 0 Or IsNull(ls_field4)) And ll_positionAt = 5
ls_Campo += as_Fields[ll_positionAt] + ','
End Choose
Next
Wrong prefix: ls_fieldCount => ll_fieldCount (end-value in for loop)
Dual underscore: as__Fields => as_Fields (else statement)
Sorry /Michael