Skip to content

Commit

Permalink
fix ObjRawGet and ObjRawSet
Browse files Browse the repository at this point in the history
  • Loading branch information
Banaanae committed Mar 16, 2024
1 parent 98f7363 commit 2c53a37
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
4 changes: 4 additions & 0 deletions convert/2Functions.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,10 @@ global FunctionsToConvertM := OrderedMap(
"*_NumPut"
, "Object(Array*)" ,
"*_Object"
, "ObjRawGet(Object, KeyQ2T)" ,
"{1}.{2}"
, "ObjRawSet(Object, KeyQ2T, Value)" ,
"{1}.{2} := {3}"
, "OnError(FuncQ2T,AddRemove)" ,
"OnError({1}, {2})"
, "OnMessage(MsgNumber, FunctionQ2T, MaxThreads)" ,
Expand Down
7 changes: 7 additions & 0 deletions tests/Test_Folder/String/ObjRaw_ex1.ah1
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
MyObj := {Key: "Hello World"}

ObjRawSet(MyObj, "Key", "Value")

MyValue := ObjRawGet(MyObj, "Key")

MsgBox % MyValue
7 changes: 7 additions & 0 deletions tests/Test_Folder/String/ObjRaw_ex1.ah2
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
MyObj := {Key: "Hello World"}

MyObj.Key := "Value"

MyValue := MyObj.Key

MsgBox(MyValue)

0 comments on commit 2c53a37

Please sign in to comment.