Microsoft Windows Phone 8.1 support ends (13 Jul 2017)

Microsoft has ended support for Windows Phone 8.1

Questions about Android development and PDF

Falling into DictSetItem()

More
IP: 91.215.176.177 5 years 11 months ago #15256 by MaxM
Hello Radaee.
I use:
long ref = annot.GetRef();
Obj obj = new Obj(ref);
Obj nameOb = obj.DictGetItem("T");

I want to save and read some values using the methods DictSetItem() / DictGetItem(), but it crashes DictGetItem(), what could be the reason?
More
IP: 111.196.245.137 5 years 11 months ago - 5 years 11 months ago #15257 by radaee
Replied by radaee on topic Falling into DictSetItem()
dear user:
you shall do codes like:
Code:
Ref ref = annot.Advance_GetRef(); Obj obj = m_doc.Advance_GetObj(ref); Obj nameOb = obj.DictGetItem("T");
you can only get reference of annotation/page/document object.
and Document.Advance_GetObj()
is the only method to get object data.
Last edit: 5 years 11 months ago by radaee.
More
IP: 91.215.176.177 5 years 11 months ago - 5 years 11 months ago #15261 by MaxM
Replied by MaxM on topic Falling into DictSetItem()
Thanks for the answer.
But this method requires a premium license, and I only have a professional one. Then tell me why, having a professional license, the annot.GetModifyDate () method does not work for me.
I use:
boolean isSave = annotation.SetModifyDate(CommonUtil.getCurrentDate()); -> (isSave = false)
and
String date = annot.GetModifyDate(); -> (date = null)
Last edit: 5 years 11 months ago by MaxM.
More
IP: 111.196.245.137 5 years 11 months ago - 5 years 11 months ago #15262 by radaee
Replied by radaee on topic Falling into DictSetItem()
dear user:
we checked this method, SetModifyDate() will return false in these condition:
1. annotation is locked.(Annotation.IsLocked() => true)
2. string value is null
3. at least, you need a professional license.
we checked on Android version, and it works.
Last edit: 5 years 11 months ago by radaee.
Time to create page: 0.406 seconds
Powered by Kunena Forum