Hi people!

Let's say a struct display that way in the debugger : (fieldname:Value)
(010:15931; 050:5801; 080:24925)


Check out this code:

//This should remove field "010"
myStruct.remove(myStruct.fieldName(1));
//The updated struct in the debugger (050:5801; 080:24925)

//Trying to display the value of field "050"
value = myStruct.valueIndex(1);
//value now display 15931!!

Is it me or that's a little bit weird?  I know I can use
myStruct.value("050") but I don't want field "050" specifically, I want
the first field.  For now I've created a function that rebuild the
struct after a remove but that's not a really nice solution.

Got tips? Thanks for reading! ;-)

Steeve...


Yahoo! Groups Sponsor ADVERTISEMENT
click here


Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.

Reply via email to