Double_setValue |
Homepage Wrappers |
Sets the value stored in the Double object.
Double_setValue(DoubleObject, value = 0)
| DoubleObject | The Double object to use for the current operation. |
| value | The value to store in the Double object. |
If DoubleObject is NULL (0 or blank), the empty string is returned, to indicate an error.
;Creates a new Double initialized to 42 myDouble := Double_new(42) ;Sets myDouble to 13 (and returns the old value) oldValue := Double_setValue(myDouble, 13) ;Outputs oldValue and the value stored in myDouble MsgBox, % "The previous value for myDouble was: " oldValue . "`n" . "The current value for myDouble is: " Double_getValue(myDouble)