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

Number Function Not Working - Unknown Function Name Error???

Status
Not open for further replies.

kaul125

Programmer
Jan 29, 2002
87
US
I'm trying to convert a string to a number using the Number() function. I'm using PB6.5 and when I try to compile my code I get the following error:

Unknown function name: number

Here is my code:

li_paptrac_number = Number(ls_paptrac_nbr)

I'm using the above code in an object function, which is part of a user object.

Is this a bug in PB? Because when I look this up in PB Help, it is a valid function. If this is not a valid function any more, how can I convert a string to a number?

Thanks,
Keith

 
Keith,

this is not a Powerscript function - it is a DataWindow function. Try Integer() or Long() instead.

Ed
 
in addition to integer and long , u can also use double, dec, real in case the string can contain decimal values.

RTEWARI
 
This worked!

Thanks for the input!!!

Keith
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top