function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
malmmalm 

How to set currency field 0?

I am having trouble setting a Currency (8,2) field to 0. Doing a

    setMyCurrencyField__c(new Double(0));

sSeems to have no effect, ie. the field is left at its previous value after an update.

DevAngelDevAngel

Hi malm,

Can you try 0.0?  Don't think it should matter, but it might.

malmmalm
Tried that before posting and it made no difference.
BasilBasil

hi,

can you tell me what is your parameter's type of setMyCurrencyField__c function ? (I think it is a function that you created)

setMyCurrencyField__c( <type?> <parameter> ) {

}

Message Edited by Basil on 04-30-2004 06:06 AM