Jump to content
Sign in to follow this  
RH Design

read current cell value in Filemaker

Recommended Posts

I am writing values to succesive cells in Filemaker 5.

When I go to a new cell, if its value is "" then I need to perform a different action.

I need something like ...if current cell = "" then ...etc.

Thanks

Share this post


Link to post
Share on other sites

Here's the syntax to set a variable to a field value. Use the variable to execute your conditional.

set SomeVariable to cell "SomeField" of record 1

Share this post


Link to post
Share on other sites

Thanks for your comment.

I see that I didn't explain the problem clearly.

To paraphrase the code in English:

repeat

go to the next cell

if this cell is empty then --(I don't know this cell's name)

do this

else

do that

end if

end repeat

My question is whether applescript has syntax to identify and

read the value of the cell it is currently in. (such as it

can with a record) This would make it easy, but I can't find

the magic words.

I realize that I can use FMP to get status(current Field Name)

and then get the cell value from that.

Bob

Share this post


Link to post
Share on other sites

It is not possible to get the value of "the current cell".

"Current" is only avable for record and layout.

To get the value of a cell, you must use the name or number from the cell.

something like :

tell application "FileMaker Pro"

repeat with x from 1 to (count fields)

if (get cell x of current record) = "" then

do this

else

do that

end if

end repeat

end tell

Jean-Marie -HOO;-)

[ September 29, 2001: Message edited by: Jean-Marie ]

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.