forked from livecode/livecode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path_widget_sendpost.lcb
More file actions
39 lines (34 loc) · 1.21 KB
/
Copy path_widget_sendpost.lcb
File metadata and controls
39 lines (34 loc) · 1.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
widget com.livecode.lcs_tests.core.engine_lcb.widget_sendpost
use com.livecode.widget
use com.livecode.engine
private variable mTestData as Array
property testData get mTestData set SetTestData
handler OnCreate()
put {} into mTestData
end handler
handler SetTestData(in pData as Array)
if pData["mode"] is "send" then
send pData["message"]
put the result into mTestData["result"]
else if pData["mode"] is "send function" then
send function pData["message"]
put the result into mTestData["result"]
else if pData["mode"] is "send command" then
send command pData["message"]
put the result into mTestData["result"]
else if pData["mode"] is "send args" then
send pData["message"] with [pData["arg"]]
put the result into mTestData["result"]
else if pData["mode"] is "send function args" then
send function pData["message"] with [pData["arg"]]
put the result into mTestData["result"]
else if pData["mode"] is "send command args" then
send command pData["message"] with [pData["arg"]]
put the result into mTestData["result"]
else if pData["mode"] is "post" then
post pData["message"]
else if pData["mode"] is "post args" then
post pData["message"] with [pData["arg"]]
end if
end handler
end widget