Software Venture Consulting
ToMarket

FileMaker Pro downloads & Resources
FileMaker Custom Functions
FileMaker Web Viewer Examples
FileMaker Pro & Lasso Consulting
Training
FileMaker Books
FileMaker Articles
FileMaker Error Reference

Free Web Tools
Free FileMaker Tools

Personal Pages
Videos
Adventures
Links

Shopping Cart
Shopping Cart

Search:

Free Newsletter
Signup


Brian Dunning
Contact me | vCard


Brian on CNN
Brian on CNN


Brian on CBS Radio


Privacy Policy



FileMaker is a registered trademark of FileMaker, Inc. in the U.S. and other countries.

 FileMaker Pro Custom Functions

Search  |  List  |  Show Random  |  Upload  |  Add This to Your Site

cfStackAppendSlide( pInput; pVariableName; pStackDepth )

Tammo Fornalik / Felix Hausberner, n/a
n/a

Append a new entry to a stack (global var) _and_ delete first entry if count of values exceeds stack depth.

Sample Input:
1. Number of Entries ≤ 3
cfStackAppendSlide( "Edward Berger"; "$$Films_StoredSearchterms"; 3 )

2. Number of Entries > 3
cfStackAppendSlide( "Edgar Berger"; "$$Films_StoredSearchterms"; 3 )
Sample Output:
1.
Multiline adventures [line 1]...
Multiline adventures [line 2]
Heavy searches
Edward Berger

2.
[note: deletes entry number 1 if number of entries exceeds 3]:

Heavy searches
Edward Berger
Edgar Berger


 Then copy & paste into FileMaker Advanced's Edit Custom Function window.

if you have myFMbutler's Clip Manager installed

Description:

call: cfStackAppendSlide( "Edward Berger"; "$$Films_StoredSearchterms"; 5 ) or
call: cfStackAppendSlide( "Edward Berger"; "Films_StoredSearchterms"; 5 ) .
this will append the string "Edward Berger" as a new entry of stack "$$Films_StoredSearchterms".
if the stack contains less than 5 entries, "Edward Berger" will become the last entry of the stack and that's all.
if the stack already contains 5 entries, the 1st entry will be deleted while the 2nd becomes 1st,
3rd becomes 2nd, 4th becomes 3rd, 5th becomes 4th and the new 5th becomes "Edward Berger".
return: complete stack.

Note: these functions are not guaranteed or supported by BrianDunning.com. Please contact the individual developer with any questions or problems.

This is my Custom Function and I want to edit it

digg this page | del.icio.us this page

Custom Functions Widget
Download the Custom Function Dashboard Widget for OS X
Keep all the latest Custom Functions right at your fingertips!

Newest Custom Functions:

1. PVofFV ( FutureVal , Interest , Term )
  (Sat, May 10, 6:52pm)
2. Edate ( thedate ; months )
  (Sat, May 10, 5:21pm)
3. FormatDate( DatetoFormat )
  (Thu, May 08, 6:05pm)

RSS Feed of Custom Functions

Quick Poll...
Are you mainly Mac
or mainly Windows?
 • Mac
 • Windows
View the answers

ChartMaker Pro 7

Charts and graphs in your FileMaker 5/6/7/8 solution without a plug-in. Click here.

Custom Function Authors:
Link to all of your own custom functions on this site with the following URL:
http://www.briandunning.com/filemaker-custom-functions/results.php?author=Your Name Here