Ask the Expert

Generating a condition in the FOX code

We wish to generate a condition in the FOX code that is conditional upon part of a characteristic value. Assume the characteristic has the following values 0006010B01, 0006020B01. We only wish to process a function where the value "B01" is part of the characteristic value.

    Requires Free Membership to View

Let's assume the characteristic you want to use in the condition is Cost Center, then following FOX code checks the Cost Center values and if Cost Center number includes 'B01,' program assigns 5000 to the quantity key figure for that record.


CC = OBJV().

IF CC CP '*B01*'.

{0QUANTITY} = 5000.


You can include similar logic in your FOX code to transform data based on the characteristic value conditions. You can find detailed information about the usage of string functions in the FOX on screen help (documentation).

This was first published in December 2004

There are Comments. Add yours.

TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to: