Monday, November 08, 2010 at 12:02 AM.


<<3/7/99; 11:41:05 AM by DW
	<<Test asynch RPC
local (adrcallback = @scratchpad.rpccallback);
new (scripttype, adrcallback);
target.set (adrcallback);
op.setlinetext ("on rpccallback (adrtable)");
op.insert ("scratchpad.retval = adrtable^.returnedval; msg (scratchpad.retval)", right);
window.about ();
edit (@user.betty);
for i = 1 to 100 {
	local (params = {random (1, 50)});
	if (i % 10) == 0 { //error
		params = {}};
	betty.rpc.client (procedureName:"examples.getStateName", adrparamlist:@params, flAsynch:true, adrcallback:adrcallback)}

This listing is for code that runs in the OPML Editor environment. I created these listings because I wanted the search engines to index it, so that when I want to look up something in my codebase I don't have to use the much slower search functionality in my object database. Dave Winer.