This function is deprecated due to the use of the mod1 incompatbile MALLOC call. Although no replacement is currently provided, a mod1 compatible (IEnv based) method will be provided as IValueModel_SetText in future releases.
- pif:[in] Pointer to the IValueModel interface object.
- pwText:[in] Pointer to the text to be stored into the value model.
- nLen:[in] The length of the text to be stored into the value model. Pass (-1) to automatically compute the length of pwText.
int IVALUEMODEL_SetText(IValueModel *pif, const AECHAR *pwText, int nLen);
AEE_SUCCESS -- If the text was stored successfully in the value model. ENOMEMORY -- If the value model was unable to allocate storage for the text.
IValueModel_SetText() calls IValueModel_SetValue().