BobyIsProgress
Member
Hello everyone,
It's been a while. I hope you are all doing well.
While making some new app, I was asking my self this:
I have a table of purchase order that as the type of purchase ordre in index.
I want to display 3 differrent purchase order.
So I was thinking of two solution:
1.
2.
What do you think and why ?
It's been a while. I hope you are all doing well.
While making some new app, I was asking my self this:
I have a table of purchase order that as the type of purchase ordre in index.
I want to display 3 differrent purchase order.
So I was thinking of two solution:
1.
Code:
DEF VAR listType AS CHAR NO-UNDO.
DEF VAR k AS INT NO-UNDO.
listType = "type1,type2,type3" .
DO k = 1 TO NUM-ENTRIES(listType):
FOR EACH ORDER WHERE ORDER.ordtyp = ENTRY(k,listType)
ORDER.ordcomplete = FALSE NO-LOCK:
END.
END.
2.
Code:
DEF VAR listType AS CHAR NO-UNDO.
listType = "type1,type2,type3" .
FOR EACH ORDER WHERE LOOKUP(ORDER.ordtyp,listType) > 0
AND ORDER.ordcomplete = FALSE NO-LOCK:
END.
What do you think and why ?