Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Conditional Text 2

Status
Not open for further replies.

Zugdud

IS-IT--Management
Feb 26, 2003
158
US
Hi guys, is there a way to print static text based on a condition? Like:

If not(IsNull{OrderHead.Character01})) Then
"Static Text 1"
Else
"Static Text 2"

?

Thanks!
 
Also if its possible, how about conditional "boxes" or underlines?
 
Sure you can. Just create a variable to hold your static text. Then put in your formula
If not(IsNull({OrderHead.Character01})) Then
"Static Text 1"
Else
"Static Text 2"
(Note the left parenthesis after isnull)
Then right click your field and pick format field, click on the border tab
select the x-2 button to the right of the border that you want and then place the formula that you want to test to put in a border
For example
if not(IsNull({OrderHead.Character01}))
then 1

The 1 will cause the border to print if the formula is true
 
Shouldn't it be
Code:
If not IsNull({OrderHead.Character01}) 
Then
   "Static Text 1"
Else
   "Static Text 2"

Madawc Williams
East Anglia, Great Britain
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top