how : do not show 0 (Zero) in TEXTBOX ?

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

Post Reply
User avatar
AUGE_OHR
Posts: 2060
Joined: Sun Aug 25, 2019 3:12 pm
DBs Used: DBF, PostgreSQL, MySQL, SQLite
Location: Hamburg, Germany

how : do not show 0 (Zero) in TEXTBOX ?

Post by AUGE_OHR »

hi,

when have 0 (Zero) in TEXTBOX as NUMERIC i do not want to show 0 ... how :idea:
have fun
Jimmy
User avatar
andyglezl
Posts: 1461
Joined: Fri Oct 26, 2012 7:58 pm
Location: Guadalajara Jalisco, MX
Contact:

Re: how : do not show 0 (Zero) in TEXTBOX ?

Post by andyglezl »

:? :? No se porqué razón, pero quizá...
*-------------------------------------------
:? :? I don't know why, but maybe ...


TEXTBOX as TEXT
and
Form1.TextBox1.Value := ALLTRIM( STR( VAL( Form1.TextBox1.Value ) ) )
Andrés González López
Desde Guadalajara, Jalisco. México.
User avatar
AUGE_OHR
Posts: 2060
Joined: Sun Aug 25, 2019 3:12 pm
DBs Used: DBF, PostgreSQL, MySQL, SQLite
Location: Hamburg, Germany

Re: how : do not show 0 (Zero) in TEXTBOX ?

Post by AUGE_OHR »

andyglezl wrote: Mon Jun 14, 2021 3:51 am :? :? No se porqué razón, pero quizá...
*-------------------------------------------
:? :? I don't know why, but maybe ...


TEXTBOX as TEXT
and
Form1.TextBox1.Value := ALLTRIM( STR( VAL( Form1.TextBox1.Value ) ) )
you are right to use TEXTBOX this Way which is better to "manipulate" a String
only that i do NOT ALLTRIM() as i need it for Index too
have fun
Jimmy
Post Reply