NpsAttach indicates attachment object.
| String |
id attachment’s unique identification |
| String |
name attachment’s name |
| String |
suffix suffix name, i.e.: jpg |
| double |
size File length in bytes. |
| int |
index display order |
| int |
rowno row number. Numbering from “1”. |
| String |
url URL path |
| void |
ExtractFile(String file) write attachment into file names which designated by “file”. |
| NpsAttach |
FitTo(int width,int height) convert pictures into attachment whose “width” and “height” are designated and return to the converted object. “width=-1”: scaling width as self-defined. “height=-1”: scaling heigt as self-defined. |
| boolean |
HasField(String name) whether it contains field or not. “true”: yes “false”: no |
| Object |
GetFieldValue(String name) return to the field value designated by “name” Text content will return “string” object while others will return relevant digital type, character string type and date type according to database’s definition. |
| String |
GetFieldValueFormatted(String name,String format) Format and return the field value designated by “name” according to the requirement of “format”. |
| String |
GetFieldValueLimitted(String name,int wordcount) return to the front “wordcount” value among field values designated by “name”. Digits will not be truncated. “wordcount<=0”: it will return to the whole field value. |
| void |
Clear() delete all temp files |