Hello uakash7
Can you check that I have understood correctly your logic ( I think you have a couple of typos in your explanation and shown output )
??3??
??8:00??
Code:' <forecast> ' #STEP 1 Start Print #intFile, "<Forecast>" ' <Entity>700</Entity> ' #STEP 1 Start Print #intFile, "<Entity>" & Entity ID & "</Entity>" ' <data> ' #STEP 2 Start Print #intFile, "<Data>" ' <date> ' #STEP 2 Start Print #intFile, "<date>" ' <day>19</day> ' #STEP 2 Start Print #intFile, "<day>" & day & ' <month>2</month> ' #STEP 2 Start "</day><month>" & month & "</month> ' <year>2021</year> ' #STEP 2 Start <year>" & yeear & "</year>" ' </date> ' #STEP 2 Start </date>" ' <time>8:00</time> ' #STEP 3 START Print #intFile, "<time>" & time & "</time>" ' Check if Entity ID in first row = Entity ID in 2nd row ' and date in first row = date in 2nd row then ' <time>8:30</time> ' repeat STEP 3 for 2nd row and so on ' </data> ' #STEP 3 END ' Check if Entity ID in first row = Entity ID in 2nd row ' and date in first row IS NOT = date in 2nd row then' ' repeat STEP ??3?? 2 for 2nd row and so on ' <data> ' <date> ' <day>20</day> ' <month>2</month> ' <year>2021</year> ' </date> ' <time> ??8:00?? 9.00 </time> ' </data> ' </forecast> ' STEP 2 END Print #intFile, "</forecast>" ' If Entity ID is not same as in previous row repeat STEP 1 ' ' <forecast> ' <Entity>701</Entity> ' <data> ' <date> ' <day>19</day> ' <month>2</month> ' <year>2021</year> ' </date> ' <time>9:30</time> ' </data> ' </forecast> ' <forecast>
Alan




Reply With Quote
Bookmarks