[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference azur::mcc

Title:DECmcc user notes file. Does not replace IPMT.
Notice:Use IPMT for problems. Newsletter location in note 6187
Moderator:TAEC::BEROUD
Created:Mon Aug 21 1989
Last Modified:Wed Jun 04 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:6497
Total number of notes:27359

5262.0. "Modelling 3-letter acronyms ?" by EVTIS9::ROGGEBAND (While my guitar gently weeps) Fri Jun 25 1993 05:50

    Hi,
    
    I would like to define in MSL an attribute which is made up of 3
    alphabetical characters. How can I restrict the length of a
    Latin1string subrange? (please don't suggest an enumeration, 26**3
    combinations is not a reasonable option)
    
    Thanks, 
    
    Philippe.
T.RTitleUserPersonal
Name
DateLines
5262.1No way to limit lengthRACER::daveAhh, but fortunately, I have the key to escape reality.Fri Jun 25 1993 15:2619
TYPE alphonly = 123 Latin1String [65..90, 96..122];

ATTRIBUTE alphsthree = 1234 : alphonly
	DEFAULT = 'AAA',
	DNA_CMIP_INT = 4321,
	DISPLAY = TRUE,
	ACCES = SETTABLE
END ATTRIBUTE alphsthree;

Warnings....

1.	This ****WILL NOT WORK**** until the MUP is out, as this
	area of code had some bugs that I tripped over.  They have
	been fixed since then.  (Thanks to John and Larry)

2.	Since there is no limit to the length from the director side,
	the agent/mm will have to check the length it is passed and
	complain if it is in error.