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
jdeviajdevia 

Int and double values

Hi, I need some help, how can I assign values to int or Double (currency) fields in a Contact.
 
The value that I'm trying to assign comes from a sql server column that is a nvarchar.
 
Line:
 
account.Activos = double.parse(rs["column"].toString());
 
Thanks..
SuperfellSuperfell
What's the problem ?
jdeviajdevia
Forget it, I found this:
 

account.Activos__c = double.Parse(mr["Activos"].ToString());

account.Activos__cSpecified = true;

 

And now it has the vaklues assigned, Thanks.

Message Edited by jdevia on 04-06-2006 04:32 PM

SkowronekSkowronek
I use Convert.ToDouble(value) (ToInt16, ToInt32, etc.) in almost everything I do. There are arguments for both methods, this one works for what I do.