Converting GetSaveInfo to SaveInfo

I have these lines which get saved in a preferences file as text.

I think I converted this to the new format but for some reason I’m getting an unusual error, which tells me I didn’t.

Original Line

ts = Encdng.Chr(&hFEFF) + EncodeBase64(DocFolder.GetSaveInfo(DocFolder, 0), 0) + EOL//rowcnt = 0

New Line

ts = Encdng.Chr(&hFEFF) + EncodeBase64(DocFolder.SaveInfo(DocFolder), FolderItem.SaveInfoModes.Default) + EOL//rowcnt = 0

First Error with Default highlighted

App.SavePrefs, line 7
Parameter “lineWrap” expects type Integer, but this is enum FolderItem.SaveInfoModes.
ts = Encdng.Chr(&hFEFF) + EncodeBase64(DocFolder.SaveInfo(DocFolder), FolderItem.SaveInfoModes.Default) + EOL//rowcnt = 0

Second Error

App.SavePrefs, line 7
Type mismatch error. Expected String, but got Int32
ts = Encdng.Chr(&hFEFF) + EncodeBase64(DocFolder.SaveInfo(DocFolder), FolderItem.SaveInfoModes.Default) + EOL//rowcnt = 0

Suggestions?

[quote=484712:@Arthur Gabhart]I have these lines which get saved in a preferences file as text.
New Line

ts = Encdng.Chr(&hFEFF) + EncodeBase64(DocFolder.SaveInfo(DocFolder), FolderItem.SaveInfoModes.Default) + EOL//rowcnt = 0

Suggestions?[/quote]
I think you have a closing parenthesis out of place. Shouldn’t that be

ts = Encdng.Chr(&hFEFF) + EncodeBase64(DocFolder.SaveInfo(DocFolder, FolderItem.SaveInfoModes.Default ) ) + EOL//rowcnt = 0

Thanks. It’s easy to get confused. I had zeros in several places