FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour How to convert a string "12*12+5" into number 149?
Posts: 474
Joined: Sun Oct 30, 2005 06:37 AM
How to convert a string "12*12+5" into number 149?
Posted: Fri Nov 07, 2014 10:22 AM

Hi ,
How to convert a string "12*12+5" into number 149?

Tks!
Shuming Wang

http://www.xtech2.top
Mobile:(86)13802729058
Email:100200651@qq.com
QQ:100200651
Weixin: qq100200651
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: How to convert a string "12*12+5" into number 149?
Posted: Fri Nov 07, 2014 10:25 AM
Shuming,

Code (fw): Select all Collapse
function test()

   local nVal

   MsgInfo( nVal := &( "12*12+5" ) )

return nil
regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion