Xojo Conferences
XDCMay2019MiamiUSA

Platforms to show: All Mac Windows Linux Cross-Platform

/Win/Windows DDE/DeleteGroup
Function:
Required plugins for this example: MBS Win Plugin
You find this example project in your Plugins Download as a Xojo project file within the examples folder: /Win/Windows DDE/DeleteGroup
This example is the version from Sun, 17th Mar 2012.
Project "DeleteGroup.rbp"
Class Window1 Inherits Window
Control PushButton1 Inherits PushButton
ControlInstance PushButton1 Inherits PushButton
EventHandler Sub Action() create End EventHandler
End Control
Control PushButton2 Inherits PushButton
ControlInstance PushButton2 Inherits PushButton
EventHandler Sub Action() delete End EventHandler
End Control
Sub create() progman "[CreateGroup(Test)]" End Sub
Sub delete() progman "[DeleteGroup(Test)]" End Sub
Sub progman(s as string) dim d as DDEMBS dim ps as DDEStringMBS dim pd as DDEBinaryDataMBS dim b as boolean d=new DDEMBS if d.initClient then ps=d.newDDEString("PROGMAN") if ps<>Nil then if d.ConnectToServer(ps,ps) then d.timeout=10000 pd=d.newDDEBinaryData(nil,s) if pd<>Nil then b=d.clientTransactionBoolean(d.XTYP_EXECUTE,nil,pd) if b then msgBox "ok." else msgBox "failed." end if else msgBox "Failed newDDEBinaryData" end if else msgBox "Failed Connect." end if else msgBox "Failed newDDEString" end if d.Close else msgBox "Failed InitClient" end if End Sub
End Class
MenuBar Menu
MenuItem UntitledMenu3 = ""
MenuItem UntitledMenu2 = "File"
MenuItem FileQuit = "Quit"
MenuItem UntitledMenu0 = "Edit"
MenuItem EditUndo = "Undo"
MenuItem UntitledMenu1 = "-"
MenuItem EditCut = "Cut"
MenuItem EditCopy = "Copy"
MenuItem EditPaste = "Paste"
MenuItem EditClear = "Clear"
End MenuBar
Class App Inherits Application
End Class
End Project

See also:

Feedback, Comments & Corrections

The items on this page are in the following plugins: MBS Win Plugin.




Links
MBS Xojo PDF Plugins