SetNewFieldValue Question

Posts   
 
    
MarcoP avatar
MarcoP
User
Posts: 270
Joined: 29-Sep-2004
# Posted on: 08-Jan-2007 15:21:30   

Am I in any danger if I call field.CurrentValue = x instead of calling SetNewFieldValue off the entity? The reason I ask is b/c I am creating a generic method for setting entity values from the UI and I would rather pass in the field then the entity and field index.

Thanks

jbb avatar
jbb
User
Posts: 267
Joined: 29-Nov-2005
# Posted on: 08-Jan-2007 15:54:40   

Hello,

The setnewfieldvalue method call verifications methods before call field.currentvalue so it's better to use setnewfieldvalue for your case.

MarcoP avatar
MarcoP
User
Posts: 270
Joined: 29-Sep-2004
# Posted on: 08-Jan-2007 18:52:31   

thanks!