> I would like to know if it is possible to assign a constant value to a field > that is not a SET or a SEQUENCE. > For instance, I want to assign to Constant1 the value "0" and to Constant5 > the value "00033" : > > AFormat DEFINITIONS ::= > BEGIN > > Constant1 ::= OCTET STRING "0" SIZE(1 BYTES) > Constant5 ::= OCTET STRING LA BC="0" "33" SIZE(5 > BYTES) > ....
Dear Mr. Gani: You may create constants by defining value references. Here are some examples: OctString ::= OCTET STRING v0 OctString ::= "0" v33 OctString ::= "33" What is not clear to me is what LA or BC=0 are doing in your ASN.1 Whatever they are, they are not ASN.1. ===================================================================== Conrad Sigona Toll Free : 1-888-OSS-ASN1 OSS Nokalva Voice Mail : 1-732-302-9669 x400 [EMAIL PROTECTED] Fax : 1-419-831-5035 http://www.oss.com My direct line : 1-315-845-1773
