[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

2034.0. "IMPM SET-directive for constructed datatype SET_OF" by HLRG02::GOES () Tue Jan 07 1992 10:23

Hi, I have a few questions about the SET-directive for constructed datatypes.

My problem is the following:

I have an attribute error codes that is defined as a SET OF Unsigned8 and a
SHOW- and SET-directive for this attribute. The SET-directive removes all
the existing elements (error codes) from the attribute and adds the specified
elements to the attribute. So when the attribute error codes has the value:
 {10,20,30,40,50}
and someone specifies the following SET-directive:
 SET .... error codes = {60,70,80,90}
the attribute error codes must get the value:
 {60,70,80,90}

I coded my AM to perform these operations and it is working fine from the
FCL PM.

But, I have some problems with the SET-directive in the IMPM. It doesn't accept
a construction as input but only accepts one value of the basetype of the
construction. That means that I can only enter one value for the attribute.

I've searched through the notesfile and found some notes about this problem, but
I still have some questions.

[1] It seems that I have to add an ADD-directive and an REMOVE-directive. These
    directives can be used to add and remove elements to and from the attribute.
    But to my opinion they can also only add or remove one value at a time. So
    building a construction of, say, 8 elements will take 8 directives. This
    is not very user-friendly. Is this indeed the right way to solve this 
    problem ?

[2] If the attribute already contains a number of elements in its
    construction, it is possible to do a SHOW CURRENT VALUES to display the
    current elements in the SET-window. You can change this elements to new
    values and do a START operation. The SET-directive then uses the changed
    values (more than one). This is the only way (as far as I know) to be
    able to specify more than one element in one SET-directive. But the
    restriction is clear (you cannot change the number of elements in the list).
    Are there other ways to get more than one element in the SET-window ?
    (For example: Besides of EXPAND FIELD or SHOW CURRENT VALUE for a
     selected attribute you are also able to do a ADD ELEMENT in the SET-window)

[3] All the notes I've searched through are dealing with DECmcc version 1.1.
    Is this SET-problem (as I call it) still valid in DECmcc version 1.2 ?
    
[4] Are there any others that have experienced this problem ? What solutions
    did you find for this problem ?


Paul Goes, T&N - AM Development Utrecht Holland

T.RTitleUserPersonal
Name
DateLines
2034.1VERNA::V_GILBERTTue Jan 07 1992 12:1917
Paul,

There are two ways you may enter many codes for your attribute error codes
which is a SET OF Unsigned 8.

MB2 over the presentation name for the attribute:  You may then select either to

  1. enter all values as one long stream as in FCL ({20,30,40} OR 
  2. you may select to add another text widget so that each value may be entered
     in its own widget.

If you MB@ over the text widget, that allows for expansion of the individual
member of the set (if its datatype is expandable). 

Hope this helps, as you should not have any difficulty doing this.

Verna
2034.2VERNA::V_GILBERTTue Jan 07 1992 12:2819
Paul,

There are two ways to enter information for setting attribute error codes where
the datatype is SET OF Unsigned8.

MB2 over the presentation name (not the text widget) for the attribute.

A dialog box is displayed with two choices:
	1. enter entire set of / seq of in one long field
               (like FCL: 20,30,40)
	2. add additional member field
		(another widget so each entry can be separate)

MB2 over the text widget expands the datatype of each member field. Unsigned8
cannot be expanded.

Hope this helps.

Verna