Log In    |    Knowledge Base    |    4D Home
Tech Tip: How to programmatically change the title of a button
PRODUCT: 4D | VERSION: 2004.4 | PLATFORM: Mac & Win
Published On: June 16, 2006
Your current browser may not allow you to download the asset. We recommend Mozilla Firefox or Google Chrome.
Log In

The "BUTTON TEXT" command allows you to change the title of the button programmatically:

BUTTON TEXT ({*; }object; newTitle)

The command takes either the object name or variable name of the button and the new title as parameters, for example:

BUTTON TEXT (bDelete;" Delete")

In this example the label on the bDelete button would be set to " Delete".