Hi
In Invoice Lines i have Field XYZ . In a document it can have same no in all lines or it can be different in some lines . I want to save Unique values in array and then display in Report Header.
Thanks
*This post is locked for comments
Hi
In Invoice Lines i have Field XYZ . In a document it can have same no in all lines or it can be different in some lines . I want to save Unique values in array and then display in Report Header.
Thanks
*This post is locked for comments
Hi,
You can code in this way.
matchfound:=false; //matchfound is a boolean variable
newValue := /*assign the new value which comes*/.
FOR i := 1 TO n DO BEGIN
IF newValue = array[i] THEN
matchfound:=true
ELSE
matchfound:=false;
if matchfound=false then
/*assign the new value to the array*/
END;
Hi
Can u pls help with 1 example
Thanks
Hi,
In order to find unique values you can run a loop in OnAfterGetRecord which runs every time a new value comes up, and compares if this new value is equal to the previously stored values in the array.
Hi
It can be Like this ID/B/123 , ID/D/4678 , ID/B/123 , ID/Z/A/123. In above scenarion i want value to be in variable i s
ID/B/123 , ID/D/4678 , ID/Z/A/123
Thanks
Hi
It can be Like this ID/B/123 , ID/D/4678 , ID/B/123 , ID/Z/A/123. In above scenarion i want value to be in variable i s
ID/B/123 , ID/D/4678 , ID/Z/A/123
Thanks
What kind of value it is ? You can use STRPOS function to check if that value exists.
Hi
How i will check only unique values are stored.
Thanks
Get those values based on the lines in the OnAfterGetRecord of the Header DataItem and then store that value in a text variable with a separator instead of array because if you use array you need to set every dimension as datasource and it could vary based on the lines.
Why do you want to store it in array ?
André Arnaud de Cal... 291,711 Super User 2024 Season 2
Martin Dráb 230,458 Most Valuable Professional
nmaenpaa 101,156