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

Functions that can be used in PowerPrompt Script

Status
Not open for further replies.

Firecat1970

IS-IT--Management
May 25, 2003
68
HK
Hello,

I am adding a column to a report using Powerprompt and somehow I would like Date appear as MonthName, Year. e.g. 'July, 2003'

My backend DB is MSSQL2000

So I use the following :-
GetReport().AddDataItem("A new column", "MonthName([\\Table1\Date1])");

So normally I want to add the year part as well, and I try to use year() function. How can I convert the number to string?

I try
"MonthName([\\Table1\Date1]) + ', ' + number-to-string(year([\\Table1\Date1]))"

Now, powerprompt complains about number-to-string and it doesn't seem to recognise this function at all.

Any suggestion? Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top