Theotokos Posted August 20, 2014 Report Share Posted August 20, 2014 Bom Dia! Como faço para converter uma valor em string (1.520,86) para numerico (1520.86) sendo que usando VAL() não dá certo, converte para 1.52? Quote Link to comment Share on other sites More sharing options...
sambomb Posted August 20, 2014 Report Share Posted August 20, 2014 cVal := "1.520,86"nVal := Val( StrTran( StrTran( cVal, "."),",",".") )? nVal //-- 1520.86 kapiaba and Theotokos 2 Quote Link to comment Share on other sites More sharing options...
Theotokos Posted August 20, 2014 Author Report Share Posted August 20, 2014 Valeu sambomb ! Deu Certo!!!! Quote Link to comment Share on other sites More sharing options...
sambomb Posted August 20, 2014 Report Share Posted August 20, 2014 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.