Getting an area string from AreasAndLengths task
I've been looking at the Code Gallery sample "Create a DataSet out of the results of the AreasAndLengths Task". I think this could provide the solution I need for limiting the size of an area that can be selected by the Extract workflow.
What I'd like to have is a condition where if the size of the selected area is too large, a message to select a smaller area is displayed and the user taken back to the start of the workflow.
The sample uses an "Invoke Method" to send the output to an XML file. What can I do to make that area information available as an integer that could be used in an "If" condition?
Thanks,
Steve
-
You should be able to assign the results directly to a variable of type 'double', instead of adding them to the datatable, ie:
double area = ZipCodesAreasAndLengths.Areas(index);
This can then be used directly in a if-then statement -- there's no real need here to convert to an int first.
0
Du måste logga in om du vill lämna en kommentar.
Kommentarer
1 kommentar