Use Long for ASC result
This commit is contained in:
parent
1ec3e9ad34
commit
e607dd98de
3 changed files with 6 additions and 6 deletions
|
@ -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 = "") Then
|
If (character = "") Then
|
||||||
charNum = ASC(""+0)
|
charNum = ASC(""+0)
|
||||||
Else
|
Else
|
||||||
|
|
|
@ -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 = "" Then
|
If tmpName = "" Then
|
||||||
|
|
|
@ -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
|
||||||
' Dim lineShifts() As Integer
|
' 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 < 2 Then
|
If lineLength < 2 Then
|
||||||
needHyphen = false
|
needHyphen = false
|
||||||
|
|
Loading…
Add table
Reference in a new issue