topic
stringlengths
1
63
text
stringlengths
1
577k
seleccionar impresora en preview
Hola: Prueba utilizando la siguiente función entes de imprimir. GetPrintDc() Saludos, Esteban
seleccionar impresora en preview
No se puede, asi de claro. ¿ Porque ? Pues porque el proceso de generacion de los Metafiles o de los EMFs utiliza el driver de la impresora que tenga seleccionada windows al momento de generar el reporte, y las imagenes generadas solo valen para dicha impresora. Para eso existe la clausula FROM USER, tanto de PRINTER como de REPORT que te permite seleccionar una impresora ANTES de comenzar el proceso de impresion. El motor de reportes de FW luego toma la informacion del driver de la impresora seleccionada, resolucion, tamaño del papel, margenes, fuentes soportadas, ETC y con esa informacion crea un objeto PRINTER y genera los metafiles, todo de acuerdo a la impresora seleccionada Una vez terminado el proceso de impresion, entonces aparece el motor de vista previa, que lo unico que hace es mostrar en pantalla los distintos metafiles generados con la infomraicon de la impresora, de ahí solo te queda cerrar el motor de impresion o enviar a la impresora el reporte generado. Por eso no es posible cambiar la impresora desde el motor de vista previa, porque los metafiles han sido generados de acuerdo a la impresora sobre la cual se van a imprimir, si tu cambias de impresora al momento de la impresion, entonces lo mas seguro es que el reporte no se visualice de la misma manera en que se ve en el motor de vista previa. Para hacer lo que tu quieres, tendrias que generar los metafiles en un CONTEXTO DE DISPOSITVO INDEPENDIENTE, pero eso creo que no esta soportado por FiveWin actualmente, ya que cada contexto de dispositivo tiene que estar forzosamente ligado a un contenedor. La otra opcion que te queda, es que despues del motor de vista previa, selecciones OTRA impresora y vuelvas a generar el reporte, pero ahora enviandolo directamente a la impresora sin pasar por la vista previa, es una solucion chapu, pero funcionaria.
seleccionar impresora en preview
Hola René, Muchas gracias por tu clarificadora respuesta. Lo de poner la cláusula FROM USER antes no es viable, porque es un engorro para el usuario tener siempre que seleccionar la impresora, cuando, generalmente, lo quiere ver por pantalla y, en su caso, luego imprimirlo. He encontrado esto: //------------------------------------------------------------------------ // función para cambiar la impresora desde previo (mcn) //------------------------------------------------------------------------ func f_CamImpre (oDevice, cCbx ) local cPrinter cPrinter := GetProfString( "windows", "device" , "" ) WriteProfString( "windows", "device", cCbx ) SysRefresh() PrinterInit() DeleteDC( oDevice:hDC ) // Sugestion by Enrico M. Giordano oDevice:hDC := GetPrintDefault( GetActiveWindow() ) oWnd:End() // To close current preview // Insert here the function to create the report SysRefresh() WriteProfString( "windows", "device", cPrinter ) RETURN nil Se usa en rpreview pero cuando cambio de impresora da un GPF. ¿Sabes por qué?. Muchas gracias. Un saludo
seleccionar impresoras
Hola. He probado miles de cosas de <!-- w --><a class="postlink" href="http://www.fivewin.info">www.fivewin.info</a><!-- w --> y he leido aki en el foro pero no consigo solucionar esto. Tengo un programa de gestion y kiero imprimir tickets por el lpt1 (epson tmu220) y albaranes por el usb (oki 5400). Si pongo: cPrinter:="OKI C5400n(PCL)" PRINT OPRN NAME "PRESUPUESTO " TO alltrim(cPrinter) me sale para seleccionar la impresora, no me imprime directamente a esa impresora. si pongo: from user , entonces me imprime en la que seleccione pero con los tamaños de papel de la otra, ufff, no se que hacer. Como dirijo una impresión a la impresora que quiera en cada momento? FW2.4, clipper 5.2, blinker 6.0, windows xp sp2 Gracias.
seleccionar impresoras
Hola,,, Para imprimir en una TMU, debes usar la clase TDOSPrint, alli direccionas en que puerto esta conectada,, (LPT1, LPT2, LPT3) y listo,,,, para la impresora USB, usas la report u otra que trabaje en la impresora por defecto,,, Salu2 Willi
seleccionar impresoras
hola willi. Nunca he usado esta clase. La he bajao de la web <!-- w --><a class="postlink" href="http://www.fivewin.info">www.fivewin.info</a><!-- w -->, la incluyo en mi compilación y me da fallos. Por ejemplo me dice que este exe tiene mas de 254 segmentos. Luego hay un include de "dr.ch". No se, estoy atascado. Puedes indicarme como usar esta clase ? Gracias.
seleccionar impresoras
[code] //--------------------------- Function AGetPrinters() //--------------------------- Local aPrinters, cText, cToken := Chr(15) // Passing no second param or passing ZERO to GetProfStr() // grabs entire section in .ini file. Each printer is separated by a // null char (Chr(0)) and a CRLF. We just strip them out cText := StrTran( StrTran( StrTran( ; GetProfStr( "Devices", 0 ), Chr(0), cToken ), Chr(13) ), Chr(10) ) aPrinters := Array( Len( cText ) - Len( StrTran( cText, cToken ) ) ) AEval( aPrinters, {|cPrn,nEle| ; aPrinters[nEle] := StrToken( cText, nEle, cToken ) } ) Return aPrinters /* 1 Open tdosprn.prg and change the way ::cPort is assigned in method ::New() from ::cPort := cPort+iif(!"."$cPort,".PRN","") to ::cPort := cPort + If( ! "." $ cPort .and. ! "\\" $ cPort, ".PRN", "" ) // considers the port can be a network route (\\computername\sharename) 2 use this function to get the path to the network printer. IE you'll say wfPrnShName( "PRINTER1" ) and it will return \\computername\sharename. Note: make sure you use Patrick Mast's TReg32 mods if you're not using FW 2.3: */ ///#include "FiveWin.ch" //#define HKEY_LOCAL_MACHINE 2147483650 //--------------------- function mainPrn( cLPT ) //--------------------- #define HKEY_LOCAL_MACHINE 2147483650 //// msginfo( wfPrnShName("Epson FX-80+") ) // return wfPrnShName( cLPT ) //-------------------------------- Function wfPrnShName( cModel ) //-------------------------------- Local oReg, nPos, cComputer, cPrinter, cShare := "", cKeyName Default cModel := StrToken( GetProfStr( "Windows", "Device", "" ), 1, "," ) // get default printer if not provided If IsWinNT() // for W2K,NT4,XP IF cNET // PARAMETRE FOR Network printer cKeyName := "SOFTWARE\Microsoft\Windows NT\CurrentVersion\Print\Providers\LanMan Print Services\Servers\" If Left( cModel, 2 ) == "\\" nPos := RAt( "\", cModel ) cComputer := SubStr( cModel, 3, nPos - 3 ) cPrinter := SubStr( cModel, nPos + 1 ) oReg := TReg32():New( HKEY_LOCAL_MACHINE, ; cKeyName + cComputer + "\Printers\" + cPrinter ) If oReg:nError == 0 // in case the printer name doesn't exist cShare := "\\" + cComputer + "\" + ; // create in the form of "\\computername\sharename" StrTran( oReg:Get( "Share Name", "" ), Chr(0) ) Endif oReg:close() Endif ELSE cKeyName := "SOFTWARE\Microsoft\Windows NT\CurrentVersion\Print\Printers\" oReg := TReg32():New( HKEY_LOCAL_MACHINE, cKeyName + cModel ) If oReg:nError == 0 // in case the printer name doesn't exist cPrinter := StrTran( oReg:Get( "Port", "" ), Chr(0) ) /// If Left( cPrinter, 2 ) == "\\" // if it's not a network printer it returns "LPT1:" or "LPT2:" or whatever applies cShare := cPrinter // this one is already in the form "\\computername\sharename" /// Endif Endif oReg:close() ENDIF Else // for Win9x cKeyName := "System\CurrentControlSet\Control\Print\Printers\" oReg := TReg32():New( HKEY_LOCAL_MACHINE, cKeyName + cModel ) If oReg:nError == 0 // in case the printer name doesn't exist cPrinter := StrTran( oReg:Get( "Port", "" ), Chr(0) ) /// If Left( cPrinter, 2 ) == "\\" // if it's not a network printer it returns "LPT1:" or "LPT2:" or whatever applies cShare := cPrinter // this one is already in the form "\\computername\sharename" /// Endif Endif oReg:close() Endif Return cShare [/quote]
seleccionar un item del combobox
hola. Eso no me fnciona: [code=fw:2gtua9hf]<div class="fw" id="{CB}" style="font-family: monospace;">oCmb:<span style="color: #000000;">nAt</span>:= <span style="color: #000000;">1</span><br />oCmb:<span style="color: #0000ff;">refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp;</div>[/code:2gtua9hf] lo que quiero hacer es cuando arranque el dialogo me seleccione el primer item de la lista. que hago mal? gracias.
seleccionar un item del combobox
Hola, yo creo que debe ser algo asi lo que deseas [code=fw:3o9k6ztn]<div class="fw" id="{CB}" style="font-family: monospace;"><br />cVar := aItems<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span><br /><span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">COMBOBOX</span> cVar ITEM aItems</div>[/code:3o9k6ztn]
seleccionar un item del combobox
No estimado. La redefinicion y declaracion del combobox ya esta hecho. lo que necesito que cuando se inicia el dialogo (activate dialog .....) ese combobox tome uno de los valores que tiene en el aitems ( se inicialice con uno de los valores). gracias.
seleccionar un item del combobox
Has probado a ponerlo en el ON INIT del dialogo? [code=fw:3i1p9fam]<div class="fw" id="{CB}" style="font-family: monospace;"><br />&nbsp;<span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">INIT</span> <span style="color: #000000;">&#40;</span> cVar := aItems<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span><br />&nbsp;</div>[/code:3i1p9fam]
seleccionar un item del combobox
[quote="goosfancito":2o085afh]No estimado. La redefinicion y declaracion del combobox ya esta hecho. lo que necesito que cuando se inicia el dialogo (activate dialog .....) ese combobox tome uno de los valores que tiene en el aitems ( se inicialice con uno de los valores). lo que quiero hacer es cuando arranque el dialogo me seleccione el primer item de la lista. que hago mal? gracias.[/quote:2o085afh] Que raro, lo hago como expone Marcelo, y funciona correctamente: cVar := aItems[1] //selecciona el primer item del combo. Puedes poner el codigo que estas tratando? Saludos.
seleccionar un item del combobox
[code=fw:346grkyf]<div class="fw" id="{CB}" style="font-family: monospace;"> <span style="color: #00C800;">local</span> &nbsp; &nbsp;this:= <span style="color: #00C800;">self</span><br />&nbsp;... &nbsp; <br /><br />&nbsp; <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">COMBOBOX</span> ::<span style="color: #000000;">oGets</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">VAR</span> ::<span style="color: #000000;">vGets</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">ID</span> <span style="color: #000000;">125</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">ITEMS</span> ::<span style="color: #000000;">aTipodeObra</span> <span style="color: #0000ff;">OF</span> oDlg<br /><br />&nbsp; <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span> <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">INIT</span> <span style="color: #000000;">&#40;</span>this:<span style="color: #000000;">vGets</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span>:= this:<span style="color: #000000;">aListaEstados</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>, this:<span style="color: #000000;">oGets</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span>:<span style="color: #0000ff;">refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />&nbsp;</div>[/code:346grkyf] no reporta error, pèro al ejecutarlo no lo toma.
seleccionar un item del combobox
Reemplaza esto: this:vGets[2]:= this:aListaEstados[1] por esto: this:vGets[2]:= this:aTipodeObra[1]
seleccionar un item del combobox
de diez. gracias. (soy una bestia me di cuenta del error)
select and evidence one line
I have a richedit control with n 9 lines I wish select one line but not with the mouse but select by a listbox and focus only that line I tried making a Colorizeline(nLine,oRtf) function but it not run ok any solution please ? [code=fw:3e84gjz2]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"constant.ch"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"RichEdit.ch"</span><br /><br /><span style="color: #00C800;">Function</span> test<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">Local</span> oLbx<br /><span style="color: #00C800;">local</span> oDlg<br /><span style="color: #00C800;">local</span> oRtf<br />&nbsp;<span style="color: #00C800;">Local</span> cText:= <span style="color: #ff0000;">"Test test test test test test test test test test test test "</span>+CRLF+;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"Test test test test test test test test test test test test"</span>+CRLF+;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"Test test test test test test test test test test test"</span>+CRLF+;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"Test test test test test test test test test test"</span>+CRLF+;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"Test test test test test test test test test "</span>+CRLF+;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"Test test test test test test test test test "</span>+CRLF+;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"Test test test test test test test"</span>+CRLF+;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"Test test test test test test test"</span>+CRLF+;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"Test test test test test test test"</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">local</span> uTemp := <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> ! Empty<span style="color: #000000;">&#40;</span> cText <span style="color: #000000;">&#41;</span>, cText, <span style="color: #ff0000;">''</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">Local</span> &nbsp;nBottom_c &nbsp; := <span style="color: #000000;">15</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">Local</span> &nbsp;nRight_c &nbsp; &nbsp;:= <span style="color: #000000;">75</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">Local</span> &nbsp;nWidth_c := &nbsp;<span style="color: #0000ff;">Max</span><span style="color: #000000;">&#40;</span> nRight_c * DLG_CHARPIX_W, <span style="color: #000000;">180</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">Local</span> &nbsp;nHeight_c := nBottom_c * DLG_CHARPIX_H<br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">Local</span> hDLL<br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">local</span> &nbsp;alevel := <span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"1"</span>,<span style="color: #ff0000;">"2"</span>,<span style="color: #ff0000;">"3"</span>,<span style="color: #ff0000;">"4"</span>,<span style="color: #ff0000;">"5"</span>,<span style="color: #ff0000;">"6"</span>,<span style="color: #ff0000;">"7"</span>,<span style="color: #ff0000;">"8"</span>,<span style="color: #ff0000;">"9"</span><span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">local</span> nlevel := <span style="color: #000000;">1</span><br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">Local</span> oFontPreview:=TFont<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> GetSysFont<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, <span style="color: #000000;">-3</span>, <span style="color: #000000;">5</span><span style="color: #000000;">&#41;</span><br /><br /><br />&nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">FROM</span> <span style="color: #000000;">6</span>, <span style="color: #000000;">6</span> <span style="color: #0000ff;">TO</span> <span style="color: #000000;">37</span>, <span style="color: #000000;">71</span> ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"test :"</span><br /><br /><br />&nbsp;oDlg:<span style="color: #000000;">lTruePixel</span> &nbsp; := .f.<br /><br />&nbsp;hDLL &nbsp;= LoadLibrary<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Riched20.dll"</span> &nbsp;<span style="color: #000000;">&#41;</span><br /><br />&nbsp;@ <span style="color: #000000;">15</span>, <span style="color: #000000;">71</span> RICHEDIT oRtf <span style="color: #0000ff;">VAR</span> uTemp <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">175</span>, <span style="color: #000000;">90</span> <span style="color: #0000ff;">FONT</span> oFontPreview &nbsp;NOBORDER &nbsp;NO <span style="color: #0000ff;">SCROLL</span><br /><br />&nbsp;@ <span style="color: #000000;">1</span>,<span style="color: #000000;">1</span> <span style="color: #0000ff;">LISTBOX</span> oLbx <span style="color: #0000ff;">VAR</span> nlevel <span style="color: #0000ff;">ITEMS</span> alevel &nbsp;<span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">size</span> <span style="color: #000000;">20</span>,<span style="color: #000000;">100</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">on</span> <span style="color: #0000ff;">change</span> <span style="color: #000000;">&#40;</span> &nbsp; &nbsp;oRtf:<span style="color: #000000;">goto</span><span style="color: #000000;">&#40;</span> nlevel<span style="color: #000000;">&#41;</span> , ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Colorizeline<span style="color: #000000;">&#40;</span>nLevel,oRtf<span style="color: #000000;">&#41;</span> &nbsp;<span style="color: #000000;">&#41;</span><br /><br /><br /><br /><span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTER</span> <br />&nbsp; &nbsp; &nbsp;oFontPreview:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> hDLL != <span style="color: #00C800;">nil</span><br />&nbsp; &nbsp; &nbsp; FreeLibrary<span style="color: #000000;">&#40;</span> hDLL <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">endif</span><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span> <br /><br /><span style="color: #B900B9;">//--------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">Function</span> Colorizeline<span style="color: #000000;">&#40;</span>nLine,oRtf<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oRtf:<span style="color: #000000;">goto</span><span style="color: #000000;">&#40;</span> nLine<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">for</span> nLine := <span style="color: #000000;">0</span> <span style="color: #0000ff;">to</span> nline<br />&nbsp; &nbsp; &nbsp; oRtf:<span style="color: #000000;">HighLightLine</span><span style="color: #000000;">&#40;</span> nLine <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;SysRefresh<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; <span style="color: #00C800;">next</span><br />&nbsp; &nbsp; <span style="color: #00C800;">return</span> ni</div>[/code:3e84gjz2]
select and evidence one line
Antonio, I saw it run ok on Window when we use a dialog it not run ok please try this test : [b:1orzhpdj]On Window[/b:1orzhpdj] ( run but run bad , before select one line then select the middle on line up and middle of line down) [code=fw:1orzhpdj]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"constant.ch"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"RichEdit.ch"</span><br /><span style="color: #00D7D7;">#define</span> CRLF1 Chr<span style="color: #000000;">&#40;</span> <span style="color: #000000;">10</span> <span style="color: #000000;">&#41;</span><br /><br /><br /><br /><span style="color: #00C800;">Function</span> test<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">local</span> oLbx<br />   <span style="color: #00C800;">local</span> oDlg<br />   <span style="color: #00C800;">local</span> oRtf<br />   <span style="color: #00C800;">local</span> cText:= <span style="color: #ff0000;">"Test test test test test test test test test test test test "</span> + CRLF +;<br />                 <span style="color: #ff0000;">"Test test test test test test test test test test test test"</span> + CRLF +;<br />                 <span style="color: #ff0000;">"Test test test test test test test test test test test"</span> + CRLF +;<br />                 <span style="color: #ff0000;">"Test test test test test test test test test test"</span> + CRLF +;<br />                 <span style="color: #ff0000;">"Test test test test test test test test test "</span> + CRLF +;<br />                 <span style="color: #ff0000;">"Test test test test test test test test test "</span> + CRLF +;<br />                 <span style="color: #ff0000;">"Test test test test test test test"</span> + CRLF +;<br />                 <span style="color: #ff0000;">"Test test test test test test test"</span> + CRLF +;<br />                 <span style="color: #ff0000;">"Test test test test test test test"</span><br /><br />   <span style="color: #00C800;">local</span> cText1<br />   <span style="color: #00C800;">local</span> uTemp       := <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> ! Empty<span style="color: #000000;">&#40;</span> cText <span style="color: #000000;">&#41;</span>, cText, <span style="color: #ff0000;">""</span> <span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">local</span> nBottom_c   := <span style="color: #000000;">15</span><br />   <span style="color: #00C800;">local</span> nRight_c    := <span style="color: #000000;">75</span><br />   <span style="color: #00C800;">local</span> nWidth_c :=  <span style="color: #0000ff;">Max</span><span style="color: #000000;">&#40;</span> nRight_c * DLG_CHARPIX_W, <span style="color: #000000;">180</span> <span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">local</span> nHeight_c := nBottom_c * DLG_CHARPIX_H<br />   <span style="color: #00C800;">local</span> hDLL<br />   <span style="color: #00C800;">local</span> alevel := <span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"1"</span>,<span style="color: #ff0000;">"2"</span>,<span style="color: #ff0000;">"3"</span>,<span style="color: #ff0000;">"4"</span>,<span style="color: #ff0000;">"5"</span>,<span style="color: #ff0000;">"6"</span>,<span style="color: #ff0000;">"7"</span>,<span style="color: #ff0000;">"8"</span>,<span style="color: #ff0000;">"9"</span><span style="color: #000000;">&#125;</span><br />   <span style="color: #00C800;">local</span> nlevel := <span style="color: #000000;">1</span><br />   <span style="color: #00C800;">local</span> oFontPreview:=TFont<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> GetSysFont<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, <span style="color: #000000;">-3</span>, <span style="color: #000000;">5</span><span style="color: #000000;">&#41;</span><br /><br /><br /><br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oDlg <span style="color: #0000ff;">FROM</span> <span style="color: #000000;">6</span>, <span style="color: #000000;">6</span> <span style="color: #0000ff;">TO</span> <span style="color: #000000;">37</span>, <span style="color: #000000;">71</span> <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"test :"</span><br /><br />   <span style="color: #B900B9;">//oDlg:lTruePixel   := .f.</span><br /><br /><br /><br />   hDLL  = LoadLibrary<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Msftedit.dll"</span> <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">//"Riched20.dll"  )   //</span><br /> <span style="color: #B900B9;">// hDLL  = LoadLibrary( "Riched20.dll" ) //"Riched20.dll"  )</span><br /><br /><br />   @ <span style="color: #000000;">15</span>, <span style="color: #000000;">60</span> RICHEDIT oRtf <span style="color: #0000ff;">VAR</span> uTemp <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">425</span>, <span style="color: #000000;">410</span> <span style="color: #0000ff;">FONT</span> oFontPreview  NO <span style="color: #0000ff;">SCROLL</span> NOBORDER<br /><br />   @ <span style="color: #000000;">15</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">LISTBOX</span> oLbx <span style="color: #0000ff;">VAR</span> nlevel <span style="color: #0000ff;">ITEMS</span> alevel  <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">size</span> <span style="color: #000000;">40</span>, <span style="color: #000000;">160</span>  <span style="color: #0000ff;">PIXEL</span> ;<br />         <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">CHANGE</span> <span style="color: #000000;">&#40;</span> SelectLine<span style="color: #000000;">&#40;</span> nlevel,oRtf <span style="color: #000000;">&#41;</span>,oRtf:<span style="color: #000000;">setfocus</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>  <span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oDlg <span style="color: #0000ff;">CENTER</span> ;<br />   <span style="color: #0000ff;">on</span> <span style="color: #0000ff;">init</span> oLbx:<span style="color: #000000;">setfocus</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   oFontPreview:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">if</span> hDLL != <span style="color: #00C800;">nil</span><br />      FreeLibrary<span style="color: #000000;">&#40;</span> hDLL <span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">endif</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #B900B9;">//--------------------------------------------------------------------//</span><br /><br /><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><span style="color: #00C800;">Function</span>     SelectLine<span style="color: #000000;">&#40;</span> nRow,oRtf <span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">local</span>   nCol   := oRtf:<span style="color: #000000;">GetCol</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">if</span> !Empty<span style="color: #000000;">&#40;</span> nRow <span style="color: #000000;">&#41;</span><br />      oRtf:<span style="color: #000000;">GoToLine</span><span style="color: #000000;">&#40;</span> nRow - <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">endif</span><br />   <span style="color: #00C800;">DEFAULT</span> nRow   := oRtf:<span style="color: #000000;">GetRow</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   nRow    := <span style="color: #0000ff;">Min</span><span style="color: #000000;">&#40;</span> nRow, oRtf:<span style="color: #000000;">GetLineCount</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />   oRtf:<span style="color: #000000;">SetPos</span><span style="color: #000000;">&#40;</span> oRtf:<span style="color: #000000;">GetPos</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> - <span style="color: #000000;">&#40;</span> nCol - <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />   oRtf:<span style="color: #000000;">SetSel</span><span style="color: #000000;">&#40;</span> oRtf:<span style="color: #000000;">GetPos</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, oRtf:<span style="color: #000000;">GetPos</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> + Len<span style="color: #000000;">&#40;</span> oRtf:<span style="color: #000000;">GetLine</span><span style="color: #000000;">&#40;</span> nRow <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>  <span style="color: #B900B9;">// - 1</span><br />     <span style="color: #B900B9;">//oRTF:SetFocus()</span><br />   <span style="color: #00C800;">Return</span> <span style="color: #00C800;">nil</span><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><br /> </div>[/code:1orzhpdj] [b:1orzhpdj]Dialog [/b:1orzhpdj] [code=fw:1orzhpdj]<div class="fw" id="{CB}" style="font-family: monospace;"> <br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"constant.ch"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"RichEdit.ch"</span><br /><span style="color: #00D7D7;">#define</span> CRLF1 Chr<span style="color: #000000;">&#40;</span> <span style="color: #000000;">10</span> <span style="color: #000000;">&#41;</span><br /><br /><br /><br /><span style="color: #00C800;">Function</span> test<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">local</span> oLbx<br />   <span style="color: #00C800;">local</span> oDlg<br />   <span style="color: #00C800;">local</span> oRtf<br />   <span style="color: #00C800;">local</span> cText:= <span style="color: #ff0000;">"Test test test test test test test test test test test test "</span> + CRLF +;<br />                 <span style="color: #ff0000;">"Test test test test test test test test test test test test"</span> + CRLF +;<br />                 <span style="color: #ff0000;">"Test test test test test test test test test test test"</span> + CRLF +;<br />                 <span style="color: #ff0000;">"Test test test test test test test test test test"</span> + CRLF +;<br />                 <span style="color: #ff0000;">"Test test test test test test test test test "</span> + CRLF +;<br />                 <span style="color: #ff0000;">"Test test test test test test test test test "</span> + CRLF +;<br />                 <span style="color: #ff0000;">"Test test test test test test test"</span> + CRLF +;<br />                 <span style="color: #ff0000;">"Test test test test test test test"</span> + CRLF +;<br />                 <span style="color: #ff0000;">"Test test test test test test test"</span><br /><br />   <span style="color: #00C800;">local</span> cText1<br />   <span style="color: #00C800;">local</span> uTemp       := <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> ! Empty<span style="color: #000000;">&#40;</span> cText <span style="color: #000000;">&#41;</span>, cText, <span style="color: #ff0000;">""</span> <span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">local</span> nBottom_c   := <span style="color: #000000;">15</span><br />   <span style="color: #00C800;">local</span> nRight_c    := <span style="color: #000000;">75</span><br />   <span style="color: #00C800;">local</span> nWidth_c :=  <span style="color: #0000ff;">Max</span><span style="color: #000000;">&#40;</span> nRight_c * DLG_CHARPIX_W, <span style="color: #000000;">180</span> <span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">local</span> nHeight_c := nBottom_c * DLG_CHARPIX_H<br />   <span style="color: #00C800;">local</span> hDLL<br />   <span style="color: #00C800;">local</span> alevel := <span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"1"</span>,<span style="color: #ff0000;">"2"</span>,<span style="color: #ff0000;">"3"</span>,<span style="color: #ff0000;">"4"</span>,<span style="color: #ff0000;">"5"</span>,<span style="color: #ff0000;">"6"</span>,<span style="color: #ff0000;">"7"</span>,<span style="color: #ff0000;">"8"</span>,<span style="color: #ff0000;">"9"</span><span style="color: #000000;">&#125;</span><br />   <span style="color: #00C800;">local</span> nlevel := <span style="color: #000000;">1</span><br />   <span style="color: #00C800;">local</span> oFontPreview:=TFont<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> GetSysFont<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, <span style="color: #000000;">-3</span>, <span style="color: #000000;">5</span><span style="color: #000000;">&#41;</span><br /><br /><br /><br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">FROM</span> <span style="color: #000000;">6</span>, <span style="color: #000000;">6</span> <span style="color: #0000ff;">TO</span> <span style="color: #000000;">37</span>, <span style="color: #000000;">71</span> <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"test :"</span><br /><br />   <span style="color: #B900B9;">//oDlg:lTruePixel   := .f.</span><br /><br /><br /><br />   hDLL  = LoadLibrary<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Msftedit.dll"</span> <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">//"Riched20.dll"  )   //</span><br /> <span style="color: #B900B9;">// hDLL  = LoadLibrary( "Riched20.dll" ) //"Riched20.dll"  )</span><br /><br /><br />   @ <span style="color: #000000;">15</span>, <span style="color: #000000;">60</span> RICHEDIT oRtf <span style="color: #0000ff;">VAR</span> uTemp <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">425</span>, <span style="color: #000000;">410</span> <span style="color: #0000ff;">FONT</span> oFontPreview  NO <span style="color: #0000ff;">SCROLL</span> NOBORDER<br /><br />   @ <span style="color: #000000;">15</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">LISTBOX</span> oLbx <span style="color: #0000ff;">VAR</span> nlevel <span style="color: #0000ff;">ITEMS</span> alevel  <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">size</span> <span style="color: #000000;">40</span>, <span style="color: #000000;">160</span>  <span style="color: #0000ff;">PIXEL</span> ;<br />         <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">CHANGE</span> <span style="color: #000000;">&#40;</span> SelectLine<span style="color: #000000;">&#40;</span> nlevel,oRtf <span style="color: #000000;">&#41;</span>,oRtf:<span style="color: #000000;">setfocus</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>  <span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTER</span> ;<br />   <span style="color: #0000ff;">on</span> <span style="color: #0000ff;">init</span> oLbx:<span style="color: #000000;">setfocus</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   oFontPreview:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">if</span> hDLL != <span style="color: #00C800;">nil</span><br />      FreeLibrary<span style="color: #000000;">&#40;</span> hDLL <span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">endif</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #B900B9;">//--------------------------------------------------------------------//</span><br /><br /><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><span style="color: #00C800;">Function</span>     SelectLine<span style="color: #000000;">&#40;</span> nRow,oRtf <span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">local</span>   nCol   := oRtf:<span style="color: #000000;">GetCol</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">if</span> !Empty<span style="color: #000000;">&#40;</span> nRow <span style="color: #000000;">&#41;</span><br />      oRtf:<span style="color: #000000;">GoToLine</span><span style="color: #000000;">&#40;</span> nRow - <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">endif</span><br />   <span style="color: #00C800;">DEFAULT</span> nRow   := oRtf:<span style="color: #000000;">GetRow</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   nRow    := <span style="color: #0000ff;">Min</span><span style="color: #000000;">&#40;</span> nRow, oRtf:<span style="color: #000000;">GetLineCount</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />   oRtf:<span style="color: #000000;">SetPos</span><span style="color: #000000;">&#40;</span> oRtf:<span style="color: #000000;">GetPos</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> - <span style="color: #000000;">&#40;</span> nCol - <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />   oRtf:<span style="color: #000000;">SetSel</span><span style="color: #000000;">&#40;</span> oRtf:<span style="color: #000000;">GetPos</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, oRtf:<span style="color: #000000;">GetPos</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> + Len<span style="color: #000000;">&#40;</span> oRtf:<span style="color: #000000;">GetLine</span><span style="color: #000000;">&#40;</span> nRow <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>  <span style="color: #B900B9;">// - 1</span><br />     <span style="color: #B900B9;">//oRTF:SetFocus()</span><br />   <span style="color: #00C800;">Return</span> <span style="color: #00C800;">nil</span><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /> </div>[/code:1orzhpdj] we not understood why on Dialog not run !!!!
select and evidence one line
Silvio, windows and dialogs use different low level procedures FWH uses standard Windows API Dialogs procedures I guess that the difference comes from there. I have not been able to solve it
select one button
I have a dialog with 7 buttons each button are a different bitmap ( I tried with btnbmp and rbbbtn with no success) if I press the first button and the first button must be selected, the other must be no selected if I press the second button , this second must be selected , the other must be no selected I tried with : @ 10,2 RBBTN oNumber7 BITMAP "NONE" SIZE 70,80 OF oFld:aDialogs[2] PIXEL ; ACTION (oNumber7:lSelected:=TRUE,oNumber1:lSelected:=FALSE,oNumber2:lSelected:=FALSE,; oNumber3:lSelected:=FALSE,oNumber4:lSelected:=FALSE,oNumber5:lSelected:=FALSE, oNumber6:lSelected:=FALSE,; lNumber7:=TRUE, lNumber1:=FALSE,lNumber2:=FALSE,lNumber3:=FALSE,lNumber4:=FALSE,; lNumber5:=FALSE,lNumber6:=FALSE ) [b:nxz5icur]the problem[/b:nxz5icur] the other are not refresh and then I have all selected, how I resolve ?
select one button
use WHENs
select one button
I thinked allready with no success
select one button
[b:ddz5ivhl]this is the test[/b:ddz5ivhl] [code=fw:ddz5ivhl]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"constant.ch"</span><br /><br /><br /><span style="color: #00C800;">Function</span> Test<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">Local</span>  oDlgNumering, oFld<br />   <span style="color: #00C800;">Local</span>  nBottom   := <span style="color: #000000;">41</span><br />   <span style="color: #00C800;">Local</span>  nRight    := <span style="color: #000000;">83</span><br />   <span style="color: #00C800;">Local</span>  nWidth :=  <span style="color: #0000ff;">Max</span><span style="color: #000000;">&#40;</span> nRight * DLG_CHARPIX_W, <span style="color: #000000;">180</span> <span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">Local</span>  nHeight := nBottom * DLG_CHARPIX_H<br />   <span style="color: #00C800;">Local</span>  oBtn<span style="color: #000000;">&#91;</span><span style="color: #000000;">20</span><span style="color: #000000;">&#93;</span><br />   <span style="color: #00C800;">local</span> n1:= <span style="color: #000000;">1</span><br />   <span style="color: #00C800;">Local</span> n2:= <span style="color: #000000;">1</span><br /><br />      <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlgNumering          ;<br />      <span style="color: #0000ff;">SIZE</span> nWidth, nHeight   <span style="color: #0000ff;">PIXEL</span>  ;<br />      <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"test"</span>    ;<br />      TRANSPARENT<br /><br />   @ <span style="color: #000000;">2.3</span>, <span style="color: #000000;">4</span>  FOLDEREX oFld <span style="color: #0000ff;">PIXEL</span>  ;<br />                    <span style="color: #0000ff;">ITEMS</span> <span style="color: #ff0000;">"test1"</span>,<span style="color: #ff0000;">"test2"</span>,<span style="color: #ff0000;">"test3"</span>,<span style="color: #ff0000;">"test4"</span>,<span style="color: #ff0000;">"test5"</span>,<span style="color: #ff0000;">"test6"</span>;<br />                    <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">320</span>, <span style="color: #000000;">275</span><br /><br /><br />        @  <span style="color: #000000;">10</span>,<span style="color: #000000;">2</span> <span style="color: #0000ff;">BTNBMP</span> oBtn<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>   BITMAP <span style="color: #ff0000;">"NONE"</span>  <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">65</span>,<span style="color: #000000;">80</span>   <span style="color: #0000ff;">OF</span> oFld:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>  <span style="color: #0000ff;">PIXEL</span> NOBORDER ;<br />                          <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">&#40;</span>n1:=<span style="color: #000000;">1</span>, n2:=<span style="color: #000000;">1</span>,oBtn<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">lPressed</span><span style="color: #000000;">&#41;</span><br /><br /><br /><br /><br /><br />     @  <span style="color: #000000;">10</span>,<span style="color: #000000;">80</span> <span style="color: #0000ff;">BTNBMP</span> oBtn<span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span>   BITMAP <span style="color: #ff0000;">"BULLET"</span>  <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">65</span>,<span style="color: #000000;">80</span>   <span style="color: #0000ff;">OF</span> oFld:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>  <span style="color: #0000ff;">PIXEL</span> NOBORDER;<br />        <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">&#40;</span>n1:= <span style="color: #000000;">2</span>, n2:=<span style="color: #000000;">1</span> ,oBtn<span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">lPressed</span> <span style="color: #000000;">&#41;</span><br /><br /><br />        <span style="color: #B900B9;">///////</span><br /><br /><br />        @  <span style="color: #000000;">10</span>,<span style="color: #000000;">2</span> <span style="color: #0000ff;">BTNBMP</span> oBtn<span style="color: #000000;">&#91;</span><span style="color: #000000;">3</span><span style="color: #000000;">&#93;</span>   BITMAP <span style="color: #ff0000;">"NONE"</span>  <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">65</span>,<span style="color: #000000;">80</span>   <span style="color: #0000ff;">OF</span> oFld:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span>  <span style="color: #0000ff;">PIXEL</span> NOBORDER;<br />                          <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">&#40;</span> n1:= <span style="color: #000000;">1</span>, n2:=<span style="color: #000000;">1</span> ,oBtn<span style="color: #000000;">&#91;</span><span style="color: #000000;">3</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">lPressed</span> <span style="color: #000000;">&#41;</span><br /><br />        @  <span style="color: #000000;">10</span>,<span style="color: #000000;">80</span> <span style="color: #0000ff;">BTNBMP</span> oBtn<span style="color: #000000;">&#91;</span><span style="color: #000000;">4</span><span style="color: #000000;">&#93;</span>   BITMAP <span style="color: #ff0000;">"ARABIC1"</span>  <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">65</span>,<span style="color: #000000;">80</span>   <span style="color: #0000ff;">OF</span> oFld:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span>  <span style="color: #0000ff;">PIXEL</span> NOBORDER;<br />                          <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">&#40;</span> n1:= <span style="color: #000000;">3</span>, n2:=<span style="color: #000000;">1</span> ,oBtn<span style="color: #000000;">&#91;</span><span style="color: #000000;">4</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">lPressed</span>  <span style="color: #000000;">&#41;</span><br /><br />        @  <span style="color: #000000;">10</span>,<span style="color: #000000;">160</span> <span style="color: #0000ff;">BTNBMP</span> oBtn<span style="color: #000000;">&#91;</span><span style="color: #000000;">5</span><span style="color: #000000;">&#93;</span>  BITMAP <span style="color: #ff0000;">"ARABIC2"</span>  <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">65</span>,<span style="color: #000000;">80</span>   <span style="color: #0000ff;">OF</span> oFld:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span>  <span style="color: #0000ff;">PIXEL</span> NOBORDER;<br />                          <span style="color: #0000ff;">ACTION</span>  <span style="color: #000000;">&#40;</span>n1:= <span style="color: #000000;">3</span>, n2:=<span style="color: #000000;">2</span>,oBtn<span style="color: #000000;">&#91;</span><span style="color: #000000;">5</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">lPressed</span>   <span style="color: #000000;">&#41;</span><br /><br />        @  <span style="color: #000000;">10</span>,<span style="color: #000000;">240</span> <span style="color: #0000ff;">BTNBMP</span> oBtn<span style="color: #000000;">&#91;</span><span style="color: #000000;">6</span><span style="color: #000000;">&#93;</span>   BITMAP <span style="color: #ff0000;">"ARABIC3"</span>  <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">65</span>,<span style="color: #000000;">80</span>   <span style="color: #0000ff;">OF</span> oFld:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span>  <span style="color: #0000ff;">PIXEL</span> NOBORDER;<br />                          <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">&#40;</span> n1:= <span style="color: #000000;">3</span>, n2:=<span style="color: #000000;">3</span>, oBtn<span style="color: #000000;">&#91;</span><span style="color: #000000;">6</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">lPressed</span>   <span style="color: #000000;">&#41;</span><br /><br />        @  <span style="color: #000000;">110</span>,<span style="color: #000000;">80</span> <span style="color: #0000ff;">BTNBMP</span> oBtn<span style="color: #000000;">&#91;</span><span style="color: #000000;">7</span><span style="color: #000000;">&#93;</span>  BITMAP <span style="color: #ff0000;">"ARABIC4"</span>  <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">65</span>,<span style="color: #000000;">80</span>   <span style="color: #0000ff;">OF</span> oFld:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span>  <span style="color: #0000ff;">PIXEL</span> NOBORDER;<br />                          <span style="color: #0000ff;">ACTION</span>  <span style="color: #000000;">&#40;</span>n1:= <span style="color: #000000;">3</span>, n2:=<span style="color: #000000;">4</span>,oBtn<span style="color: #000000;">&#91;</span><span style="color: #000000;">7</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">lPressed</span>  <span style="color: #000000;">&#41;</span><br /><br />        @  <span style="color: #000000;">110</span>,<span style="color: #000000;">160</span> <span style="color: #0000ff;">BTNBMP</span> oBtn<span style="color: #000000;">&#91;</span><span style="color: #000000;">8</span><span style="color: #000000;">&#93;</span>   BITMAP <span style="color: #ff0000;">"ARABIC5"</span>  <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">65</span>,<span style="color: #000000;">80</span>   <span style="color: #0000ff;">OF</span> oFld:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span>  <span style="color: #0000ff;">PIXEL</span> NOBORDER;<br />                          <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">&#40;</span> n1:= <span style="color: #000000;">3</span>, n2:=<span style="color: #000000;">5</span>,oBtn<span style="color: #000000;">&#91;</span><span style="color: #000000;">8</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">lPressed</span>  <span style="color: #000000;">&#41;</span><br /><br />        @  <span style="color: #000000;">110</span>,<span style="color: #000000;">240</span> <span style="color: #0000ff;">BTNBMP</span> oBtn<span style="color: #000000;">&#91;</span><span style="color: #000000;">9</span><span style="color: #000000;">&#93;</span>   BITMAP <span style="color: #ff0000;">"ARABIC6"</span>  <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">65</span>,<span style="color: #000000;">80</span>   <span style="color: #0000ff;">OF</span> oFld:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span>  <span style="color: #0000ff;">PIXEL</span> NOBORDER;<br />                          <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">&#40;</span> n1:= <span style="color: #000000;">3</span>, n2:=<span style="color: #000000;">6</span>,oBtn<span style="color: #000000;">&#91;</span><span style="color: #000000;">9</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">lPressed</span>  <span style="color: #000000;">&#41;</span><br /><br /><br /><br />         <span style="color: #B900B9;">///////</span><br /><br /><br />          @  <span style="color: #000000;">10</span>,<span style="color: #000000;">2</span> <span style="color: #0000ff;">BTNBMP</span> oBtn<span style="color: #000000;">&#91;</span><span style="color: #000000;">10</span><span style="color: #000000;">&#93;</span>   BITMAP <span style="color: #ff0000;">"NONE"</span>  <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">65</span>,<span style="color: #000000;">80</span>   <span style="color: #0000ff;">OF</span> oFld:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">3</span><span style="color: #000000;">&#93;</span>  <span style="color: #0000ff;">PIXEL</span> NOBORDER;<br />                          <span style="color: #0000ff;">ACTION</span>  <span style="color: #000000;">&#40;</span>n1:= <span style="color: #000000;">1</span>, n2:=<span style="color: #000000;">1</span> ,oBtn<span style="color: #000000;">&#91;</span><span style="color: #000000;">10</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">lPressed</span>  <span style="color: #000000;">&#41;</span><br /><br />        @  <span style="color: #000000;">10</span>,<span style="color: #000000;">80</span> <span style="color: #0000ff;">BTNBMP</span> oBtn<span style="color: #000000;">&#91;</span><span style="color: #000000;">11</span><span style="color: #000000;">&#93;</span>   BITMAP <span style="color: #ff0000;">"ARABIC1"</span>  <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">65</span>,<span style="color: #000000;">80</span>   <span style="color: #0000ff;">OF</span> oFld:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">3</span><span style="color: #000000;">&#93;</span>  <span style="color: #0000ff;">PIXEL</span> NOBORDER;<br />                          <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">&#40;</span>n1:= <span style="color: #000000;">4</span>, n2:=<span style="color: #000000;">1</span> ,oBtn<span style="color: #000000;">&#91;</span><span style="color: #000000;">11</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">lPressed</span>  <span style="color: #000000;">&#41;</span><br /><br />        @  <span style="color: #000000;">10</span>,<span style="color: #000000;">160</span> <span style="color: #0000ff;">BTNBMP</span> oBtn<span style="color: #000000;">&#91;</span><span style="color: #000000;">12</span><span style="color: #000000;">&#93;</span>  BITMAP <span style="color: #ff0000;">"ARABIC2"</span>  <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">65</span>,<span style="color: #000000;">80</span>   <span style="color: #0000ff;">OF</span> oFld:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">3</span><span style="color: #000000;">&#93;</span>  <span style="color: #0000ff;">PIXEL</span> NOBORDER;<br />                          <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">&#40;</span> n1:= <span style="color: #000000;">4</span>, n2:=<span style="color: #000000;">2</span> ,oBtn<span style="color: #000000;">&#91;</span><span style="color: #000000;">12</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">lPressed</span>  <span style="color: #000000;">&#41;</span><br /><br />        @  <span style="color: #000000;">10</span>,<span style="color: #000000;">240</span> <span style="color: #0000ff;">BTNBMP</span> oBtn<span style="color: #000000;">&#91;</span><span style="color: #000000;">13</span><span style="color: #000000;">&#93;</span>   BITMAP <span style="color: #ff0000;">"ARABIC3"</span>  <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">65</span>,<span style="color: #000000;">80</span>   <span style="color: #0000ff;">OF</span> oFld:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">3</span><span style="color: #000000;">&#93;</span>  <span style="color: #0000ff;">PIXEL</span> NOBORDER;<br />                          <span style="color: #0000ff;">ACTION</span>  <span style="color: #000000;">&#40;</span>n1:= <span style="color: #000000;">4</span>, n2:=<span style="color: #000000;">3</span> ,oBtn<span style="color: #000000;">&#91;</span><span style="color: #000000;">13</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">lPressed</span>  <span style="color: #000000;">&#41;</span><br /><br />        @  <span style="color: #000000;">110</span>,<span style="color: #000000;">80</span> <span style="color: #0000ff;">BTNBMP</span> oBtn<span style="color: #000000;">&#91;</span><span style="color: #000000;">14</span><span style="color: #000000;">&#93;</span>  BITMAP <span style="color: #ff0000;">"ARABIC4"</span>  <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">65</span>,<span style="color: #000000;">80</span>   <span style="color: #0000ff;">OF</span> oFld:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">3</span><span style="color: #000000;">&#93;</span>  <span style="color: #0000ff;">PIXEL</span> NOBORDER;<br />                          <span style="color: #0000ff;">ACTION</span>  <span style="color: #000000;">&#40;</span>n1:= <span style="color: #000000;">4</span>, n2:=<span style="color: #000000;">4</span> ,oBtn<span style="color: #000000;">&#91;</span><span style="color: #000000;">14</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">lPressed</span>  <span style="color: #000000;">&#41;</span><br /><br />        @  <span style="color: #000000;">110</span>,<span style="color: #000000;">160</span> <span style="color: #0000ff;">BTNBMP</span> oBtn<span style="color: #000000;">&#91;</span><span style="color: #000000;">15</span><span style="color: #000000;">&#93;</span>   BITMAP <span style="color: #ff0000;">"ARABIC5"</span>  <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">65</span>,<span style="color: #000000;">80</span>   <span style="color: #0000ff;">OF</span> oFld:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">3</span><span style="color: #000000;">&#93;</span>  <span style="color: #0000ff;">PIXEL</span> NOBORDER;<br />                          <span style="color: #0000ff;">ACTION</span>  <span style="color: #000000;">&#40;</span>n1:= <span style="color: #000000;">4</span>, n2:=<span style="color: #000000;">5</span>,oBtn<span style="color: #000000;">&#91;</span><span style="color: #000000;">15</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">lPressed</span>   <span style="color: #000000;">&#41;</span><br /><br />        @  <span style="color: #000000;">110</span>,<span style="color: #000000;">240</span> <span style="color: #0000ff;">BTNBMP</span> oBtn<span style="color: #000000;">&#91;</span><span style="color: #000000;">16</span><span style="color: #000000;">&#93;</span>   BITMAP <span style="color: #ff0000;">"ARABIC6"</span>  <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">65</span>,<span style="color: #000000;">80</span>   <span style="color: #0000ff;">OF</span> oFld:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">3</span><span style="color: #000000;">&#93;</span>  <span style="color: #0000ff;">PIXEL</span> NOBORDER;<br />                          <span style="color: #0000ff;">ACTION</span>  <span style="color: #000000;">&#40;</span>n1:= <span style="color: #000000;">4</span>, n2:=<span style="color: #000000;">6</span>,oBtn<span style="color: #000000;">&#91;</span><span style="color: #000000;">16</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">lPressed</span>   <span style="color: #000000;">&#41;</span><br /><br /><br /><br />        <span style="color: #B900B9;">///////</span><br /><span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlgNumering <span style="color: #0000ff;">CENTER</span><br /><br />                <span style="color: #0000ff;">msginfo</span><span style="color: #000000;">&#40;</span>n1,n2<span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span></div>[/code:ddz5ivhl] any solution ?
select one button
Silvio, I have tested your example but I don't understand what you try to do, sorry
select one button
Silvio explain in more detail what you need to do because I did not understand... [img:3hlpbju4]http&#58;//i&#46;imgur&#46;com/yIZV2mm&#46;png[/img:3hlpbju4] Regards, saludos.
select one button
I CANNOT SAY TO YOU IT 'S A SURPRICE !!!!!
select two cell of xbrowse
can I select two cell of a record into xbrowse with the mouse and change color of them ?
select/unselect 1 row on xbrowse
On Xbrowse, Select block of rows Shift-Click and toggle selection by Ctrl-Click. But if I wish make the same from a button wich command I must call to select /unselect a row of xbrowse ? I tried with DEFINE BUTTON OF oBar RESOURCE "LOOK_SEL" ACTION oBrw:SelectRow(1) DEFINE BUTTON OF oBar RESOURCE "LOOK_DESEL" ACTION oBrw:SelectRow(2) but not run
selection a symbol from a character format
I wish to create a dialog where the user can list all symbols of the type of font selected as I see into winword. I need it to insert a symbol on testrtf app [img:iubbz4gp]http&#58;//www&#46;eoeo&#46;it/wp-content/uploads/2016/05/bb&#46;jpg[/img:iubbz4gp] any solution please ?
self experiment
Dear friends, today I would like to share my experience with you and encourage you to follow. In 2016, I started with a self experiment. I started listening to "new" music only. I thought that it can not be that you can not look forward to new hit releases at my age. In the beginning, these new songs were just noise and it took many months to get used to it. During that time I also mixed songs - to connect the familiar with the new - like Sympathy For The Devil around Card B's I like it. Now, 3 years later, I have to say that this experiment was 100% successful. I'm looking forward to the "The Hot 100" every week. [url:1pvq30n5]https&#58;//www&#46;billboard&#46;com/charts/hot-100[/url:1pvq30n5] With the help of contemporary music you get access to youth, fashion, new art, litarature, lifestyle, software, etc. best regards Otto
self experiment
I like CardiB but one has to think, in 50 years will anyone remember the music of this time like the music of the 60's is remembered now? I doubt it.
self experiment
I have 15 grandchildren, with whom we spend a lot of time. As a result, I am exposed to a wide range of music. I have Sirius in the cars and you can select from 50/60's, classical, country, and contemporary. Of course, our favorite source are Broadway Musicals. We have seasons tickets to the touring shows and look forward to them. We see about 10-12 per year, and play the soundtracks constantly. Another area we have enjoyed is dance. We watch a program called "So You Think You Can Dance". What I love is how someone who has only done street dance, or hip hop, enters into the competition, and they master a wide range of dance styles ( even Bollywood ). It shows that hard work and a passion for expressing oneself through the arts can really yield wonderful results. Thanks for sharing this. BTW, back in the 80s when I went to developers conferences, many of the programmers were also musicians, and the always had jam sessions that we all loved.
self experiment
Hello, a few weeks ago a study was published here: Hand on heart: Do you often find yourself listening to the same songs, albums and bands over and over again? Do not worry, you are not alone. A study by the music streaming service Deezer shows that at a certain age we stop discovering new music. On average, Germans reach the peak of their musical interest at the age of 27, the musical standstill occurs only at 31 years. In Brazil, most reached the musical climax at the age of 22 years, from 23 years and two months, they discover little new music. The remaining countries are in a midfield between Brazil and Germany. France: The musical climax is reached at 26 years and four months, the standstill occurs at 27 years and three months. Great Britain: The musical climax is reached at the age of 24 years and five months, the standstill occurs at 30 years and six months. USA: The musical climax is reached at 24 years and six months, the standstill occurs at 29 years and ten months. Best regards Otto
self experiment
I have been using Spotify for years as it learns from your preferences so it constantly offers you new music according to what you like <!-- s;-) --><img src="{SMILIES_PATH}/icon_wink.gif" alt=";-)" title="Wink" /><!-- s;-) -->
self experiment
Dear Antonio, that's exactly the point. At a certain age we stop discovering, The System offers you new music according to what you like. And you just like what you know. The self-experiment I did is really dangerous. After a while you will not like the usual music anymore and the new one will not touch you yet. In this time you are homeless. But as soon as you know 80% of the songs from billboard Top 100 after a few bars and also the interpreters, then you have arrived. Then you have fun again as a teenager. Kind regards Otto
self experiment
Why don't you do the same with programming languages ? <!-- s:-D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":-D" title="Very Happy" /><!-- s:-D --> Sort of a Buda state with no preferences at all... Enjoying everything... I better take the balanced way: Discover the new and remain loyal to yourself <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
self experiment
Hello Otto, [color=#0000FF:2h4nj013]Two years ago [/color:2h4nj013]I started a project : searching : 1. songs that reached at least the top 10 2. well known from young to old ( evergreens ) 3. only pop for easy listening I started from 1950 A list of the international interpreters <!-- m --><a class="postlink" href="http://www.pflegeplus.com/IMAGES/Interpreters.doc">http://www.pflegeplus.com/IMAGES/Interpreters.doc</a><!-- m --> regards Uwe <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
self experiment
Dear Antonio, with programming languages this is not necessary as Fivewin is always ahead of the others. Fivewin is always the first supporting new tecnologies and trendsetting (KISS). Only to mention some: real windows programs in DOS times, speed!, MDI windows, pocketPC support, ribbonbar, cross compiler, WINDOWS 7 support, multi plattform, database connection to any database, first supporting Metro style, OOP, own classes, source code provided, support of AI (AI classes), monthly updates! and much, much more. I forgot - as we all use it every day - Harbour. Only your open mind and vision made this possible. Best regards Otto
self experiment
[url:1ds0gqvo]https&#58;//www&#46;youtube&#46;com/watch?reload=9&v=q3nPJSrVeLE[/url:1ds0gqvo]
self experiment
New ABBA music from Sweden <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> Thank you for the link and best regards, Otto
self experiment
Dear Mr. Otto Wish you a Very Happy Birthday
self experiment
Hello, today I was lucky and got 2 tickets for the Capital's Summertime Ball 2019 a Wembley Stadium. Line up: Mark Ronson, 5 Seconds Of Summer, Ellie Goulding, Khalid, Jonas Brothers, Halsey, Maroon 5, Jess Glynne, Lauv, Ava Max, Jonas Blue, Mabel, Anne-Marie, Sigala, Sigrid, Tom Walker, Jax Jones, Rita Ora, Calvin Harris I am looking forward best regards Otto
send a data to a client
Silvio, You need to keep an array with all the clients that you are serving. In FWH\source\classes\tnewssrv.prg there is an example of a News server that uses sockets and multiple clients <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
send a data to a client
I finally managed to connect sockserv to the sockcli and creating an array I saw that when a client connects, it puts the socket number and its ip as you can see in this picture [img:3jgr16bf]https&#58;//s17&#46;postimg&#46;cc/dtnpr82nz/test2&#46;jpg[/img:3jgr16bf] Now I wish send a message or a file to client but to a specific client How I must make ? I try to send data from server and it send only to the last connected oclient wich is the command or function to send message to a specific oClient ?
send a data to a client
Silvio, can you post the code so far?. Thanks
send a data to a client
I use sockcli.prg and sockserv.prg U found them on samples folder When a client is connetted to server I create an array with oClient:nSocket and oClient:ClientIP() I 'am trying to understand How I can acquire information and use the commands of socket If someone can help me ... I must not create a netpoint and I not sale my applications I work at school
send a data to a client
Silvio, did you try sockcli.prg and sockserv.prg in two different computers? In example in sockserv.prg [code=fw:58v2xygy]<div class="fw" id="{CB}" style="font-family: monospace;">   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #0000ff;">OF</span> oBar <span style="color: #0000ff;">ACTION</span> oClient:<span style="color: #000000;">SendData</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Hello from server!"</span> <span style="color: #000000;">&#41;</span> TOOLTIP <span style="color: #ff0000;">"Talk to client"</span></div>[/code:58v2xygy] works fine!
send a data to a client
yes SERVER---> Sockserv-prg one PC----------------------------> Sockcli.prg Second Pc ----------------------->Sockcli.prg third Pc -------------------------- >Sockcli.prg Now I stay on server and send a message ...where I sent the message only to third Pc...Why ? because only the the server is connected to third pc oooooooohhhhhhhhhhhh !!!!!!!!!!!!
send a data to a client
Thanks I hope to build a chat with socket or understand How I can make I wish call from server a function to snapshot client screen home I cam make ?
send data to excel with some condition from xbrowse
Guys: With xbrowse I want send data to excel using :toExcel but only those registers that meet some condition and not all data that is displayed in the xbrowse is it posible?, could you give me an example, please Thank you
send data to excel with some condition from xbrowse
This is not provided as a part of ToExcel() method. However, there are two ways of doing it. Approach-1 a) SetFilter to the condition. oBrw:Refresh() b) ToExcel() c) Clear filter and oBrw:Refresh() Approach-2 a) Prepare an array of RecNo()s to be exported. Example: [code=fw:cnwj7inr]<div class="fw" id="{CB}" style="font-family: monospace;"><br />aRecNo := <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span><br /><span style="color: #000000;">&#40;</span> oBrw:<span style="color: #000000;">cAlias</span> <span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span> DBEVAL<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#123;</span> || AAdd<span style="color: #000000;">&#40;</span> aRecNo, RECNO<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span>, <span style="color: #000000;">&#123;</span> || your condtion <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /> </div>[/code:cnwj7inr] b) Assign oBrw:aSelected := aRecNo c) oBrw:ToExcel() d) Clear oBrw:aSelected := {} To see how the second method works, first test this small sample [code=fw:cnwj7inr]<div class="fw" id="{CB}" style="font-family: monospace;"><br />XBROWSER <span style="color: #ff0000;">"STATES.DBF"</span> SETUP <span style="color: #000000;">&#40;</span> oBrw:<span style="color: #000000;">bRClicked</span> := <span style="color: #000000;">&#123;</span> |r,c,f,o| ;<br />&nbsp; &nbsp;o:<span style="color: #000000;">aselected</span> := <span style="color: #000000;">&#123;</span> <span style="color: #000000;">2</span>,<span style="color: #000000;">3</span>,<span style="color: #000000;">4</span> <span style="color: #000000;">&#125;</span>, o:<span style="color: #000000;">ToExcel</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, o:<span style="color: #000000;">aselected</span> := <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br />&nbsp;</div>[/code:cnwj7inr]
send data to excel with some condition from xbrowse
[quote="nageswaragunupudi":2ijir3yz] To see how the second method works, first test this small sample [code=fw:2ijir3yz]<div class="fw" id="{CB}" style="font-family: monospace;"><br />XBROWSER <span style="color: #ff0000;">"STATES.DBF"</span> SETUP <span style="color: #000000;">&#40;</span> oBrw:<span style="color: #000000;">bRClicked</span> := <span style="color: #000000;">&#123;</span> |r,c,f,o| ;<br />   o:<span style="color: #000000;">aselected</span> := <span style="color: #000000;">&#123;</span> <span style="color: #000000;">2</span>,<span style="color: #000000;">3</span>,<span style="color: #000000;">4</span> <span style="color: #000000;">&#125;</span>, o:<span style="color: #000000;">ToExcel</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, o:<span style="color: #000000;">aselected</span> := <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br /> </div>[/code:2ijir3yz][/quote:2ijir3yz] thank mr. rao, I use recordset, so how could be the sentence? thanks in advance
send data with post method
Dear Antonio I have a function attached to a button and I want to send data to the calling program. function nextstep(){ var id; var TableData = new Array(); $('#sampleTbl tr').each( function(row, tr){ $id = parseInt($(tr).find('td:eq(0)').text(), 10) + 1; TableData = TableData + "Task No."+ $(tr).find('td:eq(0)').text() + ': ' // Task No. + aArtNr[$id] + ' ' // Description + '\n'; }); window.location ="/booking_new/zusatz.prg?buchung=" + TableData ; } This is working and I get the data with ? STRTRAN(AP_Args(), "%20", " ") How can I send these data that I can get it with hPairs := AP_PostPairs() -------------------------------------------------------------------------------------- Antonio Linares 08:49 Uhr use POST instead of GET Otto 08:50 Uhr can you please tell me where I think this comes from js window.location ="/booking_new/zusatz.prg?buchung=" + TableData ; do I have to make a form first -------------------------------------------------------------------------------------- Antonio Linares 08:55 Uhr $.post( "zusatz.prg", { one: "one", two: "two", three: "three", whatever: 123 } ) .done( function( data ) { console.log( 'DONE', data ); $( cResultId ).html( data ); } ) .fail( function( data ) { console.log( 'ERROR', data ); } ); second parameter is a JS object (JSON notation) one: "one" etc are the pairs that you will get from AP_Postairs() No need to create a form You can send whatever you want just using a JS object (JSON means: JS object notation) in my case this is an array. can I send an array, too. Antonio Linares 08:57 Uhr yes do you know it there is a sample in sample folder Antonio Linares 08:58 Uhr { values: [ one: "one", two: "two", three: "three" ] } arrays use [ ... ] can be nested as in Harbour always think in JSON terms whatever data you need to move around... use JSON $.post() sends the data as POST ________________________________________ Neue Nachrichten Charly 09:03 Uhr You can also try $.get(), the same but via GET
send data with post method
Andreu Botella 21:11 Uhr @Otto The Jquery function $.post is an AJAX function, it doesn't reload the page. If you want to get the result of the POST call, you have to add a listener callback and then do whatever with the result. (bearbeitet) <!-- m --><a class="postlink" href="https://api.jquery.com/jQuery.post/">https://api.jquery.com/jQuery.post/</a><!-- m --> The signature is jQuery.post( url [, data ] [, success ] [, dataType ] ) (jQuery.post is the same thing as $.post) (bearbeitet) so you have to call it like this: $.post( "postpairs.prg", {/* any POST data you want to pass to the prg */}, function (data) { alert(data) // or something else } ) (bearbeitet) Hope that helps
send data with post method
Antonio Linares 08:49 Uhr from the callback you jump to another page $.post( "postpairs.prg", {/* any POST data you want to pass to the prg */}, function (data) { location.href = "web page to go to"; } )
send data with post method
Dear Antonio, thank you. Now I have a working sample with $.post() There is a space in <s cript> otherwie you can not post the code here. Best regards Otto post.prg [code=fw:3v01vzdq]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />  <br />  TEMPLATE<br />  <html><br />  <head><br />    <s cript src=<span style="color: #ff0000;">"https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"</span>></s cript><br />    <s cript><br />      $<span style="color: #000000;">&#40;</span>document<span style="color: #000000;">&#41;</span>.ready<span style="color: #000000;">&#40;</span><span style="color: #00C800;">function</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#123;</span><br />        <br />        $<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"button"</span><span style="color: #000000;">&#41;</span>.<span style="color: #0000ff;">click</span><span style="color: #000000;">&#40;</span><span style="color: #00C800;">function</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#123;</span><br />          <br />          $.post<span style="color: #000000;">&#40;</span><br />          <span style="color: #ff0000;">"postpairstxt.prg"</span>,<br />          <span style="color: #000000;">&#123;</span> one: <span style="color: #ff0000;">"one"</span>, two: <span style="color: #ff0000;">"two"</span>, three: <span style="color: #ff0000;">"three"</span>, whatever: <span style="color: #000000;">123</span> <span style="color: #000000;">&#125;</span> ,<br />          <span style="color: #00C800;">function</span> <span style="color: #000000;">&#40;</span><span style="color: #00C800;">data</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span><br />            location.href = <span style="color: #ff0000;">"https://winhotel.space/modharbour_samples/posttest2.prg"</span>;<br />          <span style="color: #000000;">&#125;</span> <br />          <span style="color: #000000;">&#41;</span>;<br />        <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span>;<br />        <br />      <span style="color: #000000;">&#125;</span><span style="color: #000000;">&#41;</span>;<br />      <br />    </s cript><br />  </head><br />  <body><br />    <br />    <button>Send an HTTP POST request <span style="color: #0000ff;">to</span> a <span style="color: #0000ff;">page</span> and <span style="color: #0000ff;">from</span> the callback you jump <span style="color: #0000ff;">to</span> another page</button><br />    <br />  </body><br />  </html><br />  <br />  ENDTEXT<br />  <br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><br /> </div>[/code:3v01vzdq] reqest.prg [code=fw:3v01vzdq]<div class="fw" id="{CB}" style="font-family: monospace;"><br />REQUEST DBFCDX<br />REQUEST DBFFPT<br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">local</span> hPairs := AP_PostPairs<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">local</span> cLog<br />   <br />   cLog := ValToChar<span style="color: #000000;">&#40;</span> hPairs <span style="color: #000000;">&#41;</span> <br /><br />   USE <span style="color: #000000;">&#40;</span> hb_GetEnv<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"PRGPATH"</span> <span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">"/logfile"</span> <span style="color: #000000;">&#41;</span> SHARED <span style="color: #00C800;">NEW</span><br /><br />   APPEND BLANK<br /><br />   <span style="color: #00C800;">if</span> RLock<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />    logfile->datum    := Date<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />    logfile->text    := cLog<br />    logfile->user_time    := time<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />    DbUnLock<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">endif</span><br /><br />   USE<br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><br /><span style="color: #0000ff;">INIT</span> PROCEDURE PrgInit<br />   <br />   SET CENTURY <span style="color: #0000ff;">ON</span><br />   SET EPOCH <span style="color: #0000ff;">TO</span> <span style="color: #0000ff;">YEAR</span><span style="color: #000000;">&#40;</span>DATE<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">-98</span><br />   <br />   SET DELETED <span style="color: #0000ff;">ON</span><br />   SET EXCLUSIVE OFF<br />   <br />   REQUEST HB_Lang_DE<br />   <br />   HB_LangSelect<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"DE"</span><span style="color: #000000;">&#41;</span><br />   <br />   SET DATE <span style="color: #0000ff;">TO</span> GERMAN<br />   <br />   rddsetdefault<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"DBFCDX"</span> <span style="color: #000000;">&#41;</span><br />   <br />   EXTERN DESCEND<br />   <br /><span style="color: #00C800;">RETURN</span><br /><br /> </div>[/code:3v01vzdq] DBF file [code=fw:3v01vzdq]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">local</span> aFields := <span style="color: #000000;">&#123;</span> <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"TEXT"</span>, <span style="color: #ff0000;">"C"</span>, <span style="color: #000000;">200</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#125;</span>,;<br />                   <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"DATUM"</span>, <span style="color: #ff0000;">"D"</span>, <span style="color: #000000;">8</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#125;</span>,;<br />                   <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"USER_TIME"</span>, <span style="color: #ff0000;">"C"</span>, <span style="color: #000000;">25</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#125;</span>,;<br />                   <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"CODE"</span>, <span style="color: #ff0000;">"C"</span>, <span style="color: #000000;">4</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span><br /><br />DbCreate<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"myfile.dbf"</span>, aFields, <span style="color: #ff0000;">"DBFCDX"</span> <span style="color: #000000;">&#41;</span><br /><br />USE myfile.dbf <span style="color: #00C800;">NEW</span> VIA <span style="color: #ff0000;">"DBFCDX"</span><br /> </div>[/code:3v01vzdq]
send emails
Hello friends, What do you use to send emails when selfhosting from mod harbour? Best regards, Otto
send emails
Hello, Sometimes you can't see the forest for the trees. I can use the localhostsrv. which monitors a directory and executes the bat files that are placed in that directory. I then send the emails with a Fivewin programme: Best regards, Otto [code=fw:2vopg20m]<div class="fw" id="{CB}" style="font-family: monospace;"><br />oOutlook = CREATEOBJECT<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Outlook.Application"</span> <span style="color: #000000;">&#41;</span><br />oNameSpace := oOutlook:<span style="color: #000000;">GetNameSpace</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"MAPI"</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp;oMail = oOutlook:<span style="color: #000000;">CreateItem</span><span style="color: #000000;">&#40;</span> olMailItem <span style="color: #000000;">&#41;</span><br /><br />&nbsp; oMail:<span style="color: #0000ff;">Subject</span> := cSubject+<span style="color: #ff0000;">" - "</span>+time<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #B900B9;">//oMail:Body := cText</span><br />&nbsp; &nbsp;oMail:<span style="color: #000000;">BodyFormat</span> = olFormatHTML<br />&nbsp; &nbsp;oMail:<span style="color: #000000;">HTMLBody</span> = memoread<span style="color: #000000;">&#40;</span> cSaveAsFile <span style="color: #000000;">&#41;</span> &nbsp; <br /><span style="color: #B900B9;">//oMail:Attachments:Add( AllTrim(cZip1) )</span><br />&nbsp; &nbsp;oMail:<span style="color: #0000ff;">To</span> := cMailTo<br />&nbsp; &nbsp;oMail:<span style="color: #00C800;">Display</span> = .F.</div>[/code:2vopg20m]
send file by mail
how may I send file test.txt by mailbest regardskajot
send file by mail
kajot,Please review fwh\samples\TestMail.prg
send mail
Someone have a easy function to send a message ( also html) from fwh . thanks
send mail
This is what I use. [code=fw:2fynxl4d]<div class="fw" id="{CB}" style="font-family: monospace;">*-------------------------------------------------------------------------------------------------------------------------------*<br /><span style="color: #00C800;">Function</span> SendMail<span style="color: #000000;">&#40;</span> oDlg, cSender, cPass, cDisplay, cReply, lSave, cTo, cCC, cSubject, cMsg, lReceipt, cAttach, lMsgInfo <span style="color: #000000;">&#41;</span><br />*-------------------------------------------------------------------------------------------------------------------------------*<br /><span style="color: #00C800;">Local</span> oEmailCfg,oEmailMsg,oError,cHtml, cLine, n<br /><span style="color: #00C800;">local</span> nSuccess <br /><br />nSuccess := <span style="color: #000000;">1</span><br /><br /><span style="color: #00C800;">Default</span> lReceipt := .T., lMsgInfo := .F., lSave := .T., cAttach := <span style="color: #ff0000;">''</span>, cSubject := <span style="color: #ff0000;">''</span>, cDisplay := MEMVAR->coname, cMsg := <span style="color: #ff0000;">''</span>, cCC := <span style="color: #ff0000;">''</span>, ;<br />          cReply := cSender, cGstNo := <span style="color: #ff0000;">''</span><br /><br />cMsg := alltrim<span style="color: #000000;">&#40;</span>cMsg<span style="color: #000000;">&#41;</span><br /><br />CursorWait<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />cHtml:=<span style="color: #ff0000;">'<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">'</span><br />cHtml+=<span style="color: #ff0000;">'<HTML><HEAD>'</span><br />cHtml+=<span style="color: #ff0000;">'<META content="text/html; charset=windows-874" http-equiv=Content-Type>'</span><br />cHtml+=<span style="color: #ff0000;">'<META name=GENERATOR content="MSHTML 8.00.6001.18783">'</span><br />cHtml+=<span style="color: #ff0000;">'<STYLE></STYLE>'</span><br />cHtml+=<span style="color: #ff0000;">'</HEAD>'</span><br />cHtml+=<span style="color: #ff0000;">'<BODY bgColor=#ffffff>'</span><br />cHtml+=<span style="color: #ff0000;">'<DIV>'</span><br /><br /><span style="color: #B900B9;">// cHtml += '<DIV><FONT size=2 color=blue face=Arial>Hello How are you ?</FONT></DIV></BODY></HTML>'</span><br /><br />cHtml += cMsg<br />cHtml += <span style="color: #ff0000;">'</DIV></BODY></HTML>'</span><br /><br /><span style="color: #00C800;">TRY</span><br />  oEmailCfg := CREATEOBJECT<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"CDO.Configuration"</span> <span style="color: #000000;">&#41;</span><br />  WITH OBJECT oEmailCfg:<span style="color: #000000;">Fields</span><br />     :<span style="color: #000000;">Item</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"http://schemas.microsoft.com/cdo/configuration/smtpserver"</span> <span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span>                 := <span style="color: #ff0000;">"smtp.gmail.com"</span><br />     :<span style="color: #000000;">Item</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"http://schemas.microsoft.com/cdo/configuration/smtpserverport"</span> <span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span>         := <span style="color: #000000;">465</span><br />     :<span style="color: #000000;">Item</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"http://schemas.microsoft.com/cdo/configuration/sendusing"</span> <span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span>              := <span style="color: #000000;">2</span>   <span style="color: #B900B9;">// Remote SMTP = 2, local = 1</span><br />     :<span style="color: #000000;">Item</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"http://schemas.microsoft.com/cdo/configuration/smtpauthenticate"</span> <span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span>       := .T.<br />     :<span style="color: #000000;">Item</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"http://schemas.microsoft.com/cdo/configuration/smtpusessl"</span> <span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span>                 := .T.<br />     :<span style="color: #000000;">Item</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"http://schemas.microsoft.com/cdo/configuration/savesentitems"</span> <span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span>          := lSave<br />     :<span style="color: #000000;">Item</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"http://schemas.microsoft.com/cdo/configuration/sendusername"</span> <span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span>           := cSender  <span style="color: #B900B9;">//  "[email protected]"</span><br />     :<span style="color: #000000;">Item</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"http://schemas.microsoft.com/cdo/configuration/sendpassword"</span> <span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span>           := cPass <span style="color: #B900B9;">// Password</span><br />     :<span style="color: #000000;">Item</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout"</span><span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span> := <span style="color: #000000;">60</span><br />     :<span style="color: #0000ff;">Update</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />  END WITH<br /><br />CATCH oError<br /><br />    <span style="color: #00C800;">if</span> lMsgInfo<br />        MsgAlert<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Could not send message"</span> +CRLF+  ;<br />            <span style="color: #ff0000;">"Error: "</span> + TRANSFORM<span style="color: #000000;">&#40;</span>oError:<span style="color: #000000;">GenCode</span>, <span style="color: #00C800;">NIL</span><span style="color: #000000;">&#41;</span> +CRLF+  ;<br />            <span style="color: #ff0000;">"SubC: "</span> + TRANSFORM<span style="color: #000000;">&#40;</span>oError:<span style="color: #000000;">SubCode</span>, <span style="color: #00C800;">NIL</span><span style="color: #000000;">&#41;</span> +CRLF+  ;<br />                <span style="color: #ff0000;">"OSCode: "</span> + TRANSFORM<span style="color: #000000;">&#40;</span>oError:<span style="color: #000000;">OsCode</span>, <span style="color: #00C800;">NIL</span><span style="color: #000000;">&#41;</span> +CRLF+  ;<br />                <span style="color: #ff0000;">"SubSystem: "</span> + TRANSFORM<span style="color: #000000;">&#40;</span>oError:<span style="color: #000000;">SubSystem</span>, <span style="color: #00C800;">NIL</span><span style="color: #000000;">&#41;</span> +CRLF+  ;<br />                <span style="color: #ff0000;">"Message: "</span> + oError:<span style="color: #000000;">Description</span> <span style="color: #000000;">&#41;</span><br />    <span style="color: #00C800;">else</span><br />    nSuccess := <span style="color: #000000;">0</span><br />    end<br />END<br />oError:=<span style="color: #00C800;">NIL</span><br /><br /><span style="color: #00C800;">TRY</span><br />    oEmailMsg := CREATEOBJECT <span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"CDO.Message"</span> <span style="color: #000000;">&#41;</span><br />    WITH OBJECT oEmailMsg<br />        :<span style="color: #000000;">Configuration</span>  := oEmailCfg<br />        :<span style="color: #0000ff;">From</span>               := chr<span style="color: #000000;">&#40;</span><span style="color: #000000;">34</span><span style="color: #000000;">&#41;</span>+cDisplay+<span style="color: #ff0000;">" "</span>+chr<span style="color: #000000;">&#40;</span><span style="color: #000000;">34</span><span style="color: #000000;">&#41;</span>+ <span style="color: #ff0000;">"<"</span>+cReply+<span style="color: #ff0000;">">"</span> <span style="color: #B900B9;">// cSender  // This will be displayed in the From (The email id does not appear)</span><br />        :<span style="color: #0000ff;">To</span>                 := cTo   <span style="color: #B900B9;">// "[email protected]"    // <-----   Place your email address</span><br />        :<span style="color: #0000ff;">Subject</span>            := cSubject  <span style="color: #B900B9;">//   "Email Test Message from GMail"</span><br />        :<span style="color: #000000;">ReplyTo</span>            := cReply<br />        :<span style="color: #000000;">MDNRequested</span>   := .F.<br />        <span style="color: #00C800;">if</span> !empty<span style="color: #000000;">&#40;</span>cAttach<span style="color: #000000;">&#41;</span><br />              :<span style="color: #000000;">AddAttachment</span><span style="color: #000000;">&#40;</span>cAttach<span style="color: #000000;">&#41;</span><br />        end<br />        :<span style="color: #000000;">HTMLBody</span> = cHtml<br />    END WITH<br />    oEmailMsg:<span style="color: #000000;">Send</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />CATCH oError<br />    <span style="color: #00C800;">if</span> lMsgInfo<br />       MsgAlert<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Could not send message"</span> + <span style="color: #ff0000;">";"</span>  + CRLF+ ;<br />             <span style="color: #ff0000;">"Error: "</span> + TRANSFORM<span style="color: #000000;">&#40;</span>oError:<span style="color: #000000;">GenCode</span>, <span style="color: #00C800;">NIL</span><span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">";"</span> + CRLF+;<br />              <span style="color: #ff0000;">"SubC: "</span>  + TRANSFORM<span style="color: #000000;">&#40;</span>oError:<span style="color: #000000;">SubCode</span>, <span style="color: #00C800;">NIL</span><span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">";"</span> + CRLF+ ;<br />               <span style="color: #ff0000;">"OSCode: "</span>+ TRANSFORM<span style="color: #000000;">&#40;</span>oError:<span style="color: #000000;">OsCode</span>, <span style="color: #00C800;">NIL</span><span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">";"</span> + CRLF +;<br />                <span style="color: #ff0000;">"SubSystem: "</span> + TRANSFORM<span style="color: #000000;">&#40;</span>oError:<span style="color: #000000;">SubSystem</span>, <span style="color: #00C800;">NIL</span><span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">";"</span> +CRLF+ ;<br />                <span style="color: #ff0000;">"Message: "</span> + oError:<span style="color: #000000;">Description</span> <span style="color: #000000;">&#41;</span><br />    end<br />END<br /><br />CursorArrow<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">Return</span> nSuccess</div>[/code:2fynxl4d]
send mail
Dutch I use CDO myself to send SMTP mail .. there are two factors out of the developers control in a Corporate environment and it all boils down to security. 1) You can use a local SMTP transport within a business, however most large Corporations limit SMTP traffic from ONLY KNOWN DNS targets such as multi function machines ( copiers that scan .pdf to e-mail ). And the other achilies heal is local SMTP limits e-mail to within the Company and will not allow out-bound SMTP to get past the firewall. 2) CDO is a good solution because you can set up a third party SMTP relay account, like a gmail address ( as in your example ), and point your SMTP traffic to that external address. Again, many modern Enterprises STOP ANY SMTP routing from going out through their firewall, again defeating your purpose. To make SMTP work, you need to include any IT department in the deployment of your app that uses SMTP so they can be aware of the traffic and in ALL cases allow for the traffic to be sent from a specific DNS device. Rick Lipkin
send mail
Dear Rick, I agree with you, sometime our customer has got problem in case of Firewall but it will avoid this problem by IT know what we do. Thanks for an kind idea.
send mail
Ducth, perhaps now I Know how send a message but I need some info MDNRequested := .F. what is this ? I need the check if the email is read ..thanks
send mail
and if the final user need a proxy how I send th email ?
send mail
[quote="Silvio.Falconi":1jjqraxf]Ducth, perhaps now I Know how send a message but I need some info MDNRequested := .F. what is this ? I need the check if the email is read ..thanks[/quote:1jjqraxf] If you or not email sending confirmation.
send mail
Hello, Many antivirus block CDO function. Also, it does not support TLS autentification, which is now used by most ISPs. It´s a pending issue.
send mail
In Italy run ok with the most principal server /provider Gmail ask a authorization to user
send mail
Damiano James brings up a good point .. if you are in a corporate setting and are trying to send out SMTP thru the Corporate infrastructure .. I know for a fact, that many Corporate IT policies forbid SMTP traffic out or within their Corporate routers and block that type of traffic.... without prior permission and exceptions made in their router for that particular machine name. If that is the case and your customer is in a Corporate setting .. I would find out if that Company has specific policies in place to block SMTP traffic within their infrastructure. Rick Lipkin
send mail
use google translator please: [img:n3kzwjpz]http&#58;//i&#46;imgur&#46;com/PdpNPk5&#46;png[/img:n3kzwjpz] Regards, saludos.
send mail
Damiano, Every mail system has it's own configuration for their SMTP server. Most businesses have one mail system for all their employees so this is simple. In your case each one has a different mail system, so there are only two choices. 1) Change the configuration for each person's outgoing email, or 2) create a new email just for this and use it for everyone to send these notices. Many companies use this type of email account for sending out invoices, payment reminders, sales letters, etc. One other possibility that just came to mind, is to add a simple message system to your app that is all local (that doesn't even use email). This would be more work though. Regards, James
send mail
Damiano, I just had another idea. If all your users are running Windows 10, then you can use the Toast notifications. If you are interested, search the forum for "toast." James
send mail
hi, I need this. I have a lan with 4 pc, I'd like to send from my app.exe a email when user insert a new product. users have their email but with different extensions (<!-- e --><a href="mailto:[email protected]">[email protected]</a><!-- e -->, <!-- e --><a href="mailto:[email protected]">[email protected]</a><!-- e -->, <!-- e --><a href="mailto:[email protected]">[email protected]</a><!-- e -->, etc) I configured inside my.prg CDO.Message with gmail smtp [code=fw:2kq37y6h]<div class="fw" id="{CB}" style="font-family: monospace;">  WITH OBJECT oEmailCfg:<span style="color: #000000;">Fields</span><br />     :<span style="color: #000000;">Item</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"http://schemas.microsoft.com/cdo/configuration/smtpserver"</span> <span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span>             := Alltrim<span style="color: #000000;">&#40;</span>cServer<span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// "smtp.gmail.com"</span><br />     :<span style="color: #000000;">Item</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"http://schemas.microsoft.com/cdo/configuration/smtpserverport"</span> <span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span>         := nPOrta <span style="color: #B900B9;">// 465</span><br />     :<span style="color: #000000;">Item</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"http://schemas.microsoft.com/cdo/configuration/sendusing"</span> <span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span>              := <span style="color: #000000;">2</span>   <span style="color: #B900B9;">// Remote SMTP = 2, local = 1</span><br />     :<span style="color: #000000;">Item</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"http://schemas.microsoft.com/cdo/configuration/smtpauthenticate"</span> <span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span>       := .t.<br />     :<span style="color: #000000;">Item</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"http://schemas.microsoft.com/cdo/configuration/smtpusessl"</span> <span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span>             := lSSL<br />     :<span style="color: #000000;">Item</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"http://schemas.microsoft.com/cdo/configuration/savesentitems"</span> <span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span>          := lSave<br />     :<span style="color: #000000;">Item</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"http://schemas.microsoft.com/cdo/configuration/sendusername"</span> <span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span>           := AllTrim<span style="color: #000000;">&#40;</span>cSender<span style="color: #000000;">&#41;</span>  <span style="color: #B900B9;">//  "[email protected]"</span><br />     :<span style="color: #000000;">Item</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"http://schemas.microsoft.com/cdo/configuration/sendpassword"</span> <span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span>           := AllTrim<span style="color: #000000;">&#40;</span>cPass<span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// Password of usr1</span><br />     :<span style="color: #000000;">Item</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout"</span><span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span>   := <span style="color: #000000;">60</span><br />     :<span style="color: #0000ff;">Update</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />  END WITH</div>[/code:2kq37y6h] when I used this settings from pc of user with <!-- e --><a href="mailto:[email protected]">[email protected]</a><!-- e --> (in this pc there is Thunderbird) email work perfect but if I use my app.exe from pc of user with <!-- e --><a href="mailto:[email protected]">[email protected]</a><!-- e --> I get error. I know that it's chained with thunderbird configuration but I'd like unchained email from smtp client. I'd like to send email from all pc using always a general settings. is it possible?
send mail
You could create a generic GMail account just for this and then email from that account via SMTP. James
send mail
thank you James is there any other way?
send mail
i try to send from other pc using the same gmail configuration of <!-- e --><a href="mailto:[email protected]">[email protected]</a><!-- e --> but I get this error: COULD NOT SEND MESSAGE ERROR 1001.0000 SuBC 65535.0000 OSCODE 0.0000 SubSystem: TOLEAuto Message: any help?
send mail
hi, thank for your help. Situation is this. In this company there are about 60 users (win 7, win10, old XP...) and ibm iSeries server. Inside iSeries there are my applications (in RPG language). there are about 20 pc with my FWH app that read data from DB2 and show dashboards and statistics or export to excel. This company have your domain <!-- m --><a class="postlink" href="http://www.thiscompany.it">http://www.thiscompany.it</a><!-- m --> and users have their email <!-- e --><a href="mailto:[email protected]">[email protected]</a><!-- e -->. there are about 15 external collaborators (inside and outside company lan) that have their email <!-- e --><a href="mailto:[email protected]">[email protected]</a><!-- e -->, <!-- e --><a href="mailto:[email protected]">[email protected]</a><!-- e -->, <!-- e --><a href="mailto:[email protected]">[email protected]</a><!-- e -->, <!-- e --><a href="mailto:[email protected]">[email protected]</a><!-- e -->, <!-- e --><a href="mailto:[email protected]">[email protected]</a><!-- e -->. On my PC (inside company with win10) I have Thunderbird with <!-- e --><a href="mailto:[email protected]">[email protected]</a><!-- e --> SMTP configuration (smtp.gmail.com, port 465, 2 remote) and If I send email from sendmail.pgm (myexe.exe) using CDO.Configuration that's ok All users receive my email, it works! But If I use myexe.exe on anothers pcs (win7 32bit or win7 64bit) and configure thunderbird with the same <!-- e --><a href="mailto:[email protected]">[email protected]</a><!-- e --> with the same SMTP configuration I get ERROR 1001.0000 etc...
send mail
[quote:qv4zi9e4]But If I use myexe.exe on anothers pcs (win7 32bit or win7 64bit) and configure thunderbird with the same <!-- e --><a href="mailto:[email protected]">[email protected]</a><!-- e --> with the same SMTP configuration I get ERROR 1001.0000 etc...[/quote:qv4zi9e4] OK, if you are using CDO instead of MAPI I don't think it has anything to do with Thunderbird. Or, maybe you are saying the even Thunderbird does not work on those PCs? Possibly those PC's that are erroring out have a different version of CDO or it is not registered correctly. Do you know what error 1001.0000 means? Also, the firewall on those PCs may be blocking the port you are trying to use. I suggest searching the net for CDO errors. James
send mail
hi James, I found Microsoft CDO error 1001. It seems that when CDO not works errors could be inside windows registry (regdet32) keys. Im trying
send mail
Daminao, Perhaps this page will help: <!-- m --><a class="postlink" href="https://support.microsoft.com/en-us/help/177850/info-what-is-the-difference-between-cdo-1.2-and-cdonts">https://support.microsoft.com/en-us/hel ... and-cdonts</a><!-- m --> Regards, James
send mail
Hello, I wanted to test the mail example, but that gave some errors. Can you please revice this [code=fw:zja1r9gb]<div class="fw" id="{CB}" style="font-family: monospace;"><br />Undefined symbols <span style="color: #00C800;">for</span> architecture x86_64:<br />  <span style="color: #ff0000;">"_HB_FUN_MAILADDATTACH"</span>, referenced <span style="color: #0000ff;">from</span>:<br />      _symbols_table in libfive.a<span style="color: #000000;">&#40;</span><span style="color: #0000ff;">mail</span>.o<span style="color: #000000;">&#41;</span><br />  <span style="color: #ff0000;">"_HB_FUN_MAILCREATE"</span>, referenced <span style="color: #0000ff;">from</span>:<br />      _symbols_table in libfive.a<span style="color: #000000;">&#40;</span><span style="color: #0000ff;">mail</span>.o<span style="color: #000000;">&#41;</span><br />  <span style="color: #ff0000;">"_HB_FUN_MAILSEND"</span>, referenced <span style="color: #0000ff;">from</span>:<br />      _symbols_table in libfive.a<span style="color: #000000;">&#40;</span><span style="color: #0000ff;">mail</span>.o<span style="color: #000000;">&#41;</span><br />  <span style="color: #ff0000;">"_HB_FUN_MAILSETFROM"</span>, referenced <span style="color: #0000ff;">from</span>:<br />      _symbols_table in libfive.a<span style="color: #000000;">&#40;</span><span style="color: #0000ff;">mail</span>.o<span style="color: #000000;">&#41;</span><br />  <span style="color: #ff0000;">"_HB_FUN_MAILSETMSG"</span>, referenced <span style="color: #0000ff;">from</span>:<br />      _symbols_table in libfive.a<span style="color: #000000;">&#40;</span><span style="color: #0000ff;">mail</span>.o<span style="color: #000000;">&#41;</span><br />  <span style="color: #ff0000;">"_HB_FUN_MAILSETSUBJECT"</span>, referenced <span style="color: #0000ff;">from</span>:<br />      _symbols_table in libfive.a<span style="color: #000000;">&#40;</span><span style="color: #0000ff;">mail</span>.o<span style="color: #000000;">&#41;</span><br />  <span style="color: #ff0000;">"_HB_FUN_MAILSETTO"</span>, referenced <span style="color: #0000ff;">from</span>:<br />      _symbols_table in libfive.a<span style="color: #000000;">&#40;</span><span style="color: #0000ff;">mail</span>.o<span style="color: #000000;">&#41;</span><br /> </div>[/code:zja1r9gb]
send mail
missing by linking mailer.m in the makefile. added , mailer.m throws deprecated errors. we will have to review the module. made test as it is sent the mail but not the attached file. Saludos.
send mail
I have reviewed the matter...I will try to explain the situation Apple in an attempt to improve security to made sandbox in their applications. One application can not automatically send messages with attachments without the supervision of a user,for security reasons. Before this we have 2 options : 1.-Put code to send messages automatically but without attachments. 2.- Put code that compose the message and attach the files, open the Composer Mail window to wait for the user to press the send button. I think the best option is the second but I guess it will depend on the needs of each one. I'll be waiting for your answers. Saludos.
send mail
Hello Mastintin, Thanks for reviewing. For my app, I think I need the second option, but will this work with every mail program a user has. I use Thunderbird for all my mail and not the mail program delivered by Apple. If this is possible, it would be very handsome.
send sms via modem (with phone sim card)
Hi, Does anyone has fivewin sample to send sms via gsm modem in notebook/pc(connected with phone sim card) ? Regards Hoe
send sms via modem (with phone sim card)
Hi [b:3bup71fk]tnhoe[/b:3bup71fk] You have two ways 1-Develop a small aplication/service in Microsoft SMS SDK to use in your aplication. 2-Using Microsoft SMS Sender 1.0 tool. Is a [b:3bup71fk]free[/b:3bup71fk] small aplication for send SMS. You can download at [url=http&#58;//www&#46;soft32&#46;com/download-Microsoft_SMS_Sender-9694-5&#46;html:3bup71fk]SOFT32.com[/url:3bup71fk] Or search on Google with [b:3bup71fk]sms api[/b:3bup71fk] for more.
send sms via modem (with phone sim card)
==> 1-Develop a small aplication/service in Microsoft SMS SDK Will try it. ==> 2-Using Microsoft SMS Sender 1.0 tool Already tried. I call it from Fivewin nCode=Winexec() and a few problems found :- - it always return same nCode value whether success or fail - it hangs when sending more than 5 SMSs from app
send sms via modem (with phone sim card)
These people sell an aplication that permits sending sms with a batch file. <!-- m --><a class="postlink" href="http://www.intellisoftware.co.uk">http://www.intellisoftware.co.uk</a><!-- m --> I Fwrite from FW and Run : [SENDSMS 637777888 Rec:PRUEBA SL /Dir:ABADESA, Nº 12 /Ciudad:MADRID /Hora:19:15] to send an SMS ************************************************ Function MakeSendSms(cSend,cTel) Local oText Local cText:='SENDSMS '+cTel+ ' "'+cSend+'"' IF FILE("PESSEND.BAT") ERASE PESSEND.BAT ENDIF oText:= TTxtFile():New("PESSEND.BAT" ) if oText:Open() oText :Add(cText) oText :Close() endif IF FILE("PESSEND.BAT") WAITRUN("PESSEND.BAT",2) ENDIF RETURN NIL
send via WIFI dbf
How I can send via wifi mode dbf or part of it from a fwppc program?
send via WIFI dbf
Silvio, Wifi is just a way of setting a network connection. Once it is set, then you can use FTP, or sockets, or other options, to send a file.
send via WIFI dbf
Antonio, it is very hard for me Why NO>T create a test sample ?
sendfile/uplod from samples
Hello friends, I tried these samples. But the uploaded JPG file is not readable. Is this example working on JPG-files? Best regards, Otto
sendfile/uplod from samples
Hello friends, Now I have taken the examples: button-upload.prg srv_upload.prg from TWeb. I do not include the entire TWeb, only the functions that are actually used.
sending a msg to an object from low level code
Using hb_objSendMsg() [code=fw:3bfk4jg0]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />  <span style="color: #00C800;">local</span> o := Test<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />  <br />  o:<span style="color: #000000;">nData</span> = <span style="color: #000000;">1234</span><br />  <br />  SetValue<span style="color: #000000;">&#40;</span> o, <span style="color: #000000;">4321</span> <span style="color: #000000;">&#41;</span><br />  <br />  ? o:<span style="color: #000000;">nData</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #00C800;">CLASS</span> Test<br /><br />   <span style="color: #00C800;">DATA</span> nData<br />   <br /><span style="color: #00C800;">ENDCLASS</span><br /><br /><span style="color: #00D7D7;">#pragma</span> BEGINDUMP<br /><span style="color: #00D7D7;">#include</span> <hbapicls.h><br /><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> SETVALUE <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />   hb_objSendMsg<span style="color: #000000;">&#40;</span> hb_param<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, HB_IT_OBJECT <span style="color: #000000;">&#41;</span>, <span style="color: #ff0000;">"_NDATA"</span>, <span style="color: #000000;">1</span>, hb_param<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span>, HB_IT_ANY <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #00D7D7;">#pragma</span> ENDDUMP<br /> </div>[/code:3bfk4jg0]
sending a msg to an object from low level code
A, It's interesting, but do u aprpreciate acces time ? maybe in loops of 1000 iterations, <!-- s:roll: --><img src="{SMILIES_PATH}/icon_rolleyes.gif" alt=":roll:" title="Rolling Eyes" /><!-- s:roll: --> :
sending a msg to an object from low level code
It is interesting for sending a msg to an object from low level in a simple way <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> From PRG we should use ":" as usual <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
sending mail trought Lotus Notes
Hello: Has anybody a sample of sending mail trought Lotus Notes ? It has to be done using OLE and I don't find how to do it. Regards,
sending mail trought Lotus Notes
Jose Luis, Do you have Lotus Notes installed on your computer ?
sending mail trought Lotus Notes
Yes, I've Notes. This is a sample with VB: Set session = CreateObject("Notes.NotesSession") Set db = session.GetDatabase("", "") Set doc = db.CreateDocument() doc.Form = "Main Topic" doc.Subject = Form1.Text3.Text doc.Body = Form1.Text2.Text Call doc.Save(True, False) Regards,
sending mail trought Lotus Notes
Jose Luis, Ok, have you tried the same logic with xharbour TOleAuto ?