({{, (RefLink[BeginDialogPacket, paclet:ref/BeginDialogPacket])[integer] 
is a WSTP packet that indicates the start of the (RefLink[Dialog, paclet:ref/Dialog]) subsession referenced by integer.}})

OpenersPrimaryExamplesSection(Spacer1)Examples  (1)

OpenersExampleSection0(Spacer1)Basic Examples  (1)

Launch a subsidiary Wolfram Language kernel process:

link=LinkLaunch[First[$CommandLine] <> " -wstp"]

Read the first packet:

LinkRead[link]

Write the packet representing the text "Dialog[]" to enter:

LinkWrite[link,EnterTextPacket["Dialog[]"]]

Read the (RefLink[BeginDialogPacket, paclet:ref/BeginDialogPacket]) expression indicating the start of a dialog subsession:

LinkRead[link]

Close the link:

LinkClose[link]

({{DocumentationFooterIconsRelatedFunction.png, ({{See Also}, {(RefLink[EndDialogPacket, paclet:ref/EndDialogPacket])}})}})

({{DocumentationFooterIconsRelatedTutorial.png, ({{Tutorials}, {▪(RefLinkPlain[WSTP and External Program Communication, paclet:tutorial/WSTPAndExternalProgramCommunicationOverview])}})}})