LOCAL ARRAY laHotKeys[1] AS Byte laHotKeys = 0 COMARRAY(this.Globals,10) this.Globals.GetHotKeys(@laHotKeys) lcFileName = GKKGetConfigPath() + "UserKeyBindings.txt" STRTOFILE(laHotKeys[1],lcFileName)I am then trying to read back in the file with the following code:
LOCAL ARRAY laHotKeys[1] AS Byte COMARRAY(thisform.CodeMax.Globals,10) laHotKeys[1] = CREATEBINARY(FILETOSTR("GKKKeyBindings.txt")) this.Globals.SetHotKeys(@laHotKeys) && Failing here with invalid datatypeI can set a breakpoint and see the value at laHotKeys[1] is in the correct format. However, when the SetHotKeys method is called the value in the array is changed and the error is trapped.