You need to sign in to do that
Don't have an account?
bonny mankotia
Arithmetic expressions must use numeric arguments
I have a piece of code that show above error on
d.FolderId = UserInfo.getUserId();
d.Name = 'Data2';
String myContent = this.name+ '\n ' +this.pass+ '\n ' + this.age+ '\n ' +this.mail;
d.body += Blob.valueof(mycontent);
d.ContentType = 'text/plain';
d.Type = 'txt';
upsert d;
return null;
}
d.body += Blob.valueof(mycontent);(Show error in this line)
d.FolderId = UserInfo.getUserId();
d.Name = 'Data2';
String myContent = this.name+ '\n ' +this.pass+ '\n ' + this.age+ '\n ' +this.mail;
d.body += Blob.valueof(mycontent);
d.ContentType = 'text/plain';
d.Type = 'txt';
upsert d;
return null;
}
d.body += Blob.valueof(mycontent);(Show error in this line)
d.FolderId = UserInfo.getUserId();
d.Name = 'Data2';
String myContent = this.name+ '\n ' +this.pass+ '\n ' + this.age+ '\n ' +this.mail;
d.body = Blob.valueof(mycontent);
d.ContentType = 'text/plain';
d.Type = 'txt';
upsert d;
return null;