Using GetApplicationPreferenceValue when GroupName contains a space?

I'm trying to use Application.GetApplicationPreferenceValue, but it's not working for me when the GroupName contains a space.

Sub test_get_app_preference_01()
    Debug.Print Application.GetApplicationPreferenceValue("Directories", "AutoBackup")
End Sub

Sub test_get_app_preference_02()
    Debug.Print Application.GetApplicationPreferenceValue("File Locations", "DefaultFillPath")
End Sub

Sub test_get_app_preference_03()
    Debug.Print Application.GetApplicationPreferenceValue("NodeEditTool", "TransientSkiaGpuAccelerated")
End Sub

Sub test_get_app_preference_04()
    Debug.Print Application.GetApplicationPreferenceValue("ShapingTool", "EffectRate")
End Sub

Sub test_get_app_preference_05()
    Debug.Print Application.GetApplicationPreferenceValue("FilletScallopChamfer", "FilletRadius")
End Sub

So, in the above subs, the ones with GroupNames that do not contain spaces all work as expected.

The one with the GroupName "File Locations" gets me this:

Is there some syntax of which I'm unaware for handling the GroupNames that have one or more spaces in them?

Parents Reply
  • I can assure you that only _04 and _05 works in X8. At least, in my installation...

    Yes, I believe you. I also have X8 installed.

    Where did you find any documentation/reference about using of this API?

    I only know it exists from seeing it in the API documentation here on the Community site - and they show no examples for using it.

    Where can I find that settings.ini file containing the data you just mentioned?

    There is a settings.ini in the user Draw Workspace folder, but I also see settings.ini files in individual workspace .CDWS file (.ZIP archives).

    If I manually edit a value in the settings.ini file in a .CDWS file, then that value is used the next time that I change to that workspace in CorelDRAW.

    These group names and key names are also present in the Registry.

Children
No Data