Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Function collapses incorrectly #131

Open
Murenysh opened this issue Oct 28, 2022 · 2 comments
Open

Function collapses incorrectly #131

Murenysh opened this issue Oct 28, 2022 · 2 comments

Comments

@Murenysh
Copy link

Screenshot:
https://prnt.sc/yoL9ZDJfaeiG

If I translate the comments into English, the problem disappears

Func _GetBaseListFromFile()

Local $arrList[0][2]

$BaseListFileName = @AppDataDir & "\1c\1cestart\ibases.v8i"

$hRead = FileOpen($BaseListFileName, 0) ; Открываем файл для чтения

$count = 0
$arcount = 0

While 1
	$count = $count + 1
	$sLine = FileReadLine($hRead) ; Строка из файла

	If @error = -1 Then
		ExitLoop ;Если конец файла выход из цикла
	EndIf

	If StringLeft($sLine, 1) = "[" And StringRight($sLine, 1) = "]" Then
		$IBName = $sLine
		$NextString = True
	Else

		If $NextString = True Then
			_ArrayAdd($arrList, $IBName, 0)
			$arrList[$arcount][1] = $sLine
			$arcount = $arcount + 1
		EndIf

		$NextString = False
	EndIf
WEnd

Return $arrList

EndFunc ;GetBaseListFromFile()

@Danp2
Copy link

Danp2 commented Oct 28, 2022

FYI, this issue appears to be resolved when I test with the latest code base.

@Danp2
Copy link

Danp2 commented Dec 4, 2022

@Murenysh Can you retest on the latest release?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants