dbTalk Databases Forums  

Simple Log File

comp.databases.filemaker comp.databases.filemaker


Discuss Simple Log File in the comp.databases.filemaker forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
JC
 
Posts: n/a

Default Simple Log File - 11-02-2006 , 02:38 PM






I have created a text field name "log file" I am trying to capture
errors in scripts by "set field" if something goes wrong.

I have seen it whereby each time a script runs, the Log File field
"appends" itself with each new message. When I have set one up, each
time I add to the script "set field" it overwrites the last error
message so I can't see each step.

How do I make it "append" the field with the error message instead or
writing over it?

Thanks
JC


Reply With Quote
  #2  
Old   
Matt Wills
 
Posts: n/a

Default Re: Simple Log File - 11-02-2006 , 03:29 PM






My guess is you have a script step that says only

Set Field [ Log File ; Message ]

That will overwrite.

What you want is to set it to what's already there plus the new
information. This example adds a new line:

Set Field [ Log File ; Log File & "Pilcrow" & Message ]

(Pilcrow being the return or paragraph character found in the
calculation window)

Matt

In article <1162499902.280400.40330 (AT) m73g2000cwd (DOT) googlegroups.com>,
"JC" <jc (AT) jclewis (DOT) biz> wrote:

Quote:
I have created a text field name "log file" I am trying to capture
errors in scripts by "set field" if something goes wrong.

I have seen it whereby each time a script runs, the Log File field
"appends" itself with each new message. When I have set one up, each
time I add to the script "set field" it overwrites the last error
message so I can't see each step.

How do I make it "append" the field with the error message instead or
writing over it?

Thanks
JC

Reply With Quote
  #3  
Old   
JC
 
Posts: n/a

Default Re: Simple Log File - 11-02-2006 , 03:37 PM




Matt Wills wrote:
Quote:
My guess is you have a script step that says only

Set Field [ Log File ; Message ]

That will overwrite.

What you want is to set it to what's already there plus the new
information. This example adds a new line:

Set Field [ Log File ; Log File & "Pilcrow" & Message ]

(Pilcrow being the return or paragraph character found in the
calculation window)

Matt

In article <1162499902.280400.40330 (AT) m73g2000cwd (DOT) googlegroups.com>,
"JC" <jc (AT) jclewis (DOT) biz> wrote:

Matt:

You are exactly right, thanks for your help.

jc
Quote:
I have created a text field name "log file" I am trying to capture
errors in scripts by "set field" if something goes wrong.

I have seen it whereby each time a script runs, the Log File field
"appends" itself with each new message. When I have set one up, each
time I add to the script "set field" it overwrites the last error
message so I can't see each step.

How do I make it "append" the field with the error message instead or
writing over it?

Thanks
JC


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.