copy a field from vle to ble

vle.RESET;
ble.RESET;
vle.SETRANGE(vle.“Document No.”,ble.“Document No.”);
vle.SETRANGE(vle.“Posting Date”,ble.“Posting Date”);
ble.RESET;
IF vle.FINDSET THEN
REPEAT
ble.“Currency Code”:=vle.“Currency Code”;
ble.“Amount (INR)”:=vle.Amount;
UNTIL vle.NEXT=0;

i hv trie out this code but it is still not copying any thing

I need this becos when i m reconsiling bank it is nt showing entry in any other currency which is showing in vendor ledger entry .

so i want to copy that currency and amount in a new field which is created in bank ledger entry

shouldn’t there be ble.modify just before UNTIL statement?

@Koshe, the “ble.MODIFY” is missing indeed…

And probably first a “ble.GET(…)” in the repeat-loop, unless “Currency Code” is it’s primary key.