FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin para Harbour/xHarbour Incompatibilidad de tipos
Posts: 9
Joined: Sat Dec 29, 2007 12:44 PM
Incompatibilidad de tipos
Posted: Thu Jan 31, 2008 11:29 PM

Hola yo nuevamente sigo convirtiendo y pasando. je je en esta ocacion el error surge al convertir un tipo de variable a otro mas especificamente numero con 2 decimales a caracter si yo hago
VARI:= LEN(ALLTRIM(STR(NUMVARI)))
el resultado de vari es "0.0000"
he verificado y agrego el mandato set decimals to 2 ; set fixed on. Y aun asi no logro hacer una conversion deceada. ya que lo que necesito es que vari devuelva "0,00". Gracias y saludos.

Posts: 401
Joined: Thu Oct 06, 2005 10:15 PM
Incompatibilidad de tipos
Posted: Thu Jan 31, 2008 11:43 PM
Prueba esto a ver si es asi.
cVar := AllTrim( Str( nVal, 10,2 ) )
Saludos,



Pablo Alberto Vidal

/*

------------------------------------------------------

Harbour 3.2.0, Fivewin 17.02, BCC7

------------------------------------------------------

*/

Continue the discussion