I receive weather alerts info from a plugin. The titles associated with the alert are not very descriptive. I am trying to grab the title form the first part of the alert string.
I have tried Title = Left(FirstAlert,InStr(FirstAlert,"... Weather")), but it does it does not work. It return a blank title.
What am I doing incorrectly & or is there a better way to accomplish this ?
Code:
FirstAlert =...Dense fog advisory remains in effect until 10 am EST Monday... Weather... widespread fog, with areas of dense fog, will persist into the overnight hours. Northeast winds around 5 mph. Impacts... locations impacted by dense fog will have surface visibilities of one quarter of a mile or less with localized visibilities near zero. However, highly variable visibilities can be expected. Precautionary/preparedness actions... motorists are urged to use caution and account for variable driving conditions by slowing down and allowing extra time.
What am I doing incorrectly & or is there a better way to accomplish this ?
Comment