Function: Convert String to Integer

2015-03-06 Thread Ray Gellenbeck
Another I can't believe I've forgotten this and can't find it in the docs 
post...

Wasn't there a function that took a string and, presuming they were numbers, 
let you drop the integer equivalent into an int field?

something like IntField=INTEGER($CharField$)

I see currency conversion fields, but no text-to-number or number-to-text 
fields, and I know at least one direction will give you a mismatch error if you 
try just shoving one into another.

Thanks in advance (and a beer at Insight 2015) to the first reply with the 
answer ;)

___
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org
Where the Answers Are, and have been for 20 years


Re: Function: Convert String to Integer

2015-03-06 Thread Misi Mladoniczky
Hi,

No it did not.

The problem was in searches etc where you could get a type mismatch.
Set-Fields assignments this has always worked.

Best Regards - Misi, RRR AB, http://www.rrr.se (ARSList MVP 2011)

Ask the Remedy Licensing Experts (Best R.O.I. Award at WWRUG10/11/12/13):
* RRR|License - Not enough Remedy licenses? Save money by optimizing.
* RRR|Log - Performance issues or elusive bugs? Analyze your Remedy logs.
Find these products, and many free tools and utilities, at http://rrr.se.

 Ok, but in the old days, didn't that toss up a mismatch error?  Did they add
 some intelligence/library behind the scenes?

 ___
 UNSUBSCRIBE or access ARSlist Archives at www.arslist.org
 Where the Answers Are, and have been for 20 years


___
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org
Where the Answers Are, and have been for 20 years


Re: Function: Convert String to Integer

2015-03-06 Thread Grooms, Frederick W
Just assign it
   IntField = $CharField$

Fred

-Original Message-
From: Action Request System discussion list(ARSList) 
[mailto:arslist@ARSLIST.ORG] On Behalf Of Ray Gellenbeck
Sent: Friday, March 06, 2015 11:32 AM
To: arslist@ARSLIST.ORG
Subject: Function: Convert String to Integer

Another I can't believe I've forgotten this and can't find it in the docs 
post...

Wasn't there a function that took a string and, presuming they were numbers, 
let you drop the integer equivalent into an int field?

something like IntField=INTEGER($CharField$)

I see currency conversion fields, but no text-to-number or number-to-text 
fields, and I know at least one direction will give you a mismatch error if you 
try just shoving one into another.

Thanks in advance (and a beer at Insight 2015) to the first reply with the 
answer ;)




___
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org
Where the Answers Are, and have been for 20 years


Re: Function: Convert String to Integer

2015-03-06 Thread Ray Gellenbeck
Ok, but in the old days, didn't that toss up a mismatch error?  Did they add 
some intelligence/library behind the scenes?

___
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org
Where the Answers Are, and have been for 20 years