[framework-issues] [Issue 47215] WITH statement does not w ork correctly

2006-04-13 Thread ab
To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=47215


User ab changed the following:

  What|Old value |New value

Status|STARTED   |RESOLVED

Resolution|  |INVALID





--- Additional comments from [EMAIL PROTECTED] Thu Apr 13 06:28:43 -0700 
2006 ---
ab-mjneedles: I had another look and now think this task is invalid.

I used a SRC680 m162 to test. To start with your second example: I neither had 
any problem with nor without option explicit (besides the problems covered by
your other tasks of course).

Now to your first example: I think, it's simply wrong. You can't access object
members inside a with block without a . in front of the name. Without option
explicit this sample only works respectively _seems_ to work because all used
variables are simply created on the fly when used the first time. But then they
are completely different variables and not the Type members that should be
accessed. Add print myStruct.nNumber1 after print nNumber1 and you
will see that myStruct.nNumber1 hasn't been changed at all.

With option explicit the code doesn't work at all as the variables cannot be
created implicitely. Your code does not work with VB and VBA either.

- INVALID


-
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[framework-issues] [Issue 47215] WITH statement does not w ork correctly

2006-04-13 Thread mjneedles
To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=47215


User mjneedles changed the following:

  What|Old value |New value

Status|RESOLVED  |CLOSED





--- Additional comments from [EMAIL PROTECTED] Thu Apr 13 14:19:38 -0700 
2006 ---
Okay, I'll concede that in VBA (for MSOffice XP), this is true. I _know_ that I
used this without the dot in VB 1.0 and all MS Basic flavors for DOS.  I did not
know it had changed.

Closing for now.

-
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[framework-issues] [Issue 47215] WITH statement does not w ork correctly

2006-03-06 Thread ab
To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=47215


User ab changed the following:

  What|Old value |New value

  Target milestone|OOo Later |OOo 2.0.3





--- Additional comments from [EMAIL PROTECTED] Mon Mar  6 07:23:07 -0800 
2006 ---
ab: According to discussion with sw/kso - OOo 2.0.3


-
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[framework-issues] [Issue 47215] WITH statement does not w ork correctly

2005-09-02 Thread npower
To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=47215


User npower changed the following:

  What|Old value |New value

   Assigned to|npower|ab





--- Additional comments from [EMAIL PROTECTED] Fri Sep  2 01:00:34 -0700 
2005 ---
reassign to ab

-
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[framework-issues] [Issue 47215] WITH statement does not w ork correctly

2005-09-02 Thread ab
To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=47215


User ab changed the following:

  What|Old value |New value

Ever confirmed|  |1

Status|UNCONFIRMED   |STARTED

  Target milestone|---   |OOo Later





--- Additional comments from [EMAIL PROTECTED] Fri Sep  2 05:46:28 -0700 
2005 ---
ab-mjneedles: In a m125 build your example works for me. But it does 
not work any more if I use option explicit. So this problem seems to be 
only related to using option explicit. - Started


-
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[framework-issues] [Issue 47215] WITH statement does not w ork correctly

2005-09-02 Thread mjneedles
To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=47215





--- Additional comments from [EMAIL PROTECTED] Fri Sep  2 22:22:11 -0700 
2005 ---
My example does not work at all under m125 with the code as given.  If I prepend
the dot to the structure elements, it works partly.

Try the following modified code, which demonstrates the failures in Len and
With, as well as some other inconsistencies.  For example, the Print statements
require me to use the complete structured element name instead of the short form
with just the dot, or I get a runtime error.

REM  *  BASIC  *

REM option explicit  ' try it either way :)

Type tUserStruct
   sString1 as String * 10
   nNumber1 as Single
   iNumber2 as Integer
   cNumber3 as Currency
   bTV1 as Boolean
end type 

Sub TestWith
   Dim myStruct as tUserStruct, iLen1 as Integer, iLen2 as Integer
   
   iLen1 =  Len(myStruct)  ' Fails with runtime error, so comment it out to let
the rest run
   Print Structured variable length is ; iLen1
   With myStruct
  .sString1 = This is a test  ' this string is too long for the field 
and
should truncate
  Print .sString1, len(myStruct.sString1)' BUT... it does not, Len 
returns 14 
  .nNumber1 = sqr(3.0)
  iLen2 = Len(myStruct.nNumber1)
  print .nNumber1, iLen2 'Prints 1.732051  8 but the length should be 4
bytes for a Single
  .cNumber3 = 2.23606999 * 2.23606999
  Print .cNumber3, len(myStruct.cNumber3) ' prints 5.  6, where the
length should be 8 bytes
  .bTV1 = (1  1)  ' FALSE
  print .bTV1, len(myStruct.bTV1) ' Prints False 5 but length should be 2
or 4 (not sure which)
   End With
End Sub

See also issues 47214 and 47216

-
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[framework-issues] [Issue 47215] WITH statement does not w ork correctly

2005-07-18 Thread newt
To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=47215





--- Additional comments from [EMAIL PROTECTED] Mon Jul 18 06:14:03 -0700 
2005 ---
This feature works as advertised. Structure members must be preceded by '.' as
in VBA.

-
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[framework-issues] [Issue 47215] WITH statement does not w ork correctly

2005-07-18 Thread mjneedles
To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=47215





--- Additional comments from [EMAIL PROTECTED] Mon Jul 18 20:37:55 -0700 
2005 ---
What do you mean as advertised?  Where is it advertised?  The online help
says nothing to indicate this.  I have used Visual Basic (not VBA), and many
other flavors of Basic, and none of them use the advertised behavior.

If this is the desired way for Star Basic to work, it should be documented in
the online help, and illustrated with an example.

-
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]