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

String to number

Status
Not open for further replies.

nigelot

Technical User
Feb 5, 2002
21
GB
Hi
Iam trying to create a formula field that changes a string field to a number field (so I can use 'sum'in 'Type of summary' in a running total field.

The string field is called Sqm and only contains numbers ie 1000-

thanks

Nigel
(I have searched but can't find anything)
 
ToNumber() or Val(). Either should work nicely. Val() has additional functionality that is very nice, read the help files for details. Software Support for Macola, Crystal Reports and Goldmine
dgillz@juno.com
 
thanks for your prompt help

works a treat

Nigel
 
Create the formula

tonumber(Sqm)

If there is a possiblity the the field may not contian a number use the following to check the field:

if isnumeric(Sqm) then
tonumber(Sqm)

Mike

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top