Skip to main content

Check fro blank attribute?

Comments

2 comments

  • Permanently deleted user

    Hi Gareth

    first thing is that there will likely be no Attribute returned is if the value is NULL in the database ( as compared to empty string).

    So need to test if that Attribute exists first and then check what the value is ie:

    If Activity with the test being:

      not selectedFS.First().Attributes("INCIDENT_NAME") is nothing

    and if that is sucessful then

    If Activity with the test being:

    selectedFS.First().Attributes("INCIDENT_NAME").Value = ""

    then do stuff.

    Makes sense?

    Ralph Price

    0
  • Permanently deleted user

    Ralph, 

    I'll give it a crack.. thanks mate..

    GF

     

    edit: worked like a treat! thanks again! Too logical for a non-programmer like me ; )

    0

Please sign in to leave a comment.