Hello,
We have used { { 1, 2 }, { 2, 3 }} instead of { [0] := { 1, 2 }, [1] := { 2, 3 }} }; and it works.
Thanks,
Carlos Cárdenas.
________________________________
From: active_ttcn3 : mts stf133 ttcn version 3 - active members only [This email address is being protected from spambots. You need JavaScript enabled to view it.] On Behalf Of György Réthy
Sent: Tuesday, April 13, 2010 9:35 AM
To: This email address is being protected from spambots. You need JavaScript enabled to view it.
Subject: Re: Module Parameter "record of" - Execution error
Hi,
this is wrong for sure. the external pair of {} of the value notation belongs to the record of and { 1, 2 } and { 2, 3 } are value list notations for the record.
BR, Gyorgy
________________________________
From: active_ttcn3 : mts stf133 ttcn version 3 - active members only [This email address is being protected from spambots. You need JavaScript enabled to view it.] On Behalf Of Rahul Joshi1
Sent: 2010-április-13 8:50
To: This email address is being protected from spambots. You need JavaScript enabled to view it.
Subject: Re: Module Parameter "record of" - Execution error
Hi Carlos,
I guess Instead of using index number you need to directly use Field name to assign the value. Please chk out the below syntax.
# TestExecution.ttcn (Line 79):
modulepar { TestModuleParList v_testRecordOf := { field1 := { 1, 2 }, field2 := { 2, 3 }} };
Thanks
Rahul
Carlos Cardenas Angelat <This email address is being protected from spambots. You need JavaScript enabled to view it.>
Sent by: "active_ttcn3 : mts stf133 ttcn version 3 - active members only" <This email address is being protected from spambots. You need JavaScript enabled to view it.>
12/04/2010 12:41
Please respond to
"active_ttcn3 : mts stf133 ttcn version 3 - active members only" <This email address is being protected from spambots. You need JavaScript enabled to view it.>
To
This email address is being protected from spambots. You need JavaScript enabled to view it.
cc
Subject
Module Parameter "record of" - Execution error
Hello TTCN-3 list members,
We are getting one strange issue when using a module parameter "record of" type.
TTCN-3 code analyses correctly but gives execution error when reading that parameter.
Maybe, this is TTCN-3 toll specific error, even so, is there any special syntax to define module parameter "record of type"?
More info below about the scenario.
We will really appreciate, if somebody knows which way the wind is blowing.
Thanks in advance,
Carlos Cárdenas
TTCN-3 Types definition:
type integer Field_1;
type integer Field_2;
type record TestModulePar {
Field_1 field1,
Field_2 filed2
}
type record length(1..2) of TestModulePar TestModuleParList;
Module parameter TTCN-3 value (default) in TTCN-3 project:
# TestExecution.ttcn (Line 79):
modulepar { TestModuleParList v_testRecordOf := { [0] := { 1, 2 }, [1] := { 2, 3 }} };
Module parameter TTCN-3 value (default) in external file:
MyModule.TestModuleParList v_testRecordOf := { [0] := { 4, 5 }, [1] := { 3, 7 }};
Error:
....
TestExecution.ttcn (79): [TCI] error_message: ERROR VAL0016: Expected symbol '[', found '{', when parsing value definition for 'value'
....