To comment on the following update, log in, then open the issue: http://www.openoffice.org/issues/show_bug.cgi?id=106973 Issue #|106973 Summary|Passing Byval does not work with Struct type variable Component|api Version|OOo 3.1.1 Platform|PC URL| OS/Version|Windows XP Status|UNCONFIRMED Status whiteboard| Keywords| Resolution| Issue type|DEFECT Priority|P3 Subcomponent|code Assigned to|jsc Reported by|tridouble
------- Additional comments from tridou...@openoffice.org Tue Nov 17 11:21:13 +0000 2009 ------- The msgbox in the code below returns "zzzz zzzz zzzz zzzz" so the procedure essai_passage behaves as if it was a "byref" call not a "byval" call. Type DescrCar Police as String Taille as String Style as String Graisse as String End Type ' essai de passage par valeur de variables de type structuré Sub Main () Dim Mavaleur as DescrCar With Mavaleur .Police = "aaaa" .Taille = "aaaa" .Style = "aaaa" .Graisse = "aaaa" essai_passage (Mavaleur) msgbox (.Police + " "+ .Taille + " " +.Style + " " + .Graisse End With End Sub Sub essai_passage (ByVal Unevaleur as DescrCar) With Unevaleur .Police = "zzzz" .Taille = "zzzz" .Style = "zzzz" .Graisse = "zzzz" End With End sub --------------------------------------------------------------------- Please do not reply to this automatically generated notification from Issue Tracker. Please log onto the website and enter your comments. http://qa.openoffice.org/issue_handling/project_issues.html#notification --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@api.openoffice.org For additional commands, e-mail: issues-h...@api.openoffice.org --------------------------------------------------------------------- To unsubscribe, e-mail: allbugs-unsubscr...@openoffice.org For additional commands, e-mail: allbugs-h...@openoffice.org