Hello to all,
Need small help, I need to run the whole process for EUR and if the local currencz is present then for that as well and if not then it should move to the next row. Suggestions please
Hello to all,
Need small help, I need to run the whole process for EUR and if the local currencz is present then for that as well and if not then it should move to the next row. Suggestions please
You can follow the below steps.
Read Range to read the excel to a data table
For Each Row in DT
IF row("Curr").ToString.Equals("EUR")
-- Process for EUR comes here
End IF
IF Not String.isNullOrEmpty(row("local curr").ToString)
-- process for local currency comes here
End IF
End FOR
Let know if this helps
Thank you for the reply, actually I need all the other values as well for ex(JED, JHRGD,EUR, ), in this I need all the values in my process. But the process will take EUR from it and then whole proces. Once it fininsh the process it checks for the local curr, if its thr then same process and if not then end the process and go to the next row.Fetchz the second row
Int ProcessIdentity = 1; -- Describes whether to process Curr or local curr
While ProcessIdentifier <= 2
Begin
For Each Row in DT
IF ProcessIdentifier == 1
IF row("Curr").ToString.Equals("EUR") -- Have multiple conditions here or you can remove the condition
-- Process for EUR comes here
End IF
End IF
IF ProcessIdentifier == 2
IF Not String.isNullOrEmpty(row("local curr").ToString)
-- process for local currency comes here
End IF
End IF
End FOR
ProcessIdentifier = ProcessIdentifier + 1
End While
Try this logic…
You want to swap with the before value until there is an empty value?
is it possible to extract the whole first row …
Yes you can keep in the for each row and extract a row based on some condition that you give
Then break the loop after first iteration…