Use Long for ASC result

This commit is contained in:
Georgy Litvinov 2020-06-23 16:07:11 +02:00
parent 1ec3e9ad34
commit e607dd98de
3 changed files with 6 additions and 6 deletions

View file

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE script:module PUBLIC "-//OpenOffice.org//DTD OfficeDocument 1.0//EN" "module.dtd"> <!DOCTYPE script:module PUBLIC "-//OpenOffice.org//DTD OfficeDocument 1.0//EN" "module.dtd">
<script:module xmlns:script="http://openoffice.org/2000/script" script:name="Archive" script:language="StarBasic" script:moduleType="normal">Sub archMark14 <script:module xmlns:script="http://openoffice.org/2000/script" script:name="Archive" script:language="StarBasic" script:moduleType="normal">Sub archMark15
End Sub End Sub
@ -417,7 +417,7 @@ End Sub
Function isLowerCase(character As String) As Boolean Function isLowerCase(character As String) As Boolean
Dim charNum As Integer Dim charNum As Long
If (character = &quot;&quot;) Then If (character = &quot;&quot;) Then
charNum = ASC(&quot;&quot;+0) charNum = ASC(&quot;&quot;+0)
Else Else

View file

@ -183,7 +183,7 @@ Function createDupName(initName As String, newDupNames As Variant )
End Function End Function
Function getPrefixName(initName As String) As String Function getPrefixName(initName As String) As String
Dim num As Integer Dim num As Long
Dim tmpName As String Dim tmpName As String
tmpName = Trim(initName) tmpName = Trim(initName)
If tmpName = &quot;&quot; Then If tmpName = &quot;&quot; Then

View file

@ -80,7 +80,7 @@ Private Sub convertParaHyphens(para As Object)
Dim autoBreaks() As Object Dim autoBreaks() As Object
Dim lineNumbers() As Integer Dim lineNumbers() As Integer
&apos; Dim lineShifts() As Integer &apos; Dim lineShifts() As Integer
Dim charNum as Integer Dim charNum as Long
Dim lineLength As Integer Dim lineLength As Integer
Dim lineCursor As Object Dim lineCursor As Object
Dim i As Integer Dim i As Integer
@ -336,8 +336,8 @@ End Sub
Private Function needHyphen(before As String, after As String,lineLength As Integer) As boolean Private Function needHyphen(before As String, after As String,lineLength As Integer) As boolean
Dim charNumBefore as Integer Dim charNumBefore as Long
Dim charNumAfter as Integer Dim charNumAfter as Long
needHyphen = true needHyphen = true
If lineLength &lt; 2 Then If lineLength &lt; 2 Then
needHyphen = false needHyphen = false