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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Creating a Custom Function That Contains a Document Property Field

Status
Not open for further replies.

hhiebert

MIS
Feb 28, 2003
25
0
0
CA
Now that CR 9 offers Custom Functions I was hoping to save myself some work by moving the following formula into a function...up till now I was copy the formula from report to report. However, when I try to create a custom function in Crystal Reports I get the error "This function cannot be used within a function" when I try to save it. I've tried Crystal Decisions Support, 9 days later all I've heard is that they're still working on it.

The formula is as follows with Filename being the Document Property field.

Global StringVar Ref := Filename;

Do Ref := Right(Filename, Length(Ref) - InStr(Ref, "\")) While
InStr(Ref, &quot;\&quot;) <> 0;

Ref;

hh...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top