It's all about the answers!

Ask a question

I wanted to turn an algorithm into a dxl fomrat, but I've got errors.


mounir echlouchi (11) | asked May 07 '20, 8:06 a.m.

 I'm still a beginner on dxl language and I can't run this script, surely there are errors on the implementation, below is the script and the original algorithm before I convert it to dxl format.


Object o =current
Object co = first o
string ID = "ID"
string ParaSty = "Paragraph Style"
string UR = "Change Requests"
int i=0
int k=0
i[0]=co



while(!null o[i].ID){
k=i+1
while(o[k].TisID==null && o[k].ParaSty=="Req_Text"){

o[i].UR= "o[i].UR" "o[k].UR";
k++;


}
i=k;



original algorithme :
type pointeurparcou;
type pointeurfixe;

while(pointeurfixe[i][1] !=NULL ){
k=i+1
while(pointeurparcou[k][1]==empty && pointeurparcou[k][2]==^arg && pointeurparcou[k]==NULL){

pointeurfix[i][3]= pointeurfix[i][3]+" "+pointeurfix[k][3];
k++;


}
i=k;






}

One answer



permanent link
Sean F (1.3k12351) | answered May 07 '20, 8:45 a.m.
edited May 07 '20, 8:47 a.m.
Hi Mounir,

int i=0
int k=0
i[0]=co


What are you trying to do?

i is declared as an integer, not an object array so you cannot put an object in it at position 0

This is the Jazz forum.

For DOORS Classic questions the forum is over here:-


Old DXL Reference manual


DXL online help

Your answer


Register or to post your answer.