Simply set the TYPE of the input pin to REAL on the object where the string is going. Its one of the many things in VEE that are only easy once you know how.
--- On Thu, 01 May 97 16:52:00 EDT "Gustin, Mike" <mgustin@smsmfg.sms.siemens.com> wrote: > > Can anybody suggest an easy way to convert a string to a real number? > > I appreciate any help. > > Thanks > Mike Gustin > mgustin@smsmfg.sms.siemens.com
---------------End of Original Message-----------------
------------------------------------------------------------------------ John Potts: potts@GDEsystems.com, Date: 05/01/97, Time: 14:13:37 phone: (619) 675-5774, fax: (619) 675-1999 GDE Systems Inc., 16550 W. Bernardo Dr., MZ: 1681-S, SanDiego, CA 92123 "Life is playing a violin solo in public and learning the instrument as one goes on." --> Samuel Butler ------------------------------------------------------------------------
--- On Thu, 01 May 97 16:52:00 EDT "Gustin, Mike" <mgustin@smsmfg.sms.siemens.com> wrote: > > Can anybody suggest an easy way to convert a string to a real number? > > I appreciate any help. > > Thanks > Mike Gustin > mgustin@smsmfg.sms.siemens.com
---------------End of Original Message-----------------
Mike, There are 2 methods. You can use a "From String" object and select the type to Real (which happens to be the default). The alternative is to use a formula and change the data type on the input pin to real.
Using the from string has the advantage of also stripping out any text from the string. The formula method may execute somewhat faster. It did up until VEE 3.12. I have not done any benchmarks like this since then.
string is going. Its one of the many things in VEE that are only easy
once you know how.
--- On Thu, 01 May 97 16:52:00 EDT "Gustin, Mike"
<mgustin@smsmfg.sms.siemens.com> wrote:
>
> Can anybody suggest an easy way to convert a string to a real number?
>
> I appreciate any help.
>
> Thanks
> Mike Gustin
> mgustin@smsmfg.sms.siemens.com
---------------End of Original Message-----------------
------------------------------------------------------------------------
John Potts: potts@GDEsystems.com, Date: 05/01/97, Time: 14:13:37
phone: (619) 675-5774, fax: (619) 675-1999
GDE Systems Inc., 16550 W. Bernardo Dr., MZ: 1681-S, SanDiego, CA 92123
"Life is playing a violin solo in public and learning the instrument as
one goes on." --> Samuel Butler
------------------------------------------------------------------------