FMPRO-L Archives

June 2011, Week 4

FMPRO-L@LISTSERV.DARTMOUTH.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Jonathan Fletcher <[log in to unmask]>
Reply To:
FileMaker Pro Discussions <[log in to unmask]>
Date:
Wed, 22 Jun 2011 20:19:25 -0400
Content-Type:
text/plain
Parts/Attachments:
text/plain (48 lines)
IsValid refers to the data type. It is not solely to test for the presence of a related value.

From the documentation:

> Returns 0 (False) if:
>  • A record contains an invalid value because of a field type mismatch (text in a date field, for example)
>  • FileMaker Pro cannot locate (temporarily or permanently) the related table in which the referenced field is defined
>  • A field has been deleted from a related table, and therefore the references to that field in the parent table are invalid
> Otherwise, it returns 1 (the data is valid).

So the circumstances where you might get a wrong answer is if you have an invalid data situation.

Best not to get into the habit.

j.

On Jun 22, 2011, at 7:16 PM, Tim Mansour wrote:

> On 23 June 2011 08:02, Jonathan Fletcher <[log in to unmask]> wrote:
>> Not IsValid. That may give you a wrong answer under certain circumstances. The way described prior in this thread is correct.
> 
> Can you expound, Jonathan?
> 
> 
> -- 
> Tim Mansour <[log in to unmask]>
> Neologica Print & Promotions ABN 63 904 335 408
> Certified FileMaker 10 Developer
> PO Box K1163 : Haymarket NSW 1240
> Mobile 0405 500 846




--
Jonathan Fletcher
FileMaker 9 & 10 Certified Developer

Fletcher Data Consulting
[log in to unmask]
http://www.fletcherdata.com
502-509-7137

Kentuckiana's FileMaker Users Group
Next meeting: June 28, 12:00 pm to 3:00-ish
Listserv signup: http://fmpug.com/mailman/listinfo/louisville_fmpug.com
Blog: http://www.kyfmp.com

ATOM RSS1 RSS2