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
No Data
Reply
  • I am afraid that GroupName or KeyName does not exist...

    Where from did you take these groups and keys strings? At first glance i suppose that  "DefaultFillPath" should be "DefaultFilePath"...

    For instance, in my case (X8 installation) i do not receive the same error only for the next to procedures:

    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

    'I also found a 'sister' API: Set
    ApplicationPreferenceValue. I couldn't figure out how to use it in order to set something...
Children