search for: returnv

Displaying 20 results from an estimated 32 matches for "returnv".

Did you mean: return
2006 Aug 02
2
tcl/tk bind destroy event
...will be destroyed although. I also implemented a menu item 'Quit' where I show the same messagebox and there it works fine. How can I make it work or is there another method to do this? I'm very new to R and tcl/tk. Here is part of my code: exitProg <- function() { returnVal <- tkmessageBox(title="Question", message="Save modified file?", icon="question", type="yesnocancel", default="yes") returnVal <- as.character(returnVal) if( returnVal == "yes" ) { # save file...
2007 Apr 18
1
How to call stored procedure on iodbc
...rameters out of which 1 parameter is out parameter and other 5 are input parameters. So it uses 5 IN parameters as values for inserting a row in database and returns its max id as out parameter. Code Snippet is given below :-- SWORD returnCode = 0; SDWORD bindReturnCode = 0; RETCODE returnVal; char sqlString[500]; memset(sqlString,0,sizeof(sqlString)); HSTMT hstmt = ptrDB->GetHSTMT(); returnVal = SQLAllocStmt(ptrDB->GetHDBC(), &hstmt); if (returnVal == SQL_SUCCESS) { returnVal = SQLBindParameter(hstmt, 1, SQL_PARAM_OUTPUT, SQL_C_SLONG, SQL_I...
2008 Oct 21
1
Create user home directory or user-own folder on samba server on first login to samba
Hello, I'd like to create user home directory or user-own folder on samba server on first login to samba without using PAM, so how could I do this? Thank you, Denis
2008 Jul 18
0
Retrieving data from a tcl /tk function
...ello, I am sorry if this is an answered question, but I did my homework for a long while and couldn't figure out a way to retrieve data entry from a model dialog. In one of the examples compiled by James Wettenhall: odalDialog <- function(title, question, entryInit, entryWidth = 20, returnValOnCancel = "ID_CANCEL") { dlg <- tktoplevel() tkwm.deiconify(dlg) tkgrab.set(dlg) tkfocus(dlg) tkwm.title(dlg, title) textEntryVarTcl <- tclVar(paste(entryInit)) textEntryWidget <- tkentry(dlg, width = paste(entryWidth), textvariable = textEnt...
2006 Dec 23
0
[794] trunk/wxruby2: Fix get_ruby_object so it works with SWIG tracking, move find_window_xx
...own in advance - as in find_window, get_children etc - -// TODO - doesn''t work correctly with object tracking - it should return -// the same Ruby object if the object has been seen before -// use something like: -//&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp returnVal = SWIG_NewPointerObj(obj, SWIGTYPE_p_wxWindow, 0); -// but this causes problems for when a new Ruby object is needed - eg with XRC </del><ins>+// Returns a ruby wrapper around a wxObject whose wx class is not known +// in advance - needed for find_window, get_children etc This is a bi...
2006 Nov 21
0
[744] trunk/wxruby2: get_data support & mem mgmt to all ControlWithItems types, using more
...%ignore wxChoice::GetClientData(int n) const; -%ignore wxChoice::GetClientObject(int n) const; </del><span class="cx"> %extend wxChoice { </span><del>- VALUE get_client_data(int n) - { -&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbspVALUE returnVal = (VALUE) self->GetClientData(n); -&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbspif ( returnVal == NULL ) -&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp return Qnil; -&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbspr...
2010 Jul 25
0
notification: More than two wideband layers found. The stream is corrupted.
...inout_byte[2*i_loop] = RcvL2[i_loop]; inout_byte[2*i_loop+1] = RcvR2[i_loop]; } } byte2word(inout_byte, in_short, FRAME_SIZE); speex_bits_reset(&bits); returnVal = speex_encode_int(encoderState, (spx_int16_t *) in_short, &bits); nbChars = speex_bits_write(&bits, cbits, sizeof(cbits)*BYTES_PER_CHAR) /BYTES_PER_CHAR; speex_bits_rewind(&bits); speex_bits_read_from(&bits, cbits, TE...
2009 Apr 14
0
disappearing dialog boxes when using tcltk
...es it is not. So I don't know the problem.) Millions of thanks! Hua ##=============================================== ## Add Dialog Box (with only "OK" button) ##=============================================== modalDialogOK <- function(title,question,entryInit,entryWidth=10) { returnValOnCancel="ID_CANCEL" dlg <- tktoplevel() tkwm.deiconify(dlg) tkgrab.set(dlg) tkfocus(dlg) tkwm.title(dlg,title) textEntryVarTcl <- tclVar(paste(entryInit)) textEntryWidget <- tkentry(dlg,width=paste(entryWidth),textvariable=textEntryVarTcl) tkgrid(tklabel(dlg,tex...
2012 Oct 03
0
[LLVMdev] [cfe-dev] Does LLVM optimize recursive call?
Hello David Chisnall, John McCall, David Blaikie and other people who may concern > If your teachers are really making this sort of superficial generalization, > they're doing you a disservice. This hit my head. Actually I didn't test the performance of those two, the iteration and the recursion, at all. And in this field of study, testing is very much important, I believe. And
2007 May 21
0
[1026] trunk/wxruby2/swig/shared/control_with_items.i: Memory mgmt: USe __wx_destroyed__ instead of __swig_dead__; fix some
...Returns a ruby object stored as client data </span><span class="cx"> static VALUE wxControlWithItems_get_client_data(wxControlWithItems *ptr, int n) { </span><span class="cx"> &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbspVALUE returnVal = (VALUE) ptr->GetClientData(n); </span><del>-&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbspif ( returnVal == NULL ) </del><ins>+&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbspif ( returnVal ) </ins><span class...
2012 Nov 19
6
tcltk freezing using MS Windows for R-2.14+
...nction() # NormalizeNow <- function(MainWindow){ NMethod <- GetNMethod(MainWindow) if (NMethod=="") return() tkconfigure(MainWindow,cursor="watch") tkfocus(MainWindow) }#end of NormalizeNow <- function(){ # GetNMethod <- function(MainWindow){ ReturnVal <- "RMA" GNMethod <- tktoplevel(MainWindow) tkwm.deiconify(GNMethod) tkgrab.set(GNMethod) tkfocus(GNMethod) tkwm.title(GNMethod,"Get Method") tkbind(GNMethod,"<Destroy>",function() {ReturnVal <- "";tkgrab.releas...
2012 Oct 03
2
[LLVMdev] [cfe-dev] Does LLVM optimize recursive call?
On 3 Oct 2012, at 09:48, John McCall wrote: > If your teachers are really making this sort of superficial generalization, > they're doing you a disservice. I completely agree with John here - we had a case a few years ago where someone spent ages refactoring their algorithm to be iterative and was surprised that it became slower (with the MS compiler). Looking at the assembly, it was
2010 Jan 16
0
'tcltk' crashes related to event-loops (PR#14187)
.... NOTE: Before you continue, please read NOTE2 located towards the end of the message. To reproduce you need to load 'tcltk' and 'cairoDevice' in the same R --vanilla session. When executing the following in that order, in a new terminal window: require(tcltk) require(cairoDevice) ReturnVal <- tkmessageBox(title="Greetings from R TclTk",message="Hello, world!",icon="info",type="ok") ### click "ok" I get a crash (confirmed by Dirk---copied---on his Debian system) with the following message (see R-tcltk-cairoDevice.txt): > The p...
2006 Dec 20
0
[789] trunk/wxruby2/swig/classes/Window.i: Make GetChildren work (tho general fix for get_ruby_object still needed)
...own in advance - as in find_window, get_children etc + +// TODO - doesn''t work correctly with object tracking - it should return +// the same Ruby object if the object has been seen before +// use something like: +//&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp returnVal = SWIG_NewPointerObj(obj, SWIGTYPE_p_wxWindow, 0); +// but this causes problems for when a new Ruby object is needed - eg with XRC </ins><span class="cx"> %{ </span><del>- </del><span class="cx"> static VALUE get_ruby_object(wxObject *obj) &...
2006 Nov 07
0
[722] trunk/wxruby2/swig: Wx::Choice fixes for get_client_data (AF)
....i" +%markfunc wxChoice "mark_wxControlWithItems"; + +%ignore wxChoice::GetClientData(int n) const; +%ignore wxChoice::GetClientObject(int n) const; +%extend wxChoice { + VALUE get_client_data(int n) + { +&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbspVALUE returnVal = (VALUE) self->GetClientData(n); +&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbspif ( returnVal == NULL ) +&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp return Qnil; +&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbspr...
2006 Jul 24
1
small Window.i patch
Hi Attached a small patch to Window.i which prevents it crashing when find_window_by_name, find_window_by_id or find_window_by_label should return nil. This fixes this bug (which I think was originally posted to wxruby 0.6.0) http://rubyforge.org/tracker/index.php?func=detail&aid=634&group_id=35&atid=218 cheers alex _______________________________________________ wxruby-users
2010 Aug 12
3
[LLVMdev] LLVM-C: Calling functions contained in other libraries
...0)); LLVMSetLinkage(fullUsername, LLVMExternalLinkage); result = LLVMAddFunction(module, "MyFunction", LLVMFunctionType(i8Ptr(), NULL, 0, 0)); block = LLVMAppendBasicBlock(result, "entrypoint"); LLVMPositionBuilderAtEnd(builder, block); LLVMValueRef returnVal = LLVMBuildCall(builder, fullUsername, NULL, 0, "myCall"); LLVMBuildRet(builder, returnVal); LLVMDisposeBuilder(builder); return result; } int main (int argc, const char * argv[]) { NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init]; char * error...
2005 Jul 05
2
Java and R help
Im doing an aplication in Java and i have a program made in R what i want to launch with Java. I have the following instructions: Runtime r = Runtime.getRuntime(); try { System.out.println ("Llamada a R..."); p = r.exec(sRutaR); } catch (IOException e) { System.out.println ("Error lanzando R: " +
2006 Nov 15
0
[740] trunk/wxruby2: API - Make ListCtrl#get_item return a ListCtrl item corresponding to a row and
...</span><ins>+%ignore wxListCtrl::GetItem(wxListItem& info) const; </ins><span class="cx"> </span><ins>+%extend wxListCtrl { + VALUE get_item(int row, int col = -1) + { +&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbspVALUE returnVal = Qnil; +&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbspwxListItem *list_item = new wxListItem(); +&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsplist_item->SetId(row); +&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbspif...
2009 Oct 01
1
[LLVMdev] PHI and Allocas
2009/10/1 Kenneth Uildriks <kennethuil at gmail.com>: > I hope so, because I've been doing the same thing.  My local variables > are always bound to alloca's, and my test makefile just calls "opt > -std-compile-opts" after my compiler runs; so far it's been giving me > pretty good code as a result. Same here, but I'm not compiling any really complex