Many thanks. That did it.
One more tiny bit of knowledge in my over-long FM education!
Ron

-----Original Message-----
From: FileMaker Pro Discussions [mailto:[EMAIL PROTECTED] On
Behalf Of Jason L DeLooze
Sent: Monday, November 10, 2008 3:27 PM
To: [email protected]
Subject: Re: Script problem

Try:

Set Field [Registration::DateofRegistration: GetAsDate( "1/1/2008" )]



On 11/10/08 at 3:23 PM -0500, Ron wrote:
> I am trying to create some test data in a table named Registration and
layout Registration: I want to populate the DateofRegistation field with a
proper date.
> All I get is a ? in the field, all records, indicating an invalid value I
assume.
> I can enter a date in the field manually OK.
>  
> Script is;
> Go to Layout["Registration"(Registration)]
> Go To Record/Request/Page [First]
> Set Variable [$count;Value 1]
> Loop
> If [$count<1000]
>                 Set Field [Registration::DateofRegistration: 1/1/2008]
> End if
> Etc. for other dates
> Set Variable [$count; Value:$count+1]
> Go To Record/Request/Page [Next;Exit after last]
> End Loop
>  
> And was there a way to Copy / Paste this? Scriptmaker would not let me do
itÅ 
>  
> FM Pro 8.5 advanced, windows.
>  
> Thanks for any help.
> Ron Carr

Reply via email to