desiree Posted March 11, 2005 Share Posted March 11, 2005 I have a script that starts by checking if a date field is populated. If it is it displays a message and exits the script. Something is causing the script to read the date field as populated when it's not. Any suggestions? Link to comment Share on other sites More sharing options...
Inky Phil Posted March 11, 2005 Share Posted March 11, 2005 Could the date field have a blank space in it maybe ? Phil Link to comment Share on other sites More sharing options...
desiree Posted March 14, 2005 Author Share Posted March 14, 2005 So far as I can tell, no. I am also not sure how a space would be getting into that field. Populating that field is one of the last things that would happen in this script. Link to comment Share on other sites More sharing options...
Maarten Witberg Posted March 14, 2005 Share Posted March 14, 2005 You can test by using the script step if[not IsEmpty(trim(your_field)) ] kjoe Link to comment Share on other sites More sharing options...
Robert Schaub Posted March 14, 2005 Share Posted March 14, 2005 What exactly does your If statement read? Is the field a true date field of is it text? Link to comment Share on other sites More sharing options...
desiree Posted March 28, 2005 Author Share Posted March 28, 2005 Yes it is a true date field Link to comment Share on other sites More sharing options...
Robert Schaub Posted March 28, 2005 Share Posted March 28, 2005 [ QUOTE ] What exactly does your If statement read? [/ QUOTE ] Does it read something like this? If IsEmpty(YourField) ##Do your task Else Exit Script End If Obviously the ## is just a comment , you would put your statement here. Link to comment Share on other sites More sharing options...
desiree Posted March 30, 2005 Author Share Posted March 30, 2005 actually it is a "not IsEmpty" Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.