July 29, 200817 yr Is it possible to skip dialog in a script when a Find doesn't find any records ? (resulting in an empty "found set" but not interrupting the script, Instant Web Publishing compatibility required) Thank you. Edited July 29, 200817 yr by Guest
July 29, 200817 yr Someone might correct me on this but could you use the Error Capture and Get (LastError) If [Get (LastError) = 401 ] Do this instead.... End If
July 29, 200817 yr Author The problem is not that the script stops - in FMP : I get a message box asking me if I want to continue event if there are no found record. (anyway I only really care about what happens in Instant Web Publishing) - in IWP, it just doesn't want to perform a Find that find no record, and it keep asking that I modify the find again and again. (I want to be able to perform a find that finds nothing)
July 29, 200817 yr Turn set error capture on. If you want to do something different if no records are found, do what grumbachr suggests (place it immediately after your perform find[] step). If no records are found, then Get(LastError) returns 401 when set error capture is on.
Create an account or sign in to comment