Send_Dyn...Where do I find docs. (OpenInsight Specific)
At 10 JUN 1998 02:45:57PM Steve C. wrote:
What is the function "Send_Dyn".
Where can I find Docs?
TIA
Steve C.
At 10 JUN 1998 07:59PM Carl Pates wrote:
Steve,
Send_Dyn allows you to send back upto 64K's worth of data to a client, but you'd only really want to do this if you were using your own front-end (eg VB or Deplhi) to OpenEngine.
Some system routines such as List_tables, List_Index etc use it to return data, which is the list you see in the Results window when you run them in the System Editor.
It was doc'd in the OE docs and in early (OI 2.x) OI manuals
World Leaders in all things RevSoft
At 11 JUN 1998 10:26AM Oystein Reigem wrote:
Carl,
Just this morning I had some difficulties with Send_Dyn (it's the first time I use it, I think), so when I saw your posting I checked my 2.0 docs, but didn't find the answers I needed.
I have made this SP that I run from the Sys Ed Exec line. The SP reports both to a DOS file and to the Report Viewer. It's nice having the report in the Report Viewer, because I can see progress when the SP runs. And if the report is short enough, I can copy it from the Report Viewer to where I need it; I don't have to get the DOS file. But Send_Dyn fails with data ] 64K. How can I check for that? I tried to check the status Send_Dyn returns and stop calling it after I got an error status (then I just wrote to the DOS file). Must I really keep count myself and stop calling Send_Dyn before I reach 64K?
In case I must perhaps make the added provision of clearing the result viewer first. Can that also be done programmatically? I.e, Send_Dyn writes to the client, but is there a function that *clears* the client too?
- Oystein -
At 11 JUN 1998 11:18AM Carl Pates wrote:
Hi Oystein,
You have to check for ]64K with Send_Dyn. It's only use is to send chunks of data back a the front end. You can call it multiple times before your Basic+ program ends however.
Roughly this is how it operates:
On the Front End:
Get a commandSend command to OpenEngineLoopGet results from engineBegin CaseCase We've got data - some processing and continue loopCase We've got error - Error handling - ExitLoopCase Completed - ExitLoopEnd CaseWhile Not ExitLoopRepeatIn the Basic+ program
Loop
Read a recordProcess itSend_Dyn( SomeData ) ; * calls the we've got data Case in the front endRepeat
Return
There's no way AFAIK to clear the results window. This is controlled by System Editor. ( Though if you have the handle of the EDIT control it uses you could, but that's another story )
World Leaders in all things RevSoft
At 12 JUN 1998 07:32AM Cameron Revelation wrote:
Steve,
Send_Dyn isn't typically used unless you are developing tools.
The good news is that we plan to add some features to Send_Dyn to allow developers to get the results back themselves via a callback so that functions that are ordinarily hard to use programmatically would be available.
Cameron Purdy
Revelation Software
At 12 JUN 1998 01:56PM Steve C. wrote:
Cameron..
I think I understand Send_Dyn can return data to
the system editor when a SP is run.. Is this
correct and How? I've looked at my old
OI2.X docs but still can't find any info.
on Send_Dyn. I'm working on SP,Basic+, and Datasets
and would like to find out if Send_Dyn can help
me.
Thanks..,.Steve C.
At 13 JUN 1998 09:58PM Cameron Revelation wrote:
Steve,
Send_Dyn can't help you unless you are doing a very specific sort of task involving REVCAPI or some tool that uses it. The System Editor, as an example, uses REVCAPI to access the engine. Results come back from BASIC+ code by using Send_Dyn. (You can see the requests in the engine window.)
Cameron Purdy
Revelation Software
At 15 JUN 1998 07:22AM Oystein Reigem wrote:
Steve,
Send_Dyn is docced in the OI 2.0 Tech Ref Man, but not in the next version, the OI 2.5 Prog Ref Man. I can always fax you the relevant page if you're still interested.
- Oystein -
Øystein Reigem, Humanities Information Technologies, Harald Haarfagresgt 31, N-5007 Bergen, Norway. Tel: +47 55 58 32 42. Fax: +47 55 58 94 70. E-mail: [email protected]