Welcome, Guest. Please Login or Register.
eccoMAGIC Forums
03/28/24 at 13:05:36
News: The Yahoo New Yahoo! Ecco_Pro forum was ended by Yahoo's end of board support... New group is at groups.io
Home Help Search Login Register


Pages: 1
Send Topic Print
Execute vs Request :: why and how! (Popularity: 13585 )
Admin
Administrator
*****


I love Ecco!

Posts: 134
Show the link to this post Execute vs Request :: why and how!
10/31/07 at 18:41:40
 

 
 Smiley  Nicely done!  & Helpful !
 
 
DDEExecute(iconn,doit)  [(connection, command)]  is an "Execute" statement,  which does not ask for a return value.
 
 
DDERequest uses 'atoms' to send data TO ecco,  which are limited to 256 characters,  so you use a DDEExecute which uses a shared memory string to send much larger (up to 24 or 32k depending.. on what ecco will handle) data.
 
but Execute is not made/intended to RETURN information... other than a few bytes...
 
so Ecco was designed to allow you a "Request"  to use in conjunction with the execute...
 
 
ie.  
Quote:
' the next odd thing is that you get nothing back when sending a large string
newid=DDEExecute(iconn,doit) 'Newid here shows up as blank (timing issues?)
newid=DDERequest(iconn,"GetLastResult") ' But prodding again gets a valid newid value
' which lets us move the newly inserted item under the parent ("d" is the flag for "daughter")
DDEExecute(iconn, "InsertItem,"& str(rootid)& ",d," &str(newid))

 
is because Execute does not *ever* send back any ecco id#,
 
"GetLastResult" is intended to be used exactly as you have used it!,  in partner with an execute command.
 
 
ps:  (for others) same basic structure of DDE commands to Ecco works from within Word or Excel.....
Back to top
 
« Last Edit: 11/01/07 at 18:52:00 by Admin »  

The Administrator.
WWW   IP Logged
pplandry
EccoMagic Apprentice
*


I Love Ecco!

Posts: 2
Show the link to this post Re: Execute vs Return :: why and how!
Reply #1 - 11/01/07 at 12:34:25
 
I use DDERequest and have no problem retrieving large amounts of text. The trick is to use a textbox with multiline=true as the DDE link. More details avail. if required.
Back to top
 
 
Email   IP Logged
Admin
Administrator
*****


I love Ecco!

Posts: 134
Show the link to this post Re: Execute vs Request :: why and how!
Reply #2 - 11/01/07 at 18:54:39
 

Yes, indeed.   Do share!!
Back to top
 
 

The Administrator.
WWW   IP Logged
Pages: 1
Send Topic Print