This procedure adds 3-State value for existing field. Procedure converts input 3-State value (text) into JSON true/false/null values then store it as field value. The input value is converted using several converson patterns.
Parameter | Type | Description | |
---|---|---|---|
ptr | POINTER | Mandatory | Pointer to field |
Value | 10A | Mandatory | Input 3-State value (text) |
pattern | 10I 0 | Optional | conversion pattern |
Following input boolean values are supported:
Following conversion patterns are sypported:
The procedure returns pointer of field. If procedure can’t add value, then returns null.
Examples:
xxPtr = respAddField('data': 'freeOfCharge');
respAdd3StateValue(xxPtr: 'true');
respAdd3StateValue(xxPtr: 'false');
respAdd3StateValue(xxPtr: 'null');
respAdd3StateValue(xxPtr: 'true': #true_false_null);
respAdd3StateValue(xxPtr: 'false': #true_false_null);
respAdd3StateValue(xxPtr: 'null': #true_false_null);
respAdd3StateValue(xxPtr: 'Y': #Y_N_BLANK);
respAdd3StateValue(xxPtr: 'N': #Y_N_BLANK);
respAdd3StateValue(xxPtr: *BLANK: #Y_N_BLANK);
respAdd3StateValue(xxPtr: '0': #1_0_BLANK);
respAdd3StateValue(xxPtr: '1': #1_0_BLANK);
respAdd3StateValue(xxPtr: *BLANK: #1_0_BLANK);
respAdd3StateValue(xxPtr: XXFOCC: #Y_N_BLANK);