Arrays ???
Posted in 1996
I'm a bit new to 4gl, and I have a question regarding Arrays... On a screen form, I have the user input a bunch of similar values: eg. INPUT BY NAME Integer1, Integer2, Integer3, Integer4, .... etc. In the code, I would like to place all of the entered values into an array. (Of course, the user doesnt have to place a value in every field). What I have now is: IF Integer1 IS NOT NULL THEN ArrayIDX = ArrayIDX + 1 IntegerArray[ArrayIDX] = Integer1 END IF IF Integer2 IS NOT NULL THEN ArrayIDX = ArrayIDX + 1 IntegerArray[ArrayIDX] = Integer2 END IF ... And So On. Is there an easier/cleaner way to do this? I came from Clipper(DOS) which has the AAdd() function which was designed for just this purpose, but I don't see an equivalent 4gl function.... Thanks John Cokos (CCS)