https://bugs.documentfoundation.org/show_bug.cgi?id=174570
Bug ID: 174570
Summary: No sample Basic of fixed size array in the help of
Erase Statement
Product: LibreOffice
Version: 27.2.0.0 alpha0+ master
Hardware: All
OS: All
Status: UNCONFIRMED
Severity: normal
Priority: medium
Component: Documentation
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Description:
No sample Basic of fixed size array in the help of Erase Statement.
Steps to Reproduce:
1. Open Help page of "Erase Statement".
https://help.libreoffice.org/master/ja/text/sbasic/shared/03104700.html
Erases the contents of array elements of fixed size arrays, and releases the
memory used by arrays of variable size.
Actual Results:
2. There is no sample for fixed-size array.
Only the variable size Array example is included.
``` basic
Sub Erase_Example
a = Array(1,2,3) : b= Array("z","y","x") : c=Array(a,b)
Erase a, c(Ubound(c)) ' b and c(0) are unchanged
Erase b, c(0) ' everything gets cleared
End Sub
```
Expected Results:
2. There are also samples related to fixed size array.
For example, the following sample basic:
``` basic
'
'
'
Dim i As Long
Dim d(2) As Long
For i=0 To 2
d(i) = i
Next i ' d(0) = 0, d(1) = 1, d(2) = 2
Erase d ' d(0) = 0, d(1) = 0, d(2) = 0
'
'
'
```
Reproducible: Always
User Profile Reset: No
Additional Info:
reference:
A fixed-size array is deallocated.
https://bugs.documentfoundation.org/show_bug.cgi?id=174432
--
You are receiving this mail because:
You are the assignee for the bug.