Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I tried the following -
It throws an error. How do I set it to null value ?
string tj = ProgramNode.GetProperty("programPhoto").ToString(); Media thisMedia = new Media(Convert.ToInt32(tj)); thisMedia.delete(true);
ProgramNode.GetProperty("programPhoto").Value = String.Empty();
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
Programmaticaly deleting a media in "media picker"
I tried the following -
It throws an error. How do I set it to null value ?
string tj = ProgramNode.GetProperty("programPhoto").ToString();
Media thisMedia = new Media(Convert.ToInt32(tj));
thisMedia.delete(true);
ProgramNode.GetProperty("programPhoto").Value = String.Empty();
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.