Encerrado

Need to remove Leading Zeros appearing for Currency Values

I have a VB6 form that is used for adding data, updating exisiting data, and viewing the data for a record. The problem is for the fields in these forms that either populate or let you type in currency values such as $4,443 from the database. When you click on the actual masked edit box regardless of whether it is editable or not, the value in the box changes to $0,000,004,443 and puts all the leading zeros in place. How can I remove these leading zeros so the value stays solid at 4,443 all teh time with no comma problems or anything, cause some values will come from teh database, and some values will be added.

Right now I have this line of code that populates the field

[url removed, login to view] = format$(GetFieldValue(g_rsGetSusp("FieldName")),m_kstrmoney)

and m_kstrMoney = $0,000,000,000

I tried all kinds of combnations of setting the mask on the maskedit edit box and changing this format properties m_strMoney variable to something else like #,###,##0.00 and things but nothign would work.

Could someone please offer me a solid fix for this so I know exactly how to format that value that comes in and so that when u click ont eh field the value doesnt add in leading zeros.

Also make sure you tell me what to put for the mask and the m_kstrmoney since if they arent matchign sometimes you get invalid property value error message

## Deliverables

1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.

2) Deliverables must be in ready-to-run condition, as follows (depending on the nature of the deliverables):

a) For web sites or other server-side deliverables intended to only ever exist in one place in the Buyer's environment--Deliverables must be installed by the Seller in ready-to-run condition in the Buyer's environment.

b) For all others including desktop software or software the buyer intends to distribute: A software installation package that will install the software in ready-to-run condition on the platform(s) specified in this bid request.

3) All deliverables will be considered "work made for hire" under U.S. Copyright law. Buyer will receive exclusive and complete copyrights to all work purchased. (No GPL, GNU, 3rd party components, etc. unless all copyright ramifications are explained AND AGREED TO by the buyer on the site per the coder's Seller Legal Agreement).

## Platform

Windows 2000 Server Visual Basic 6 SP3

Habilidades: Engenharia, MySQL, PHP, Arquitetura de software, Teste de Software, Visual Basic

Ver mais: work values, what to program, what are work values, someone please hire me, i need a coder right now, how to make agreement, hire someone to type for you, format mask, visual basic edit, remove b, leading , currency source code, 2005 sp3, visual basic currency, visual basic problem, comma fix, vb6 forms, visual currency, record vb6, vb6 add record database, vb6 record database, vb6 type, php code currency, add record vb6, exisiting sites

Acerca do Empregador:
( 11 comentários ) United States

ID do Projeto: #3056863

18 freelancers estão ofertando em média $7 para este trabalho

BlueNinjaSW

See private message.

$4.25 USD em 1 dia
(41 Comentários)
6.2
mihaibejenariu

See private message.

$6.8 USD em 1 dia
(81 Comentários)
5.3
erikhumala

See private message.

$8.5 USD em 1 dia
(90 Comentários)
4.8
vw594130vw

See private message.

$8.5 USD em 1 dia
(65 Comentários)
4.3
jainjohnyvw

See private message.

$6.8 USD em 1 dia
(39 Comentários)
4.2
normanee

See private message.

$4.25 USD em 1 dia
(15 Comentários)
3.3
tszulist

See private message.

$8.5 USD em 1 dia
(5 Comentários)
3.0
yveno76lx

See private message.

$8.5 USD em 1 dia
(4 Comentários)
2.8
millennium007

See private message.

$6.8 USD em 1 dia
(1 Comentário)
1.6
pradeeptaku

See private message.

$8.5 USD em 1 dia
(1 Comentário)
1.3
nezvw

See private message.

$4.25 USD em 1 dia
(1 Comentário)
0.0
anchalvw

See private message.

$3.4 USD em 1 dia
(0 Comentários)
0.0
MKGandhi

See private message.

$8.5 USD em 1 dia
(0 Comentários)
0.0
nomanvb

See private message.

$8.5 USD em 1 dia
(1 Comentário)
0.0
varnil

See private message.

$3.4 USD em 1 dia
(0 Comentários)
0.0
luke6534

See private message.

$8.5 USD em 1 dia
(0 Comentários)
0.0
mathewbijo

See private message.

$8.5 USD em 1 dia
(0 Comentários)
0.0
epitel0920

See private message.

$8.5 USD em 1 dia
(0 Comentários)
0.0