Array problem
Kenneth Brody
kenbrody at spamcop.net
Tue May 31 14:24:05 PDT 2016
On 5/31/2016 5:13 PM, Richard Kreiss wrote:
[...]
> I have checked the value of dcode[“1”] through the processing by using
> msgbox ‘Line NN dcode =”<dcode[“1”]
>
> At line 13 the msgbox shows the value in dcode[“1”]; by line 15
> dcode[“1”] is empty. Note however temp[“1”} is not empty. The temp array
> mirrors the dcode array.
>
> After checking the entry with more than one value, the whole array is empty.
>
> Can anyone explain why dcode loses all of its values after executing line 12?
[...]
> 8 ------- - - - - - - - - - - - - - - - -
> ◄ If:
> Then: dim dcode(21)(4,.0):za
[...]
> 11 ------- - - - - - - - - - - - - - - - -
> ◄ If:
> Then: msgbox "Line 11 Dcode ="<dcode["1"]
> 12 ------- - - - - - - - - - - - - - - - -
> ◄ If: doc_code lt dc
> Then: lookup - k=dc i=F –NG
> 13 ------- - - - - - - - - - - - - - - - -
> ◄ If:
> Then: msgbox "Line 13 Dcode ="<dcode["1"]
[...]
The lookup dash in line 12 moves you to a different record. What happens to
non-global dummy fields when you move to a new record?
--
Kenneth Brody
More information about the Filepro-list
mailing list