Read Only Error File Stream
Posted
#1
(In Topic #336)
Regular

Code (gambas)
- I = 0 'Set i to 0
- Line Input #hFile, ProgName
- Line Input #hFile, SeIcon
- Line Input #hFile, Comd
- Line Input #hFile, LineSpace
- BoxName[I] = ProgName
- BoxCmd[I] = Comd
- DisplayPics(I, SeIcon)
- Inc I 'Index by one
- Close #hFile
Posted
Regular

Old Way 3.14.0
<COLOR color="#0000FF">Public BoxName[43] As String
Public BoxCmd[43] As String </COLOR>
New Way 3.14.1
<COLOR color="#0000FF">Public BoxName As New String[43]
Public BoxCmd As New String[43]</COLOR>
The Later work fine.
Posted
Regular

Code (gambas)
- iArr1 = [1, 2, 3, 4, 5]
- iArr2 = [9, 8, 7, 6]
- iArr2 = [10, 20, 30]
I'm still running 3.14.0 so would be interested to know if this still works on the latest version.
Posted
Guru

Code (gambas)
- I = 0 'Set i to 0
- Line Input #hFile, ProgName
- Line Input #hFile, SeIcon
- Line Input #hFile, Comd
- Line Input #hFile, LineSpace
- BoxName = ProgName
- BoxCmd = Comd
- DisplayPics(I, SeIcon)
- Inc I 'Index by one
- Close #hFile
I don't get an error with this code.
Posted
Regular

1 guest and 0 members have just viewed this.


