What is the maximum character length of a com.inductiveautomation.ignition.gateway.localdb.persistence.StringField ?
Is there a way I could find this out on my own?
Thanks
What is the maximum character length of a com.inductiveautomation.ignition.gateway.localdb.persistence.StringField ?
Is there a way I could find this out on my own?
Thanks
One of the constructors defaults the size to 4096 bytes, the other lets you specify the max size.
public StringField(SRecordMeta<?> meta, String columnName, SFieldFlags... pvals)
public StringField(SRecordMeta<?> meta, String columnName, int maxValue, SFieldFlags... pvals)
Javadoc is non-existant on these, so there’s not much you could’ve done but look at the signatures.
Thanks Kevin.
Just a suggestion. It seems like it might be more clear if the “maxValue” argument was named something like “maxLength”.
Nick
/* Filename: StringField.java
* Created on Nov 7, 2008
* Author: Carl Gould
* Copyright Inductive Automation 2008
* Project: SRGateway
*/
Blame Carl
Okay. Can’t blame him too much. Having a setting to specify the maximum length of the string field is great.