Jump to content
SubSpace Forum Network

Recommended Posts

Posted

ok, that part made dcme crash when searching for update.

 

For i = LBound(lines) To UBound(lines)
	Dim parts() As String
	
	parts() = Split(lines(i), "=")

	If parts(0) = "version" Then
		version = parts(1)
	ElseIf parts(0) = "url" Then
		updateurl = parts(1)
	ElseIf parts(0) = "changes" Then
		changes = parts(1)
		changes = replace(changes, "~", vbNewLine)
	End If
Next

 

The If parts(0) = "version" Then line gave me an out of range error

it did the 'for - next' loop correctly for the first 3 values (version, url, and changes), but it did the loop a 4th time, and crashed when trying to read parts(0).

 

I had to change that line:

For i = LBound(lines) To UBound(lines)

to:

For i = LBound(lines) To UBound(lines) - 1

to be able to get the 1.2.63 file

 

Would that be all because of the dcmeupdate.txt file having some wrong syntax or something? Or would the - 1 always need to be there?

Posted

oh yeah, sorry about that

 

how stupid >.< i changed it in 1.2.63 but i forgot the older versions updates to that one.

 

oops

 

its because the update txt file contained a blank line, and it couldn't split on that

 

fixed

Guest
This topic is now closed to further replies.
×
×
  • Create New...