Foros Club Delphi

Foros Club Delphi (https://www.clubdelphi.com/foros/index.php)
-   Varios (https://www.clubdelphi.com/foros/forumdisplay.php?f=11)
-   -   Help!!! (https://www.clubdelphi.com/foros/showthread.php?t=2093)

DiegoDPF 08-07-2003 16:03:25

Help!!!
 
Hola, Gente..

Disculpen la molestia, es que no tengo el Help de Delphi instalado y no se como hacer para convertir un String en un Money.

Si alguin me puede decir el nombre de la funcion, se lo agradecere :(

Salu2.

Ruben_Cu 08-07-2003 16:26:11

Hola DiegoDPF, la función que requieres es StrToCurr te adjunto ayuda de delphi sobre la función
Cita:

Converts a string to a Currency value.

Unit

SysUtils

Category

floating point conversion routines

function StrToCurr(const S: string): Currency;

Description

Call StrToCurr to convert a string that represents a floating-point value to the corresponding Currency value. The source string, S, must consist of an optional sign (+ or -), a string of digits with an optional decimal point, and an optional 'E' or 'e' followed by a signed integer. Leading and trailing blanks are ignored.

The DecimalSeparator global variable defines the character that is used as a decimal point. Thousand separators and currency symbols are not allowed in the string. If the string doesn't contain a valid value, StrToCurr raises an EConvertError exception.
Saludos

DiegoDPF 08-07-2003 16:36:48

Gracias Ruben:D

Saludos!!


La franja horaria es GMT +2. Ahora son las 22:44:36.

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
Traducción al castellano por el equipo de moderadores del Club Delphi