To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=47216
                  Issue #:|47216
                  Summary:|Length specification on declaration of String
                          |variables
                Component:|framework
                  Version:|680m91
                 Platform:|PC
                      URL:|
               OS/Version:|Windows XP
                   Status:|UNCONFIRMED
        Status whiteboard:|
                 Keywords:|
               Resolution:|
               Issue type:|ENHANCEMENT
                 Priority:|P3
             Subcomponent:|scripting
              Assigned to:|npower
              Reported by:|mjneedles





------- Additional comments from [EMAIL PROTECTED] Mon Apr 11 21:47:18 -0700 
2005 -------
In all flavors of MS Basic, especially VisualBasic, one declares a fixed-length
string variable by the syntax
 Dim sVar as String * <bytecount>

This does not work in OOo, and makes it difficult (impossible?) to define a
fixed-length composite variable, for example, with Type/End Type.  This is
useful in creating scripts to work with random-access datafiles with
fixed-length records.

Example declaration:

Type tDBFRecord
   sDeleted as string * 1 ' "*" or " "
   iRecId as Integer
   sFullName as String * 35 ' Name
   sAddr1 as String * 35
   sAddr2 as String * 35
   sCity as String * 25
   sState as String * 5
   sPostal as String * 10
   sCtryCode as Byte
   sPhone1 as String * 15
   sPhone2 as String * 15
   sEmail as String * 64
   sNotes as String * 60
End Type

REM the above record would have a Len() of 303

Its length is indeterminate as OOo Basic currently stands.  Len does not work on
it, and I know of no other method to determine how much space it occupies in
memory.  I have conversed on the users list with Andrew Pitonyak about this and
the Len() function issue.

---------------------------------------------------------------------
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]

Reply via email to