topic stringlengths 1 63 | text stringlengths 1 577k ⌀ |
|---|---|
internet ip address | [quote="EnricoMaria":3d7y4sva]Ok, but I don't like a function that relies on a specific web address.[/quote:3d7y4sva]
Yes, I also don't like, but work.
The router is a little computer with a O.S. (Linux normally).
In this case i do not think that is possible to unify one standard function for return the external IP. |
internet ip address | Enrico,
I do not like the idea neither, this is why i was looking at another function.
This one works ok, we do all our software Maintenance with VNC using this function to show the internet ip
Richard |
internet ip address | Hi all,
I can get my external ip address with the code below.
I wonder if there is another way to get the external ip without connecting to any site.
Birol Betoncu
[code=fw:806asmzp]<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: #00C800;">function</span> main<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><span style="color: #00C800;">LOCAL</span> cRetIP:=<span style="color: #ff0000;">''</span><br /> RUNURL<span style="color: #000000;">(</span><span style="color: #ff0000;">"http://www.whatismyip.com/automation/n09230945.asp"</span>, @cRetIP<span style="color: #000000;">)</span><br /> <span style="color: #0000ff;">msginfo</span><span style="color: #000000;">(</span>cRetIP<span style="color: #000000;">)</span><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">nil</span><br /><br /><br /><span style="color: #00C800;">FUNCTION</span> RUNURL<span style="color: #000000;">(</span> cUrl, cErr <span style="color: #000000;">)</span><br /><span style="color: #00C800;">LOCAL</span> oUrl, oCli, lOk := .F.<br /> cErr = <span style="color: #ff0000;">""</span><br /> BEGIN SEQUENCE<br /> oUrl = TUrl<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">(</span> cUrl <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">IF</span> EMPTY<span style="color: #000000;">(</span> oUrl <span style="color: #000000;">)</span>; <span style="color: #00C800;">BREAK</span>; <span style="color: #00C800;">ENDIF</span><br /> oCli = TIPClientHttp<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">(</span> oUrl <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">IF</span> EMPTY<span style="color: #000000;">(</span> oCli <span style="color: #000000;">)</span>; <span style="color: #00C800;">BREAK</span>; <span style="color: #00C800;">ENDIF</span><br /> oCli:<span style="color: #000000;">nConnTimeout</span> = <span style="color: #000000;">-1</span><br /> <span style="color: #00C800;">IF</span> !oCli:<span style="color: #000000;">Open</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span>; <span style="color: #00C800;">BREAK</span>; <span style="color: #00C800;">ENDIF</span><br /> cErr = CVALTOCHAR<span style="color: #000000;">(</span> oCli:<span style="color: #000000;">ReadAll</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> lOk = !EMPTY<span style="color: #000000;">(</span> oCli:<span style="color: #000000;">cReply</span> <span style="color: #000000;">)</span> .AND. <span style="color: #ff0000;">"OK"</span> $ UPPER<span style="color: #000000;">(</span> oCli:<span style="color: #000000;">cReply</span> <span style="color: #000000;">)</span><br /> oCli:<span style="color: #000000;">Close</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> END SEQUENCE<br /><span style="color: #00C800;">RETURN</span> lOk</div>[/code:806asmzp] |
internet ip address | Try this code
[code=fw:wpdmd9h3]<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: #B900B9;">//--------------------------//</span><br /><span style="color: #00C800;">FUNCTION</span> Main<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">LOCAL</span> oHttp<br /> <span style="color: #00C800;">LOCAL</span> cVar := <span style="color: #ff0000;">""</span><br /><br /> <span style="color: #00C800;">TRY</span><br /> oHttp := CreateObject<span style="color: #000000;">(</span><span style="color: #ff0000;">"winhttp.winhttprequest.5.1"</span><span style="color: #000000;">)</span><br /> oHttp:<span style="color: #000000;">Open</span><span style="color: #000000;">(</span><span style="color: #ff0000;">"GET"</span>,<span style="color: #ff0000;">"http://whatismyip.com/automation/n09230945.asp"</span>,.F.<span style="color: #000000;">)</span><br /> oHttp:<span style="color: #000000;">Send</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> cVar := oHttp:<span style="color: #000000;">ResponseText</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> CATCH<br /> END<br /><br /> <span style="color: #00C800;">If</span> !empty<span style="color: #000000;">(</span>cVar<span style="color: #000000;">)</span><br /> <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">(</span><span style="color: #ff0000;">"Your External IP is : "</span>+cVar<span style="color: #000000;">)</span><br /> <span style="color: #00C800;">else</span><br /> <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">(</span><span style="color: #ff0000;">"Unable to retrieve Your External IP"</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">Endif</span><br /> <br /><span style="color: #00C800;">Return</span> <span style="color: #00C800;">NIL</span></div>[/code:wpdmd9h3]
[quote="Birol Betoncu":wpdmd9h3]I wonder if there is another way to get the external ip without connecting to any site.[/quote:wpdmd9h3]
As far as I know there is no way for the computer to know its external IP address. Routers translate and hide the external address from each node connected to it. The only thing (easiest way) you can do is connect with a site that will relay the information to you, because it communicates with your 'external' IP address. But this is not a reliable solution because the service provider may not continue the service for long time, they may change the ResponseText() format, may change their URL etc.
The best way to do this is to put a small php code on your webserver which returns the IP address on a webpage, and all your applications can query this webpage to retrieve your external IP with a code similiar which I have posted above.
For eg. The .php code would be
[code=fw:wpdmd9h3]<div class="fw" id="{CB}" style="font-family: monospace;">$ip=@$REMOTE_ADDR;<br />echo <span style="color: #ff0000;">"<b>IP Address= $ip</b>"</span>;</div>[/code:wpdmd9h3]
The above code will display this IP address= xxx.xxx.xxx.xxx
Regards
Anser |
internet ip address | Thanks for your reply. It is very helpfull.
Birol Betoncu |
internet ip address | [quote="Richard Chidiak":3qezof05]Hello
Is there an esay way to know the INTERNET ip address from a computer ?
I think Enrico published solething on it some time ago, i did a search but did not find,
if anyone has a sample, thanks for the help
PS : I was previously using tip functions from xharbour but they do not work anymore, i plan to replace them with fwh functions,
Thanks for help,
Richard[/quote:3qezof05]
Ya,it's possible .You can easily find your internet ip address through ip look up.If you want your internet ip address visit [url=http://www.ip-details.com/:3qezof05]ip-details.com[/url:3qezof05] .Here you can get your internet service provider ,ip location,latitude and longitude also. |
invocar funciones sql con ado | yo utilizo procedimientos almacenados, mi experiencia es la siguiente:
el comando CALL se utiliza en MySql para llamar los procedimientos y los parámetros se pasan entre perentesis, yo al cambiarme a MS-Sql tuve que cambiar el comando CALL por EXECUTE y sacar los parentesis.
prueba de esta forma:
[code=fw:2pp72eua]<div class="fw" id="{CB}" style="font-family: monospace;">oCon1:<span style="color: #000000;">Execute</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"Execute dbo.CalcSaldo 'T25CD', '01', '00' "</span> <span style="color: #000000;">)</span></div>[/code:2pp72eua]
ojala funcione.
Saludos |
invocar funciones sql con ado | Gracias jacgsoft y armando por responder
[quote=
prueba de esta forma:
[code=fw:2bzbyv3q]<div class="fw" id="{CB}" style="font-family: monospace;">oCon1:<span style="color: #000000;">Execute</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"Execute dbo.CalcSaldo 'T25CD', '01', '00' "</span> <span style="color: #000000;">)</span></div>[/code:2bzbyv3q]
ojala funcione.
Saludos[/quote]
Armando si funciona pero como capturo lo que me devuelve el procedure?, quiero intentar de esa forma que es mas corta sino optare por la sugerencia de jacgsoft
Gracias |
invocar funciones sql con ado | Gente:
Estoy tratando de llamar a una funcion sql con ADO pero no consigo hacerlo y también como capturo el resultado
sql:
[code=fw:t6u2hbpm]<div class="fw" id="{CB}" style="font-family: monospace;"><br />CREATE <span style="color: #00C800;">FUNCTION</span> <span style="color: #000000;">[</span>dbo<span style="color: #000000;">]</span>.<span style="color: #000000;">[</span>CalcSaldo<span style="color: #000000;">]</span><br /><span style="color: #000000;">(</span><br /> @Codigo varchar<span style="color: #000000;">(</span><span style="color: #000000;">8</span><span style="color: #000000;">)</span>, @nMes int, @codusu char<span style="color: #000000;">(</span><span style="color: #000000;">2</span><span style="color: #000000;">)</span><br /><span style="color: #000000;">)</span><br />RETURNS int<br />AS<br />BEGIN<br /> -- Declare the <span style="color: #00C800;">return</span> variable here<br /> DECLARE @nResul int<br /><br /> -- Halla el stock actual <br /> Set @nResul = <span style="color: #000000;">(</span>dbo.CalcIngAno<span style="color: #000000;">(</span>@Codigo, @nMes,@codusu<span style="color: #000000;">)</span> - dbo.CalcSalAno<span style="color: #000000;">(</span>@Codigo, @nMes, @codusu<span style="color: #000000;">)</span><span style="color: #000000;">)</span> + <span style="color: #000000;">(</span>dbo.CalcIngMes<span style="color: #000000;">(</span>@Codigo, @nMes, @codusu<span style="color: #000000;">)</span> - dbo.calcSalMes<span style="color: #000000;">(</span>@Codigo, @nMes, @codusu<span style="color: #000000;">)</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">RETURN</span> @nResul<br /><br />END<br />GO</div>[/code:t6u2hbpm]
codigo fwh:
[code=fw:t6u2hbpm]<div class="fw" id="{CB}" style="font-family: monospace;"><br />oCon1:=AbreConexBD<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br />oCon1:<span style="color: #000000;">Execute</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"CALL CalcSaldo('T25CD', '01', '00' )"</span> <span style="color: #000000;">)</span><br /><br /><br /><span style="color: #00C800;">Function</span> AbreConexBD<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">LOCAL</span> cCString, oError <span style="color: #B900B9;">//, oRS, lRS := .f.</span><br /><br /> cCString := <span style="color: #ff0000;">"Provider=SQLOLEDB;"</span><br /> cCString += <span style="color: #ff0000;">"Server=PYSASERVER;"</span><br /> cCString += <span style="color: #ff0000;">"Database=PysaBD;Uid=sa;Pwd=Pysa123456;"</span><br /> <span style="color: #00C800;">TRY</span><br /> oCon1 := CreateObject<span style="color: #000000;">(</span> <span style="color: #ff0000;">"ADODB.Connection"</span> <span style="color: #000000;">)</span><br /> oCon1:<span style="color: #000000;">Open</span><span style="color: #000000;">(</span> cCString <span style="color: #000000;">)</span><br /> CATCH oError<br /> MsgStop<span style="color: #000000;">(</span> oError:<span style="color: #000000;">Description</span> <span style="color: #000000;">)</span><br /> <span style="color: #B900B9;">//RETURN</span><br /> END<br /><span style="color: #00C800;">Return</span> <span style="color: #00C800;">Nil</span><br /> </div>[/code:t6u2hbpm]
error que sale:
[code=fw:t6u2hbpm]<div class="fw" id="{CB}" style="font-family: monospace;"><br /> Error description: <span style="color: #000000;"><span style="color: #000000;">(</span>DOS</span> Error <span style="color: #000000;">-2147352567</span><span style="color: #000000;">)</span> WINOLE/<span style="color: #000000;">1007</span> Sintaxis incorrecta cerca de <span style="color: #ff0000;">'T25CD'</span>. <span style="color: #000000;">(</span>0x80040E14<span style="color: #000000;">)</span>: <span style="color: #000000;">Microsoft</span> OLE DB Provider <span style="color: #00C800;">for</span> SQL <span style="color: #00C800;">Server</span><br /> Args:<br /> <span style="color: #000000;">[</span> <span style="color: #000000;">1</span><span style="color: #000000;">]</span> = C CALL CalcSaldo<span style="color: #000000;">(</span><span style="color: #ff0000;">'T25CD'</span>, <span style="color: #ff0000;">'01'</span>, <span style="color: #ff0000;">'00'</span> <span style="color: #000000;">)</span></div>[/code:t6u2hbpm] |
invocar funciones sql con ado | En el SQl
create PROCEDURE [dbo].[CalcSaldo](@Codigo varchar(8), @nMes int, @codusu char(2), @nResul Int Output )
As
Begin
Set Nocount On;
Set @nResul = (dbo.CalcIngAno(@Codigo, @nMes,@codusu) - dbo.CalcSalAno(@Codigo, @nMes, @codusu)) +
(dbo.CalcIngMes(@Codigo, @nMes, @codusu) - dbo.calcSalMes(@Codigo, @nMes, @codusu))
End
********************
En tu programa
Obtener_saldo(_Cod_,_Mes_,_Usu_,@Saldo)
MsgInfo('Saldo '+Str(Saldo,6),'Aviso')
Static Function Obtener_saldo(_Cod_,_Mes_,_Usu_,Saldo)
Local _oCmd_,_oPar_,_Cnx_
Connect_sql(@_Cnx_,G_sql_u,G_sql_c)
_oCmd_:=TOleAuto():New("ADODB.Command")
_oCmd_:ActiveConnection:=_Cnx_
_oCmd_:CommandType:=4
_oCmd_:CommandText:="CalcSaldo"
_oCmd_:CommandTimeout:=0
_oPar_:=_oCmd_:CreateParameter("Codigo",129,1,8,_Cod_)
_oCmd_:Parameters:Append(_oPar_)
_oPar_:=_oCmd_:CreateParameter("nMes",16,1,2,_Mes_)
_oCmd_:Parameters:Append(_oPar_)
_oPar_:=_oCmd_:CreateParameter("Codusu",129,1,2,_Usu_)
_oCmd_:Parameters:Append(_oPar_)
_oPar_:=_oCmd_:CreateParameter("nResul",3,2,6)
_oCmd_:Parameters:Append(_oPar_)
_oCmd_:Execute()
Saldo:=_oCmd_:Parameters("nResul"):Value
_Cnx_:Close()
Return(Nil) |
invocar funciones sql con ado | Gracias por su apoyo
De esta forma trabaja
[code=fw:1a9umep9]<div class="fw" id="{CB}" style="font-family: monospace;"><br />cSql1:=<span style="color: #ff0000;">"SELECT dbo.CalcSaldo('T25CD' ,1, '00')"</span><br /> <span style="color: #00C800;">TRY</span><br /> oRsr := TOleAuto<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"ADODB.RecordSet"</span> <span style="color: #000000;">)</span><br /> WITH OBJECT oRsr<br /> :<span style="color: #000000;">ActiveConnection</span> := oCon1<br /> :<span style="color: #000000;">Source</span> := cSql1<br /> :<span style="color: #000000;">CursorLocation</span> := adUseClient<br /> :<span style="color: #000000;">CursorType</span> := adOpenStatic<br /> :<span style="color: #000000;">LockType</span> := adLockOptimistic<br /> :<span style="color: #000000;">Open</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> END<br /> CATCH oError<br /> MsgStop<span style="color: #000000;">(</span> oError:<span style="color: #000000;">Description</span> <span style="color: #000000;">)</span><br /> END<br /> nResult :=oRsr:<span style="color: #000000;">Fields</span><span style="color: #000000;">(</span><span style="color: #000000;">0</span><span style="color: #000000;">)</span>:<span style="color: #000000;">Value</span><br /> </div>[/code:1a9umep9] |
invocar o provocar un click desde codigo | Ya antes tube este problema y creí haberlo resuelto,
Tengo una tabla padre (clientes) otra detalle (facturas con saldo) , en algunos casos y solamente en algunos casos, con ciertos clientes me "esconde una factura" , es decir tiene 2 con saldo y muestra 1, tiene 5 y muestra 4, etc. ya generé un tag metiendo el campo "consaldo" y ni asi,lo hace solamente si navego en el browse padre con teclado porque si doy click me muestra todo correcto, ya pieso que es el browse, la solucion "a machete" (como decimos acá) es dando un click ya sea en el registro padre o en el browse del detalle. por eso necesito provocarlo por codigo y no fisicamente...
saludos y gracias |
invocar o provocar un click desde codigo | Hola Miguel:
[quote="Miguel Salas":1zdth0u8]Tengo una tabla padre (clientes) otra detalle (facturas con saldo) , en algunos casos y solamente en algunos casos, con ciertos clientes me "esconde una factura" , es decir tiene 2 con saldo y muestra 1, tiene 5 y muestra 4, etc. ya generé un tag metiendo el campo "consaldo" y ni asi,lo hace solamente si navego en el browse padre con teclado porque si doy click me muestra todo correcto, ya pieso que es el browse, la solucion "a machete" (como decimos acá) es dando un click ya sea en el registro padre o en el browse del detalle. por eso necesito provocarlo por codigo y no fisicamente...[/quote:1zdth0u8]
Si nos muestras la parte de tu código donde defines los browses, seguramente que encontraremos el problema.
Un abrazo. |
invocar o provocar un click desde codigo | Saludos para todos
Muchas consultas en el foro no tienen repuestas porque no muestran parte del código para ver el problema y asi poder ayudarlo como indica Manuel y casi siempre lo pide Antonio y Daniel.
y si ponen el código colocarlo dentro de "[code][/code]" para un mejor análisis
Gracias por hacer de este foro una ayuda.
Adhemar |
invocar o provocar un click desde codigo | ok amigos, aqui les pongo el código actual....gracias
[code=fw:10kb4us9]<div class="fw" id="{CB}" style="font-family: monospace;"><br />.....<br />oBrwCli:<span style="color: #000000;">bChange</span>:=<span style="color: #000000;">{</span>|| oSayTel:<span style="color: #0000ff;">refresh</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span>,LlenaStatus<span style="color: #000000;">(</span>@oEje,@oSay1,@oSay2,@aAvance1,@aAvance2,@aEjercicio<span style="color: #000000;">)</span>, factura-><span style="color: #000000;">(</span>actualiza<span style="color: #000000;">(</span>@oBrw2<span style="color: #000000;">)</span><span style="color: #000000;">)</span>,pago-><span style="color: #000000;">(</span>ActualizaPago<span style="color: #000000;">(</span>@oBrwPago<span style="color: #000000;">)</span>,iif<span style="color: #000000;">(</span>pago-><span style="color: #000000;">(</span>eof<span style="color: #000000;">(</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span>,oTree:<span style="color: #000000;">deleteall</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span>,<span style="color: #000000;">)</span>,oBrw2:<span style="color: #0000ff;">refresh</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span><span style="color: #000000;">}</span><br />......<br /><br /><br /><span style="color: #00C800;">Static</span> <span style="color: #00C800;">Function</span> Actualiza<span style="color: #000000;">(</span>oBrw2<span style="color: #000000;">)</span><br />nSumaFacturas := <span style="color: #000000;">0</span><br />ordsetfocus<span style="color: #000000;">(</span><span style="color: #ff0000;">"empclif2"</span><span style="color: #000000;">)</span><br />QuickScope<span style="color: #000000;">(</span>empresa->clave+cliente->clave<span style="color: #000000;">)</span><br />nReg := recno<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br />DesmarcaFac<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br />dbGoto<span style="color: #000000;">(</span>nReg<span style="color: #000000;">)</span><br /><span style="color: #B900B9;">//oBrw2:GoTop()</span><br />oBrw2:<span style="color: #0000ff;">refresh</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">nil</span><br /><br /><br />Stat Func DesmarcaFac<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> Factura-><span style="color: #000000;">(</span>dbgotop<span style="color: #000000;">(</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">do</span> <span style="color: #00C800;">while</span> !factura-><span style="color: #000000;">(</span>eof<span style="color: #000000;">(</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">if</span> factura-><span style="color: #000000;">(</span>rlock<span style="color: #000000;">(</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span><br /> factura->sumar := .F.<br /> <span style="color: #00C800;">endif</span><br /> factura-><span style="color: #000000;">(</span>dbskip<span style="color: #000000;">(</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">enddo</span><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><br /> </div>[/code:10kb4us9] |
invoke sql functions with ado | Open recordset with sql as "SELECT functioname(param1,param2,...)"
Then,
result := oRs:Fields(0):Value |
invoke sql functions with ado | Guys;
It isnt working this sentence and also i want to capture the result of the function in fwh
sql;
[code=fw:13r5luo9]<div class="fw" id="{CB}" style="font-family: monospace;"><br />CREATE <span style="color: #00C800;">FUNCTION</span> <span style="color: #000000;">[</span>dbo<span style="color: #000000;">]</span>.<span style="color: #000000;">[</span>CalcSaldo<span style="color: #000000;">]</span><br /><span style="color: #000000;">(</span><br /> @Codigo varchar<span style="color: #000000;">(</span><span style="color: #000000;">8</span><span style="color: #000000;">)</span>, @nMes int, @codusu char<span style="color: #000000;">(</span><span style="color: #000000;">2</span><span style="color: #000000;">)</span><br /><span style="color: #000000;">)</span><br />RETURNS int<br />AS<br />BEGIN<br /> -- Declare the <span style="color: #00C800;">return</span> variable here<br /> DECLARE @nResul int<br /><br /> -- Consigo el stock actual <br /> Set @nResul = <span style="color: #000000;">(</span>dbo.CalcIngAno<span style="color: #000000;">(</span>@Codigo, @nMes,@codusu<span style="color: #000000;">)</span> - dbo.CalcSalAno<span style="color: #000000;">(</span>@Codigo, @nMes, @codusu<span style="color: #000000;">)</span><span style="color: #000000;">)</span> + <span style="color: #000000;">(</span>dbo.CalcIngMes<span style="color: #000000;">(</span>@Codigo, @nMes, @codusu<span style="color: #000000;">)</span> - dbo.calcSalMes<span style="color: #000000;">(</span>@Codigo, @nMes, @codusu<span style="color: #000000;">)</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">RETURN</span> @nResul<br /><br />END<br />GO<br /> </div>[/code:13r5luo9]
fwh code
[code=fw:13r5luo9]<div class="fw" id="{CB}" style="font-family: monospace;"><br />oCon1:=AbreConexBD<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br />oCon1:<span style="color: #000000;">Execute</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"CALL CalcSaldo('T25CD', '01', '00' )"</span> <span style="color: #000000;">)</span><br /><br /><br /><span style="color: #00C800;">Function</span> AbreConexBD<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">LOCAL</span> cCString, oError <span style="color: #B900B9;">//, oRS, lRS := .f.</span><br /><br /> cCString := <span style="color: #ff0000;">"Provider=SQLOLEDB;"</span><br /> cCString += <span style="color: #ff0000;">"Server=PYSASERVER;"</span><br /> cCString += <span style="color: #ff0000;">"Database=PysaBD;Uid=sa;Pwd=Pysa123456;"</span><br /> <span style="color: #00C800;">TRY</span><br /> oCon1 := CreateObject<span style="color: #000000;">(</span> <span style="color: #ff0000;">"ADODB.Connection"</span> <span style="color: #000000;">)</span><br /> oCon1:<span style="color: #000000;">Open</span><span style="color: #000000;">(</span> cCString <span style="color: #000000;">)</span><br /> CATCH oError<br /> MsgStop<span style="color: #000000;">(</span> oError:<span style="color: #000000;">Description</span> <span style="color: #000000;">)</span><br /> <span style="color: #B900B9;">//RETURN</span><br /> END<br /><span style="color: #00C800;">Return</span> <span style="color: #00C800;">Nil</span><br /> </div>[/code:13r5luo9]
this error results me
[code=fw:13r5luo9]<div class="fw" id="{CB}" style="font-family: monospace;"><br />Error description: <span style="color: #000000;"><span style="color: #000000;">(</span>DOS</span> Error <span style="color: #000000;">-2147352567</span><span style="color: #000000;">)</span> WINOLE/<span style="color: #000000;">1007</span> Sintaxis incorrecta cerca de <span style="color: #ff0000;">'T25CD'</span>. <span style="color: #000000;">(</span>0x80040E14<span style="color: #000000;">)</span>: <span style="color: #000000;">Microsoft</span> OLE DB Provider <span style="color: #00C800;">for</span> SQL <span style="color: #00C800;">Server</span><br /> Args:<br /> <span style="color: #000000;">[</span> <span style="color: #000000;">1</span><span style="color: #000000;">]</span> = C CALL CalcSaldo<span style="color: #000000;">(</span><span style="color: #ff0000;">'T25CD'</span>, <span style="color: #ff0000;">'01'</span>, <span style="color: #ff0000;">'00'</span> <span style="color: #000000;">)</span><br /> </div>[/code:13r5luo9]
sql: |
invoke sql functions with ado | Thank master rao!
its working now
[code=fw:1q6uemy7]<div class="fw" id="{CB}" style="font-family: monospace;"><br /> cSql1:=<span style="color: #ff0000;">"SELECT dbo.CalcSaldo('T25CD' ,1, '00')"</span><br /> <span style="color: #00C800;">TRY</span><br /> oRsr := TOleAuto<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"ADODB.RecordSet"</span> <span style="color: #000000;">)</span><br /> WITH OBJECT oRsr<br /> :<span style="color: #000000;">ActiveConnection</span> := oCon1<br /> :<span style="color: #000000;">Source</span> := cSql1<br /> :<span style="color: #000000;">CursorLocation</span> := adUseClient<br /> :<span style="color: #000000;">CursorType</span> := adOpenStatic<br /> :<span style="color: #000000;">LockType</span> := adLockOptimistic<br /> :<span style="color: #000000;">Open</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> END<br /> CATCH oError<br /> MsgStop<span style="color: #000000;">(</span> oError:<span style="color: #000000;">Description</span> <span style="color: #000000;">)</span><br /> END<br /> nResult :=oRsr:<span style="color: #000000;">Fields</span><span style="color: #000000;">(</span><span style="color: #000000;">0</span><span style="color: #000000;">)</span>:<span style="color: #000000;">Value</span><br /><br /> </div>[/code:1q6uemy7] |
invoke sql functions with ado | With later versions of FWH
[code=fw:1f5s0t1v]<div class="fw" id="{CB}" style="font-family: monospace;">nResult := FW_AdoQueryResult<span style="color: #000000;">(</span> <span style="color: #ff0000;">"SELECT dbo.CalcSaldo('T25CD' ,1, '00')"</span>, oCon1 <span style="color: #000000;">)</span></div>[/code:1f5s0t1v] |
ip address | Hello
How can we know the pc ip address on the internet
Gethostbyname(pcname) returns the internal ip
gethostbyname("www.......") returns the web page's address
I am interested to know at one moment my own ip address on the web
Thanks for the help
Richard |
ip address | FUNCTION GetIP()
local oSocket := TSocket():New( 2000 ), nIp := oSocket:cIPAddr
oSocket:End()
RETURN (nIp) |
ip address | James,
Added to FWH, thanks
ops, it shows the LAN IP, not the Internet IP... |
ip address | [quote="Antonio Linares":t13eiqrg]James,
Added to FWH, thanks
ops, it shows the LAN IP, not the Internet IP...[/quote:t13eiqrg]
Right,
I hope to have a function for retreiving the Internet IP very soon. I have the information available at the moment in a txt file.
I need to parse this txt file quickly to search for a string (It is a xml file basically) any idea ? |
ip address | [quote="Richard Chidiak":jsmcm994][quote="Antonio Linares":jsmcm994]James,
Added to FWH, thanks
ops, it shows the LAN IP, not the Internet IP...[/quote:jsmcm994]
Right,
I hope to have a function for retreiving the Internet IP very soon. I have the information available at the moment in a txt file.
I need to parse this txt file quickly to search for a string (It is a xml file basically) any idea ?[/quote:jsmcm994]
Here is the function <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) -->
#INCLUDE "FIVEWIN.CH"
#include "tip.ch"
local myip := getmyip()
function getmyip()
LOCAL aEol := { Chr(13) + Chr(10), Chr(10) }, ;
ctr := 0, ;
lok := .f., ;
myip := space(80), ;
sLine,cfile
cfile := CURDRIVE() + ":" + CURDIR() + "\myip.txt"
IF FILE(CFILE)
ERASE (CFILE)
ENDIF
oUrl := tURL():New( "http://www.adresseip.com/" )
IF Empty( OUrl )
MSGINFO("URL NOT FOUND")
RETURN NIL
ENDIF
oClient := tIPClient():New( oUrl )
IF Empty( oClient )
MSGINFO("Invalid url ")
RETURN NIL
ENDIF
oClient:nConnTimeout := 20000
IF oClient:Open( oUrl )
IF ! oClient:ReadToFile( cFile )
MSGINFO("Generic error in writing." + cFile)
ENDIF
oClient:Close()
endif
IF FILE(CFILE)
hFile := FOPEN(CFILE)
WHILE HB_FReadLine( hFile, @sLine, aEol ) == 0
ctr++
IF subs(ALLTRIM(sLine),1,8) == "<SPAN ID" // ip is next line
ctr := 1
lok := .t.
ENDIF
IF CTR = 2 .AND. lok
myip := sline
ENDIF
// ? sLine
END
fclose(hFile)
ENDIF
return myip |
ir al registro | Hola Foro : tengo una duda por ahi es tonta pero es bueno consultar con ustedes los que sabes.
En las bases de datos del tipo xbase.dbf para ir a un registro determinado obviamente conociendo el numero se hacia de la siguiente forma
ejemplo : Agenda->(Dbgoto( nRegi ) ) // donde nRegi = numero de registro
La pregunta concreta es :
Para ir a un registro determinado en una base del tipo base.mdb como se hace ya que tengo una base que es muy extensa y tarda mucho si tiro una consulta por ejemplo
Criterio := "SELECT * FROM AGENDA WHERE REGISTRO = " + Str(14563125)
Aclaro conozco el numero de registro de antemano.
Desde ya como siempre muchas gracias. |
ir al registro | Juan Carlos
Intenta asi:
[code=fw:x26nt15a]<div class="fw" id="{CB}" style="font-family: monospace;"><br />oRSet:<span style="color: #000000;">MoveFirst</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br />oRSet:<span style="color: #0000ff;">Move</span><span style="color: #000000;">(</span>nRec<span style="color: #000000;">)</span><br /> </div>[/code:x26nt15a]
Saludos,
Adhemar |
ir al registro | Muchas gracias : pero aun estoy cometiendo un error, en la base hay un campo llamado registro y esta indexada por fecha ... debo conocer la posición absoluta ya que la consulta sql me dice los registros que cumplen una condición determinada.
que bolonqui ja ja no me acuerdo en ADO como se hacia para saber el valor absoluto del registro. |
ir al registro | Si Realizo una consulta SQL y trato de ver en numero de registro con esta funcion
? Data1:AbsolutePosition()
el numero que me entrega es segun la consulta.
mi intencion es conocer con en una dbf el Recno() pero no se cual en la funcion o la orden que me entrega dicha
posicion.
ejemplo en una base de 100 registros si con una consulta solo tengo tres registros y ellos son 45,46 y 47 .
me gustaria que me diga ese valor y no el 1,2 y 3 como lo hace ahora. |
ir al registro | Hola,
Si estas usando un sql, tienes que cambiar la forma de acceder a la informacion, ya no es necesario el registro, si quieres emular algo parecido puedes agregar una columna id autoincremental, cuando hagas una consulta puedes usar el ID para ir directamente a una fila.
oQry := oServer:Query("Select Prueba where id="+str(miregistro) )
SLds |
ir al registro | Gracias a todos, ya tiene la Tabla un campo llamado registro y es del tipo auto numérico el tema era como conocer la ubicación exacta ya sea el la tabla sin filtro o con filtro.
de esta forma se pone lento a la hora de realizar una actualización de un registro.
aclaro es una base bastante grande.
Otra vez muchas gracias siempre son bienvenidas las opiniones y sugerencias. |
is box mandotary in SCROLLMSG class? | Hi,
is box mandotary in SCROLLMSG class?
Thanks. |
is box mandotary in SCROLLMSG class? | Dear Hakan,
Can you provide a small example ? |
is box mandotary in SCROLLMSG class? | Right now, box is always painted.
Do you want it without border (box) ? |
is box mandotary in SCROLLMSG class? | [quote="nageswaragunupudi":3dmeopqa]Right now, box is always painted.
Do you want it without border (box) ?[/quote:3dmeopqa]
Yes, Mr. Rao, I want it without border. Can it be optional? |
is box mandotary in SCROLLMSG class? | [quote:1dyte8w7] Can it be optional?[/quote:1dyte8w7]
Yes. We made this optional from the next version.
If you want to remove the box right now in your application, you need to modify the
fwh\source\classes\scrolmsg.prg:
Comment out line 115
[code=fw:1dyte8w7]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #B900B9;">// ::oWnd:Box( ::nTop - 1, ::nLeft - 1, ::nBottom + 1, ::nRight + 1 )</span><br /> </div>[/code:1dyte8w7] |
is box mandotary in SCROLLMSG class? | [quote="nageswaragunupudi":3q0gd0kx][quote:3q0gd0kx] Can it be optional?[/quote:3q0gd0kx]
Yes. We made this optional from the next version.
If you want to remove the box right now in your application, you need to modify the
fwh\source\classes\scrolmsg.prg:
Comment out line 115
[code=fw:3q0gd0kx]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #B900B9;">// ::oWnd:Box( ::nTop - 1, ::nLeft - 1, ::nBottom + 1, ::nRight + 1 )</span><br /> </div>[/code:3q0gd0kx][/quote:3q0gd0kx]
Thank you Mr. Rao,
I have changed like below.
[code=fw:3q0gd0kx]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">DATA</span> lNoBorder <span style="color: #0000ff;">INIT</span> .F.</div>[/code:3q0gd0kx]
[code=fw:3q0gd0kx]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">METHOD</span> <span style="color: #00C800;">New</span><span style="color: #000000;">(</span> nRow, nCol, nWidth, nHeight, cText, oWnd, oFont, ;<br /> nSpeed, nClrText, nClrBack, lHoriz, lPixels, lDesign, cVarName, lNoBorder <span style="color: #000000;">)</span> <span style="color: #00C800;">CLASS</span> TScrollMsg<br /> <span style="color: #00C800;">DEFAULT</span> nRow := <span style="color: #000000;">0</span>, nCol := <span style="color: #000000;">0</span>, nWidth := <span style="color: #000000;">100</span>, ;<br /> nHeight := <span style="color: #00C800;">If</span><span style="color: #000000;">(</span> oFont != <span style="color: #00C800;">nil</span>, <span style="color: #0000ff;">Abs</span><span style="color: #000000;">(</span> oFont:<span style="color: #000000;">nHeight</span> <span style="color: #000000;">)</span>, SAY_CHARPIX_H <span style="color: #000000;">)</span>,;<br /> nSpeed := <span style="color: #000000;">2</span>, nClrText := CLR_BLACK, nClrBack := CLR_WHITE, ;<br /> cText := <span style="color: #ff0000;">""</span>, lHoriz := .f., lPixels := .t., lDesign := .f., lNoBorder := .F.</div>[/code:3q0gd0kx]
[code=fw:3q0gd0kx]<div class="fw" id="{CB}" style="font-family: monospace;"> ::<span style="color: #000000;">lVertical</span> := !lHoriz<br /> ::<span style="color: #000000;">lNoBorder</span> := lNoBorder</div>[/code:3q0gd0kx]
[code=fw:3q0gd0kx]<div class="fw" id="{CB}" style="font-family: monospace;"> <span style="color: #00C800;">if</span> !::<span style="color: #000000;">lNoBorder</span><br /> ::<span style="color: #000000;">oWnd</span>:<span style="color: #000000;">Box</span><span style="color: #000000;">(</span> ::<span style="color: #000000;">nTop</span> - <span style="color: #000000;">1</span>, ::<span style="color: #000000;">nLeft</span> - <span style="color: #000000;">1</span>, ::<span style="color: #000000;">nBottom</span> + <span style="color: #000000;">1</span>, ::<span style="color: #000000;">nRight</span> + <span style="color: #000000;">1</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">endif</span></div>[/code:3q0gd0kx]
[code=fw:3q0gd0kx]<div class="fw" id="{CB}" style="font-family: monospace;">#xcommand @ <nRow>, <nCol> SCROLLMSG <span style="color: #000000;">[</span> <oMsg> <label: <span style="color: #0000ff;">PROMPT</span>,<span style="color: #0000ff;">VAR</span>,TEXT> <span style="color: #000000;">]</span> <cText> ;<br /> <span style="color: #000000;">[</span> <dlg: <span style="color: #0000ff;">OF</span>,<span style="color: #0000ff;">WINDOW</span>,<span style="color: #0000ff;">DIALOG</span> > <oWnd> <span style="color: #000000;">]</span> ;<br /> <span style="color: #000000;">[</span> <span style="color: #0000ff;">FONT</span> <oFont> <span style="color: #000000;">]</span> ;<br /> <span style="color: #000000;">[</span> <lPixel: <span style="color: #0000ff;">PIXEL</span>, PIXELS > <span style="color: #000000;">]</span> ;<br /> <span style="color: #000000;">[</span> <color: <span style="color: #0000ff;">COLOR</span>,COLORS > <nClrText> <span style="color: #000000;">[</span>,<nClrBack> <span style="color: #000000;">]</span> <span style="color: #000000;">]</span> ;<br /> <span style="color: #000000;">[</span> <span style="color: #0000ff;">SIZE</span> <nWidth>, <nHeight> <span style="color: #000000;">]</span> ;<br /> <span style="color: #000000;">[</span> SPEED <nSpeed> <span style="color: #000000;">]</span> ;<br /> <span style="color: #000000;">[</span> <lHoriz: <span style="color: #000000;">HORIZONTAL</span>> <span style="color: #000000;">]</span> ;<br /> <span style="color: #000000;">[</span> <design: <span style="color: #000000;">DESIGN</span> > <span style="color: #000000;">]</span> ;<br /> <span style="color: #000000;">[</span> <lNoBorder: <span style="color: #000000;">NOBORDER</span> > <span style="color: #000000;">]</span> ;<br /> => ;<br /> <span style="color: #000000;">[</span> <oMsg> := <span style="color: #000000;">]</span> TScrollMsg<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">(</span> <nRow>, <nCol>, <span style="color: #000000;">[</span><nWidth><span style="color: #000000;">]</span>, <span style="color: #000000;">[</span><nHeight><span style="color: #000000;">]</span>, <cText>,;<br /> <span style="color: #000000;">[</span><oWnd><span style="color: #000000;">]</span>, <span style="color: #000000;">[</span><oFont><span style="color: #000000;">]</span>, <span style="color: #000000;">[</span><nSpeed><span style="color: #000000;">]</span>, ;<br /> <span style="color: #000000;">[</span><nClrText><span style="color: #000000;">]</span>, <span style="color: #000000;">[</span><nClrBack><span style="color: #000000;">]</span>, <.lHoriz.>, <.lPixel.>, ;<br /> <.design.>, <span style="color: #000000;">[</span><<span style="color: #000000;">(</span>oMsg<span style="color: #000000;">)</span>><span style="color: #000000;">]</span>, <span style="color: #000000;">[</span><.lNoBorder.><span style="color: #000000;">]</span> <span style="color: #000000;">)</span></div>[/code:3q0gd0kx] |
is box mandotary in SCROLLMSG class? | Good
Our implementation is slightly different, but on the same lines. |
is control enabled? | How do I determine programatically if a specific control is enabled?
Don |
is control enabled? | oControl:lActive |
is control enabled? | Don,
You can also use:
IsWindowEnabled( oControl:hWnd ) |
is in FW_AdoImportFromDBF | is in function FW_AdoImportFromDBF parametr CODEPAGE (applies to source DBF)
best regards
KAJOT |
is in FW_AdoImportFromDBF | This parameter is not provided. |
is it possible to use Microsoft Word via ole? | I am trying to do like this and it doesn't work
[code=fw:xjgce265]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #0000ff;">Define</span> <span style="color: #0000ff;">Window</span> oWndWord <span style="color: #0000ff;">from</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">0</span> <span style="color: #0000ff;">to</span> <span style="color: #000000;">600</span>,<span style="color: #000000;">800</span> <span style="color: #0000ff;">pixel</span> <span style="color: #0000ff;">Title</span> <span style="color: #ff0000;">"Teste"</span><br /><br /> oWordView := TActiveX<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">(</span> oWndWord, <span style="color: #ff0000;">"Word.Application"</span>,;<br /> <span style="color: #000000;">0</span>,<span style="color: #000000;">0</span>,oWndWord:<span style="color: #000000;">nWidth</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span>,oWndWord:<span style="color: #000000;">nHeight</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span><br /><br /> oWndWord:<span style="color: #000000;">oClient</span> := oWordView<br /><br /><span style="color: #0000ff;">Activate</span> <span style="color: #0000ff;">Window</span> oWndWord <br /> </div>[/code:xjgce265]
Could anybody explain because it doesn't work ? |
is it possible to use Microsoft Word via ole? | Giovany,
We have not been able to make it work as an ActiveX. We don't know why yet.
You can access Word using TOleAuto, but you will not have its window inside yours.
There are many examples in these forums:
<!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?p=69228#p69228">viewtopic.php?p=69228#p69228</a><!-- l --> |
is there a ""Frame"" Control under Fivewin | hi,
what can i use under Fivewin as "Frame" <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: -->
under HMG i use
[code=fw:1v5kuhmz]<div class="fw" id="{CB}" style="font-family: monospace;">#xcommand @ <row> , <col> FRAME <name> ;<br /> <span style="color: #000000;">[</span> <span style="color: #0000ff;">ID</span> <nId> <span style="color: #000000;">]</span> ;<br /> <span style="color: #000000;">[</span> <dummy1: <span style="color: #0000ff;">OF</span>, PARENT, DIALOG> <parent> <span style="color: #000000;">]</span> ;<br /> <span style="color: #000000;">[</span> CAPTION <caption> <span style="color: #000000;">]</span> ;<br /> <span style="color: #000000;">[</span> WIDTH <w> <span style="color: #000000;">]</span> ;<br /> <span style="color: #000000;">[</span> HEIGHT <h> <span style="color: #000000;">]</span> ;<br /> <span style="color: #000000;">[</span> <span style="color: #0000ff;">FONT</span> <fontname> <span style="color: #000000;">]</span> ;<br /> <span style="color: #000000;">[</span> <span style="color: #0000ff;">SIZE</span> <fontsize> <span style="color: #000000;">]</span> ;<br /> <span style="color: #000000;">[</span> <bold : <span style="color: #000000;">BOLD</span>> <span style="color: #000000;">]</span> ;<br /> <span style="color: #000000;">[</span> <italic : <span style="color: #000000;">ITALIC</span>> <span style="color: #000000;">]</span> ;<br /> <span style="color: #000000;">[</span> <underline : <span style="color: #000000;">UNDERLINE</span>> <span style="color: #000000;">]</span> ;<br /> <span style="color: #000000;">[</span> <strikeout : <span style="color: #000000;">STRIKEOUT</span>> <span style="color: #000000;">]</span> ;<br /> <span style="color: #000000;">[</span> BACKCOLOR <backcolor> <span style="color: #000000;">]</span> ;<br /> <span style="color: #000000;">[</span> FONTCOLOR <fontcolor> <span style="color: #000000;">]</span> ;<br /> <span style="color: #000000;">[</span> <opaque: <span style="color: #000000;">OPAQUE</span>> <span style="color: #000000;">]</span> ;<br /> <span style="color: #000000;">[</span> <invisible: <span style="color: #000000;">INVISIBLE</span>> <span style="color: #000000;">]</span> ;<br /> <span style="color: #000000;">[</span> <transparent: <span style="color: #000000;">TRANSPARENT</span>> <span style="color: #000000;">]</span> ;<br /> <span style="color: #000000;">[</span> <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">INIT</span> <bInit> <span style="color: #000000;">]</span> ;</div>[/code:1v5kuhmz] |
is there a ""Frame"" Control under Fivewin | Dear Jimmy,
What is a FRAME ?
Please post an image |
is there a ""Frame"" Control under Fivewin | hi Antonio,
[quote="Antonio Linares":3r4mw9a5]
What is a FRAME ? [/quote:3r4mw9a5]
it is like a GROUPBOX (WC_STATIC) around some Controls
[img:3r4mw9a5]https://i.postimg.cc/pXfqRVnH/FRAME.jpg[/img:3r4mw9a5] |
is there a ""Frame"" Control under Fivewin | Hola buenos días, creo que es lo que necesitas
[code=fw:31mzju2g]<div class="fw" id="{CB}" style="font-family: monospace;"><br />@ <span style="color: #000000;">5</span>, <span style="color: #000000;">8</span> GROUP oGrp <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">size</span> <span style="color: #000000;">250</span>, <span style="color: #000000;">56</span> <span style="color: #0000ff;">FONT</span> oFont1 <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"The Title"</span> TRANSPARENT<br /> </div>[/code:31mzju2g] |
is there a ""Frame"" Control under Fivewin | hi,
thx for Answer
yes, i can use a Groupbox as "Frame" even it is not a "Group" of Controls
what about "Line" in a Dialog / Window ? |
is there someone of infoser.es of Madrid ? | please write me on my private e mail silvio[dot]falconi[@]gmail[dot]com. thanks |
is updated 7.11 library available for download? | Mr Antonio
Is an updated FWH 7.11 with all the fixes published so far in the forum available for download? Or is it planned ? |
is updated 7.11 library available for download? | NageswaraRao,
No, it is not available.
We will publish FWH 7.12 by early december |
isDerivedFrom() vs isKindOf() | hi all,
is there any difference between isDerivedFrom() and isKindOf() ? They appear to be very similar
Roberto |
isDerivedFrom() vs isKindOf() | Both give the same results. |
isdir-isdirectory no funcionan con server2012r2(NO RESUELTO) | Estimados
con que funcion puedo reemplazar esta que no funcionan en server2012r2
lo que necesito es revisar si la ruta del server esta operativa
[quote:zjekcsv1]
isDir( "\\SERVER2012\XML" )
isDirectory( "\\SERVER2012\XML" )
[/quote:zjekcsv1]
desde ya gracias |
isdir-isdirectory no funcionan con server2012r2(NO RESUELTO) | Patricio:
Me parece que la función es lIsDir().
Saludos |
isdir-isdirectory no funcionan con server2012r2(NO RESUELTO) | [code=fw:9nuryjtm]<div class="fw" id="{CB}" style="font-family: monospace;"><br /> <span style="color: #00C800;">PRIVATE</span> cDirExe := cFILEPATH<span style="color: #000000;">(</span>GETMODULEFILENAME<span style="color: #000000;">(</span>GETINSTANCE<span style="color: #000000;">(</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">PRIVATE</span> cDirProg := GETCURDIR<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /><br /> <span style="color: #00C800;">IF</span> .NOT. lIsDir<span style="color: #000000;">(</span> cDirProg+<span style="color: #ff0000;">"<span style="color: #000000;">\T</span>MP"</span> <span style="color: #000000;">)</span><br /> lMkDir<span style="color: #000000;">(</span> UPPER<span style="color: #000000;">(</span> <span style="color: #ff0000;">"C:<span style="color: #000000;">\T</span>MP"</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">ENDIF</span><br /> </div>[/code:9nuryjtm] |
isdir-isdirectory no funcionan con server2012r2(NO RESUELTO) | Estimados
gracias por contestar
pero no funciona en server2012r2
<!-- s:-( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":-(" title="Sad" /><!-- s:-( --> |
isdir-isdirectory no funcionan con server2012r2(NO RESUELTO) | [quote="Patricio Avalos Aguirre":1roe4wd8]Estimados
gracias por contestar
pero no funciona en server2012r2
<!-- s:-( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":-(" title="Sad" /><!-- s:-( -->[/quote:1roe4wd8]
Muestre como estás haciendo, porfa!
Saludos. |
isdir-isdirectory no funcionan con server2012r2(NO RESUELTO) | Estimado
[quote:1pve5ayz]isDir( "\\SERVER2012\XML" )
isDirectory( "\\SERVER2012\XML" )
lIsdir( "\\SERVER2012\XML" )[/quote:1pve5ayz]
[b:1pve5ayz]todas estas funciones funcionan bien en server2008 y server2003
server2012r2 no funcionan
[/b:1pve5ayz] |
isdir-isdirectory no funcionan con server2012r2(NO RESUELTO) | [url:12pm8i2u]http://forums.fivetechsupport.com/viewtopic.php?f=3&t=29940&start=0[/url:12pm8i2u]
Porfa, habla con Vilian, para veer como se ha resuelto ó no.
Saludos. |
isdir-isdirectory no funcionan con server2012r2(NO RESUELTO) | Gracias por contestar.. |
isdir-isdirectory no funcionan con server2012r2(NO RESUELTO) | Patricio, que usas Habrour ó xHarbour?
cDirName := "R:\ECF"
? HB_DIREXISTS( cDirName )
[url:222lha8x]http://forums.fivetechsupport.com/viewtopic.php?f=6&t=19797&p=104485&hilit=UNIDAD+DE+RED#p104485[/url:222lha8x]
[url:222lha8x]http://forums.fivetechsupport.com/viewtopic.php?f=6&t=17784&p=92890&hilit=unidad+de+red#p92890[/url:222lha8x]
[code=fw:222lha8x]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">if</span> you use other xharbour <span style="color: #00C800;">function</span> use xhb.lib instead <span style="color: #00C800;">try</span> a solution <span style="color: #0000ff;">from</span> hbcompat.ch or a search & replace<br /><br />#xtranslate hb_DirExists<span style="color: #000000;">(</span><x><span style="color: #000000;">)</span> => IsDirectory<span style="color: #000000;">(</span><x><span style="color: #000000;">)</span><br /> </div>[/code:222lha8x]
Saludos. |
isexerunning (Solved) | HI, this code: (by EMG)
IF ISEXERUNNING( CFILENOEXT( HB_ARGV( 0 ) ) )
SHOWWINDOW( FINDWINDOW( 0, "Titolo tua finestra" ), 9 )
SETFOREGROUNDWINDOW( FINDWINDOW( 0, "Titolo tua finestra" ) )
RETURN NIL
ENDIF
works before build window of exe? |
isexerunning (Solved) | Norberto,
It requires the main window to exist already |
isexerunning (Solved) | Antonio,
i need some method to before creation of the main window. I need detect it is already running and put the focus on open application. |
isexerunning (Solved) | Norberto,
Try to use:
[code=fw:1ynmdol2]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">if</span> GetModuleHandle<span style="color: #000000;">(</span> HB_ARGV<span style="color: #000000;">(</span> <span style="color: #000000;">0</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span> != <span style="color: #000000;">0</span><br /> <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"App already running"</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">return</span> <span style="color: #000000;">0</span><br /><span style="color: #00C800;">endif</span> <br /> </div>[/code:1ynmdol2] |
isexerunning (Solved) | Antonio, isexerunning works without main window, but i cant put focus in already open appl.
thanks |
isexerunning (Solved) | Norberto,
If there is no user input in the already running app, what do you mean/expect giving it the focus ? |
isexerunning (Solved) | Antonio,
I need detect another instance of the same application, and if there is another instance, transfer focus to it, maybe showing the screen in the foreground, but I wanted to do this before the initial window, perhaps checking the name of the executable and not the window title.
thanks |
isexerunning (Solved) | Norberto,
Try it:
[code=fw:131awdx5]<div class="fw" id="{CB}" style="font-family: monospace;"><br />pTitulo:=<span style="color: #ff0000;">"Nome do teu sistema que fica na barra de cima da Window"</span><br /><span style="color: #00C800;">If</span> IsExeRunning<span style="color: #000000;">(</span> cFilename<span style="color: #000000;">(</span> hb_Argv<span style="color: #000000;">(</span><span style="color: #000000;">0</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span> <br /> SHOWWINDOW<span style="color: #000000;">(</span> FINDWINDOW<span style="color: #000000;">(</span> <span style="color: #000000;">0</span>, pTitulo <span style="color: #000000;">)</span>, <span style="color: #000000;">3</span> <span style="color: #000000;">)</span><br /> SETFOREGROUNDWINDOW<span style="color: #000000;">(</span> FINDWINDOW<span style="color: #000000;">(</span> <span style="color: #000000;">0</span>, pTitulo <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><span style="color: #00C800;">Endif</span><br /> </div>[/code:131awdx5] |
isexerunning (Solved) | Kleyber, this works after build main window, i need before.
i need something using the name of exe, not main windows title, because at this point , it not create.
Thanks |
isexerunning (Solved) | Norberto,
this is working for me.
Best regards,
Otto
[code=fw:19fvw5xw]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">FUNCTION</span> main<br /> <span style="color: #00C800;">if</span> IsExeRunning<span style="color: #000000;">(</span> cFileName<span style="color: #000000;">(</span> HB_ARGV<span style="color: #000000;">(</span> <span style="color: #000000;">0</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> ShowApplication<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">else</span><br /> <br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oWnd<br /><br /> <br /> WritePProString<span style="color: #000000;">(</span> <span style="color: #ff0000;">"Programm"</span> , <span style="color: #ff0000;">"RECHNUNG"</span>, oWnd:<span style="color: #000000;">cTitle</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span>, <span style="color: #ff0000;">".<span style="color: #000000;">\i</span>ni<span style="color: #000000;">\w</span>hLink.ini"</span> <span style="color: #000000;">)</span><br /> <br /> <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">MAXIMIZED</span><br /> <br /> <br /> <br /> <span style="color: #00C800;">endif</span><br /> <br /> <span style="color: #00C800;">return</span><br /> <span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /> <br /> <br /> <br /><span style="color: #00C800;">function</span> ShowApplication<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">local</span> hWnd := <span style="color: #000000;">0</span><br /> <span style="color: #00C800;">local</span> cFileNoExt := <span style="color: #ff0000;">""</span><br /> <span style="color: #00C800;">local</span> uVar = GetPvProfString<span style="color: #000000;">(</span> <span style="color: #ff0000;">"Programm"</span>, <span style="color: #ff0000;">"RECHNUNG"</span>, <span style="color: #ff0000;">"WINHOTEL"</span>,<span style="color: #ff0000;">".<span style="color: #000000;">\i</span>ni<span style="color: #000000;">\w</span>hLink.ini"</span> <span style="color: #000000;">)</span><br /> <br /> hWnd := FindWnd<span style="color: #000000;">(</span> uVar <span style="color: #000000;">)</span> <br /><br /> <span style="color: #00C800;">if</span> hWnd != <span style="color: #00C800;">nil</span><br /> <span style="color: #00C800;">if</span> IsIconic<span style="color: #000000;">(</span> hWnd <span style="color: #000000;">)</span><br /> ShowWindow<span style="color: #000000;">(</span> hWnd, SW_RESTORE <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">endif</span><br /> SetFocus<span style="color: #000000;">(</span> hWnd <span style="color: #000000;">)</span><br /> SetForeGroundWindow<span style="color: #000000;">(</span> hWnd <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">endif</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">function</span> FindWnd<span style="color: #000000;">(</span> cTitle <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">local</span> hWnd := GetWindow<span style="color: #000000;">(</span> GetDesktopWindow<span style="color: #000000;">(</span><span style="color: #000000;">)</span>, GW_CHILD <span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">while</span> hWnd != <span style="color: #000000;">0</span><br /> <span style="color: #00C800;">if</span> Upper<span style="color: #000000;">(</span> cTitle <span style="color: #000000;">)</span> $ Upper<span style="color: #000000;">(</span> GetWindowText<span style="color: #000000;">(</span> hWnd <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">return</span> hWnd<br /> <span style="color: #00C800;">endif</span><br /><br /> hWnd = GetWindow<span style="color: #000000;">(</span> hWnd, GW_HWNDNEXT <span style="color: #000000;">)</span><br /> end<br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span></div>[/code:19fvw5xw] |
isexerunning (Solved) | Can we see a little but complete sample showing your problem? I didn't understand it.
EMG |
isexerunning (Solved) | Enrico, Otto, thanks, but dont work to me.
I wanted check the existence of another instance the application before creating the main window, before checking the User, open files, etc.
all the solutions posted work after the main window created .I wanted first of all, at the beginning of the system.
May have to get the handle of the system and not the name (caption)
i wanted to check the existence of another instance, move the focus to it, and leave the second instance (quit).
but thanks to all. |
isexerunning (Solved) | My sample works [b:199b73t7]before[/b:199b73t7] the main windows is created.
EMG |
isexerunning (Solved) | [quote="norberto":33zkhoxf]Kleyber, this works after build main window, i need before.
i need something using the name of exe, not main windows title, because at this point , it not create.
Thanks[/quote:33zkhoxf]
Norberto,
I would like to understand it better: If you have another instance of your program, how is this running in you computer? I think it means the ohter instance is working and if it is working it has already a main window. Or not? |
isexerunning (Solved) | hI, isexerunning detects another instance, but i cant put this in foreground (focus). |
isexerunning (Solved) | Yes, you can. That's just what my sample does. I use it in my applications.
EMG |
isexerunning (Solved) | EMG, all solutions posted works, but dont change the focus and max the first instance, see this video, with tutor01:
<!-- m --><a class="postlink" href="http://youtu.be/HZ_-tw_qTpU">http://youtu.be/HZ_-tw_qTpU</a><!-- m -->
another instance is detected, but not focused, only if i click on it.
in video i missing change name of exe, but here the code:
// Typical Welcome message, from Windows!
// FWVERSION, FWCOPYRIGHT and FWDESCRIPTION are just
// some defines placed at FiveWin.ch
#include "FiveWin.ch"
//----------------------------------------------------------------------------//
function Main()
IF ISEXERUNNING( CFILENOEXT( HB_ARGV( 0 ) ) )
SHOWWINDOW( FINDWINDOW( 0, "TUTOR01" ), 9 )
SETFOREGROUNDWINDOW( FINDWINDOW( 0, "TUTOR01" ) )
msginfo([EMG])
RETURN NIL
ENDIF
MsgInfo( FWVERSION + Chr( 13 ) + FWCOPYRIGHT, FWDESCRIPTION )
return nil
//----------------------------------------------------------------------------// |
isexerunning (Solved) | [code=fw:1g4werba]<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: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">IF</span> ISEXERUNNING<span style="color: #000000;">(</span> CFILENOEXT<span style="color: #000000;">(</span> HB_ARGV<span style="color: #000000;">(</span> <span style="color: #000000;">0</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br />SHOWWINDOW<span style="color: #000000;">(</span> FINDWINDOW<span style="color: #000000;">(</span> <span style="color: #000000;">0</span>, <span style="color: #ff0000;">"FiveWin for xHarbour"</span> <span style="color: #000000;">)</span>, <span style="color: #000000;">9</span> <span style="color: #000000;">)</span><br />SETFOREGROUNDWINDOW<span style="color: #000000;">(</span> FINDWINDOW<span style="color: #000000;">(</span> <span style="color: #000000;">0</span>, <span style="color: #ff0000;">"FiveWin for xHarbour"</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><span style="color: #00C800;">ENDIF</span><br /><br /><span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">(</span> FWVERSION + Chr<span style="color: #000000;">(</span> <span style="color: #000000;">13</span> <span style="color: #000000;">)</span> + FWCOPYRIGHT, FWDESCRIPTION <span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span></div>[/code:1g4werba]
EMG |
isexerunning (Solved) | Enrico, all, solved!!
I use database fields to make the title of the main window, like a->field1+a->field2, perhaps it has spaces in the field, not finding the window title, after use a constant as name of the main window, it worked.
I think that all solutions posted work, the error was in the way I was building the title of the main window
This case shows that using a small example as tutor01 help isolate the problem and solve it.
thank to all, for your time.
BTW : taking advantage of the patience and goodwill of all, someone is getting build harbour from cvs? I get an error Unicows.dll.
best regards
<!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> |
jDrop found on Harbour.org svn | I just tried to get a fresh download from svn, y this poped up:
[img:2sq7aukd]http://www.mayapos.com/FiveWin/jdrop.png[/img:2sq7aukd]
I have no idea of how to let the development team know, so if someone can do it for me, I'll apreciate it.... |
jDrop found on Harbour.org svn | Bayron,
Are you using TortoiseSVN ? Use it |
jDrop found on Harbour.org svn | Yes, that is the one I am using...
This message poped up about 5 times when I did a full new download... |
jDrop found on Harbour.org svn | It seems that only happened because I downloaded the full project...
It did not happened when I only downloaded from [color=#0000FF:1ap74qr9]trunk/harbour[/color:1ap74qr9].... |
james | where is james bott? |
james | He has been very busy.
Sent from my iPhone using Tapatalk |
james | [quote="TimStone":1pw6kq6n]He has been very busy.
Sent from my iPhone using Tapatalk[/quote:1pw6kq6n]
[b:1pw6kq6n]with tdata seem no work good[/b:1pw6kq6n] I not see index tag on combobox
with tdatabase or normal dbf It run ok
[img:1pw6kq6n]https://i.postimg.cc/Z5NGsYNH/t.png[/img:1pw6kq6n]
[b:1pw6kq6n]Original by Nages[/b:1pw6kq6n] ( dbf normal )
[code=fw:1pw6kq6n]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"fivewin.ch"</span><br /><br />REQUEST DBFCDX<br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">local</span> oDlg, oGet, oBrw<br /> <span style="color: #00C800;">local</span> cSeek := Space<span style="color: #000000;">(</span> <span style="color: #000000;">100</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">local</span> oFont,oBold<br /><br /><br /> USE CUSTOMER <span style="color: #00C800;">NEW</span> SHARED VIA <span style="color: #ff0000;">"DBFCDX"</span><br /> FW_CdxCreate<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> SET ORDER <span style="color: #0000ff;">TO</span> TAG FIRST<br /> GO TOP<br /><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFont <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">'Tahoma'</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">-16</span><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oBold <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">'Tahoma'</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">-14</span> BOLD<br /><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">500</span>,<span style="color: #000000;">500</span> <span style="color: #0000ff;">PIXEL</span> TRUEPIXEL<br /><br /><br /> @ <span style="color: #000000;">21</span> ,<span style="color: #000000;">3</span> <span style="color: #0000ff;">SAY</span> oSay1 <span style="color: #0000ff;">Prompt</span> <span style="color: #ff0000;">"Search "</span> ;<br /> <span style="color: #0000ff;">FONT</span> oBold <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">120</span>,<span style="color: #000000;">20</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg TRANSPARENT<br /><br /> @ <span style="color: #000000;">20</span>,<span style="color: #000000;">60</span> <span style="color: #0000ff;">GET</span> oGet <span style="color: #0000ff;">VAR</span> cSeek <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">200</span>,<span style="color: #000000;">20</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg <br /> <br /> @ <span style="color: #000000;">60</span>,<span style="color: #000000;">20</span> <span style="color: #0000ff;">XBROWSE</span> oBrw <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">-20</span>,<span style="color: #000000;">-20</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg ;<br /> DATASOURCE <span style="color: #ff0000;">"CUSTOMER"</span> ;<br /> <span style="color: #0000ff;">AUTOCOLS</span> AUTOSORT CELL LINES NOBORDER<br /><br /> WITH OBJECT oBrw<br /> :<span style="color: #000000;">lIncrFilter</span> := .t.<br /> :<span style="color: #000000;">oSeek</span> := oGet<br /> :<span style="color: #000000;">CreateFromCode</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> END<br /><br /> @ <span style="color: #000000;">20</span> , <span style="color: #000000;">265</span> <span style="color: #0000ff;">Say</span> oSay2 <span style="color: #0000ff;">Prompt</span> <span style="color: #ff0000;">"in"</span> ;<br /> <span style="color: #0000ff;">FONT</span> oBold <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">55</span>, <span style="color: #000000;">20</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg<br /><br /> @ <span style="color: #000000;">20</span>, <span style="color: #000000;">280</span> <span style="color: #0000ff;">COMBOBOX</span> oBrw:<span style="color: #000000;">oSortCbx</span> <span style="color: #0000ff;">VAR</span> oBrw:<span style="color: #000000;">cSortOrder</span>;<br /> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">200</span>,<span style="color: #000000;">400</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg HEIGHTGET <span style="color: #000000;">20</span> <span style="color: #0000ff;">STYLE</span> CBS_DROPDOWN<br /> <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /> </div>[/code:1pw6kq6n]
[b:1pw6kq6n]With tdatabase[/b:1pw6kq6n]
[b:1pw6kq6n]run ok [/b:1pw6kq6n] I see the tag index on combobox
[code=fw:1pw6kq6n]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"fivewin.ch"</span><br /><br />REQUEST DBFCDX<br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">local</span> oDlg, oGet, oBrw<br /> <span style="color: #00C800;">local</span> cSeek := Space<span style="color: #000000;">(</span> <span style="color: #000000;">100</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">local</span> oFont,oBold<br /> <span style="color: #00C800;">local</span> oCust<br /><br /> oCust:=TDatabase<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #000000;">Open</span><span style="color: #000000;">(</span> , <span style="color: #ff0000;">"customer"</span>, <span style="color: #ff0000;">"DBFCDX"</span>, .T. <span style="color: #000000;">)</span><br /> oCust:<span style="color: #000000;">setorder</span><span style="color: #000000;">(</span><span style="color: #000000;">1</span><span style="color: #000000;">)</span><br /> oCust:<span style="color: #000000;">Gotop</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFont <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">'Tahoma'</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">-16</span><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oBold <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">'Tahoma'</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">-14</span> BOLD<br /><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">500</span>,<span style="color: #000000;">500</span> <span style="color: #0000ff;">PIXEL</span> TRUEPIXEL<br /><br /><br /> @ <span style="color: #000000;">21</span> ,<span style="color: #000000;">3</span> <span style="color: #0000ff;">SAY</span> oSay1 <span style="color: #0000ff;">Prompt</span> <span style="color: #ff0000;">"Search "</span> ;<br /> <span style="color: #0000ff;">FONT</span> oBold <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">120</span>,<span style="color: #000000;">20</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg TRANSPARENT<br /><br /><br /> @ <span style="color: #000000;">20</span>,<span style="color: #000000;">60</span> <span style="color: #0000ff;">GET</span> oGet <span style="color: #0000ff;">VAR</span> cSeek <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">200</span>,<span style="color: #000000;">20</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg ;<br /> BITMAP <span style="color: #ff0000;">"ELIMINA"</span> <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">(</span>cSeek := Space<span style="color: #000000;">(</span> <span style="color: #000000;">100</span> <span style="color: #000000;">)</span>,;<br /> oBrw:<span style="color: #000000;">Seek</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">""</span> <span style="color: #000000;">)</span>,oBrw:<span style="color: #0000ff;">refresh</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span>,oGet:<span style="color: #0000ff;">refresh</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span><br /> oGet:<span style="color: #000000;">lBtnTransparent</span> :=.t.<br /><br /> @ <span style="color: #000000;">60</span>,<span style="color: #000000;">20</span> <span style="color: #0000ff;">XBROWSE</span> oBrw <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">-20</span>,<span style="color: #000000;">-20</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg ;<br /> DATASOURCE oCust ;<br /> <span style="color: #0000ff;">AUTOCOLS</span> AUTOSORT CELL LINES NOBORDER<br /><br /> WITH OBJECT oBrw<br /> :<span style="color: #000000;">lIncrFilter</span> := .t.<br /> :<span style="color: #000000;">oSeek</span> := oGet<br /> :<span style="color: #000000;">CreateFromCode</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> END<br /><br /> @ <span style="color: #000000;">20</span> , <span style="color: #000000;">265</span> <span style="color: #0000ff;">Say</span> oSay2 <span style="color: #0000ff;">Prompt</span> <span style="color: #ff0000;">"in"</span> ;<br /> <span style="color: #0000ff;">FONT</span> oBold <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">55</span>, <span style="color: #000000;">20</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg<br /><br /> @ <span style="color: #000000;">20</span>, <span style="color: #000000;">280</span> <span style="color: #0000ff;">COMBOBOX</span> oBrw:<span style="color: #000000;">oSortCbx</span> <span style="color: #0000ff;">VAR</span> oBrw:<span style="color: #000000;">cSortOrder</span>;<br /> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">200</span>,<span style="color: #000000;">400</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg HEIGHTGET <span style="color: #000000;">20</span> <span style="color: #0000ff;">STYLE</span> CBS_DROPDOWN<br /><br /><br /> <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /> </div>[/code:1pw6kq6n]
[b:1pw6kq6n]With tdata[/b:1pw6kq6n] not work !!!!
[b:1pw6kq6n](not see the index tag on combox)[/b:1pw6kq6n]
[code=fw:1pw6kq6n]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"fivewin.ch"</span><br /><br />REQUEST DBFCDX<br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">local</span> oDlg, oGet, oBrw<br /> <span style="color: #00C800;">local</span> cSeek := Space<span style="color: #000000;">(</span> <span style="color: #000000;">100</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">local</span> oFont,oBold<br /> <span style="color: #00C800;">local</span> oCust<br /><br /> <br /><br /> oCust:=TCust<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> oCust:<span style="color: #000000;">setorder</span><span style="color: #000000;">(</span><span style="color: #000000;">1</span><span style="color: #000000;">)</span><br /> oCust:<span style="color: #000000;">Gotop</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFont <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">'Tahoma'</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">-16</span><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oBold <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">'Tahoma'</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">-14</span> BOLD<br /><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">500</span>,<span style="color: #000000;">500</span> <span style="color: #0000ff;">PIXEL</span> TRUEPIXEL<br /><br /><br /> @ <span style="color: #000000;">21</span> ,<span style="color: #000000;">3</span> <span style="color: #0000ff;">SAY</span> oSay1 <span style="color: #0000ff;">Prompt</span> <span style="color: #ff0000;">"Search "</span> ;<br /> <span style="color: #0000ff;">FONT</span> oBold <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">120</span>,<span style="color: #000000;">20</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg TRANSPARENT<br /><br /><br /> @ <span style="color: #000000;">20</span>,<span style="color: #000000;">60</span> <span style="color: #0000ff;">GET</span> oGet <span style="color: #0000ff;">VAR</span> cSeek <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">200</span>,<span style="color: #000000;">20</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg ;<br /> BITMAP <span style="color: #ff0000;">"ELIMINA"</span> <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">(</span>cSeek := Space<span style="color: #000000;">(</span> <span style="color: #000000;">100</span> <span style="color: #000000;">)</span>,;<br /> oBrw:<span style="color: #000000;">Seek</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">""</span> <span style="color: #000000;">)</span>,oBrw:<span style="color: #0000ff;">refresh</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span>,oGet:<span style="color: #0000ff;">refresh</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span><br /> oGet:<span style="color: #000000;">lBtnTransparent</span> :=.t.<br /><br /> @ <span style="color: #000000;">60</span>,<span style="color: #000000;">20</span> <span style="color: #0000ff;">XBROWSE</span> oBrw <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">-20</span>,<span style="color: #000000;">-20</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg ;<br /> DATASOURCE oCust ;<br /> <span style="color: #0000ff;">AUTOCOLS</span> AUTOSORT CELL LINES NOBORDER<br /><br /> WITH OBJECT oBrw<br /><br /> :<span style="color: #000000;">lIncrFilter</span> := .t.<br /> <br /> :<span style="color: #000000;">oSeek</span> := oGet<br /> :<span style="color: #000000;">CreateFromCode</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /><br /> END<br /><br /> @ <span style="color: #000000;">20</span> , <span style="color: #000000;">265</span> <span style="color: #0000ff;">Say</span> oSay2 <span style="color: #0000ff;">Prompt</span> <span style="color: #ff0000;">"in"</span> ;<br /> <span style="color: #0000ff;">FONT</span> oBold <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">55</span>, <span style="color: #000000;">20</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg<br /><br /><br /><br /> @ <span style="color: #000000;">20</span>, <span style="color: #000000;">280</span> <span style="color: #0000ff;">COMBOBOX</span> oBrw:<span style="color: #000000;">oSortCbx</span> <span style="color: #0000ff;">VAR</span> oBrw:<span style="color: #000000;">cSortOrder</span>;<br /> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">200</span>,<span style="color: #000000;">400</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg HEIGHTGET <span style="color: #000000;">20</span> <span style="color: #0000ff;">STYLE</span> CBS_DROPDOWN<br /><br /><br /> <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><br /><span style="color: #00C800;">CLASS</span> TXData <span style="color: #0000ff;">from</span> TData<br /> <span style="color: #00C800;">DATA</span> cPath <span style="color: #0000ff;">init</span> cFilePath<span style="color: #000000;">(</span>GetModuleFileName<span style="color: #000000;">(</span> GetInstance<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span><span style="color: #000000;">)</span><br /><span style="color: #00C800;">ENDCLASS</span><br /><br /><span style="color: #B900B9;">// Inherit from this to get autoincrementing primary-keys</span><br /><span style="color: #00C800;">CLASS</span> TXAuto <span style="color: #0000ff;">from</span> TAutoincrement<br /> <span style="color: #00C800;">DATA</span> cPath <span style="color: #0000ff;">init</span> cFilePath<span style="color: #000000;">(</span>GetModuleFileName<span style="color: #000000;">(</span> GetInstance<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span><span style="color: #000000;">)</span><br /><span style="color: #00C800;">ENDCLASS</span><br /><br /><br /><br /><span style="color: #00C800;">CLASS</span> TCust <span style="color: #0000ff;">from</span> TXAuto<br /> <span style="color: #00C800;">METHOD</span> <span style="color: #00C800;">New</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><span style="color: #00C800;">ENDCLASS</span><br /><br /><span style="color: #00C800;">METHOD</span> <span style="color: #00C800;">New</span><span style="color: #000000;">(</span> lShared <span style="color: #000000;">)</span> <span style="color: #00C800;">CLASS</span> TCust<br /> <span style="color: #00C800;">Default</span> lShared := .t.<br /> ::<span style="color: #00C800;">super</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">(</span>,<span style="color: #ff0000;">"Customer"</span> ,, lShared<span style="color: #000000;">)</span><br /> <span style="color: #00C800;">if</span> ::<span style="color: #000000;">use</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> ::<span style="color: #000000;">setOrder</span><span style="color: #000000;">(</span><span style="color: #000000;">1</span><span style="color: #000000;">)</span><br /> ::<span style="color: #000000;">gotop</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">endif</span><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">Self</span><br /><br /><br /><span style="color: #00C800;">CLASS</span> TOneCust <span style="color: #0000ff;">from</span> TRecord<br /> <span style="color: #00C800;">Method</span> <span style="color: #00C800;">New</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><span style="color: #00C800;">ENDCLASS</span><br /><br /><span style="color: #00C800;">Method</span> <span style="color: #00C800;">New</span><span style="color: #000000;">(</span> oTable <span style="color: #000000;">)</span> <span style="color: #00C800;">CLASS</span> TOneCust<br /> ::<span style="color: #00C800;">super</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">(</span> oTable <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">Return</span> <span style="color: #00C800;">self</span><br /> </div>[/code:1pw6kq6n]
Please can you try with tdata ? |
james | Yo haria asi: +-.
[code=fw:zb1rtjp3]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #B900B9;">// SAMPLES\SILDATAB.PRG</span><br /><br /><span style="color: #00D7D7;">#Include</span> <span style="color: #ff0000;">"Fivewin.ch"</span><br /><br />ANNOUNCE RDDSYS <span style="color: #B900B9;">// IDEM: ANNOUNCE FPTCDX</span><br />REQUEST OrdKeyNo, OrdKeyCount, OrdCreate, OrdKeyGoto <span style="color: #B900B9;">// Para ListBox</span><br />REQUEST DBFCDX, DBFFPT<br /><br /><span style="color: #00C800;">FUNCTION</span> Main<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">LOCAL</span> oDlg, oGet, oBrw, oFont, oBold, oCust, DbCust, oSay1, oSay2<br /> <span style="color: #00C800;">LOCAL</span> cSeek := Space<span style="color: #000000;">(</span> <span style="color: #000000;">100</span> <span style="color: #000000;">)</span><br /><br /> RDDSETDEFAULT<span style="color: #000000;">(</span><span style="color: #ff0000;">"DBFCDX"</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #B900B9;">/*<br /> oCust:=TDatabase():Open( , "customer", "DBFCDX", .T. )<br /> oCust:setorder(1)<br /> oCust:Gotop()<br /> */</span><br /><br /> <span style="color: #00C800;">IF</span> NetUse<span style="color: #000000;">(</span> <span style="color: #ff0000;">"CUSTOMER"</span>, .T. <span style="color: #000000;">)</span><br /><br /> OrdListAdd<span style="color: #000000;">(</span> <span style="color: #ff0000;">"CUSTOMER"</span>, <span style="color: #ff0000;">"FIRST"</span>, <span style="color: #ff0000;">"LAST"</span>, <span style="color: #ff0000;">"STREET"</span> <span style="color: #000000;">)</span><br /><br /> OrdDescend<span style="color: #000000;">(</span> ,,.F. <span style="color: #000000;">)</span><br /><br /> DATABASE DbCust<br /><br /> DbCust:<span style="color: #000000;">Gotop</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> DbCust:<span style="color: #000000;">Load</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> DbCust:<span style="color: #000000;">SetBuffer</span><span style="color: #000000;">(</span> .T. <span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">ELSE</span><br /><br /> MsgStop<span style="color: #000000;">(</span> <span style="color: #ff0000;">"Banco de Dados dos CLIENTES Bloqueado"</span>, <span style="color: #ff0000;">"Cuidado!"</span> <span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><br /> <span style="color: #00C800;">ENDIF</span><br /><br /> FW_CdxCreate<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> DbSelectArea<span style="color: #000000;">(</span> <span style="color: #000000;">(</span> DbCust:<span style="color: #000000;">cAlias</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> DbCust:<span style="color: #000000;">SetOrder</span><span style="color: #000000;">(</span> <span style="color: #000000;">1</span> <span style="color: #000000;">)</span><br /> DbGoTop<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFont <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">'Tahoma'</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">-16</span><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oBold <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">'Tahoma'</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">-14</span> BOLD<br /><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">500</span>,<span style="color: #000000;">500</span> <span style="color: #0000ff;">PIXEL</span> TRUEPIXEL<br /><br /> @ <span style="color: #000000;">21</span> ,<span style="color: #000000;">3</span> <span style="color: #0000ff;">SAY</span> oSay1 <span style="color: #0000ff;">Prompt</span> <span style="color: #ff0000;">"Search "</span> ;<br /> <span style="color: #0000ff;">FONT</span> oBold <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">120</span>,<span style="color: #000000;">20</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg TRANSPARENT<br /><br /> @ <span style="color: #000000;">20</span>,<span style="color: #000000;">60</span> <span style="color: #0000ff;">GET</span> oGet <span style="color: #0000ff;">VAR</span> cSeek <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">200</span>,<span style="color: #000000;">20</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg ;<br /> BITMAP <span style="color: #ff0000;">"ELIMINA"</span> <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">(</span>cSeek := Space<span style="color: #000000;">(</span> <span style="color: #000000;">100</span> <span style="color: #000000;">)</span>,;<br /> oBrw:<span style="color: #000000;">Seek</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">""</span> <span style="color: #000000;">)</span>,oBrw:<span style="color: #0000ff;">refresh</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span>,oGet:<span style="color: #0000ff;">refresh</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span><br /> oGet:<span style="color: #000000;">lBtnTransparent</span> :=.t.<br /><br /> @ <span style="color: #000000;">60</span>,<span style="color: #000000;">20</span> <span style="color: #0000ff;">XBROWSE</span> oBrw <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">-20</span>,<span style="color: #000000;">-20</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg ;<br /> DATASOURCE oCust ;<br /> <span style="color: #0000ff;">AUTOCOLS</span> AUTOSORT CELL LINES NOBORDER<br /><br /> WITH OBJECT oBrw<br /><br /> :<span style="color: #000000;">lIncrFilter</span> := .t.<br /> :<span style="color: #000000;">oSeek</span> := oGet<br /> :<span style="color: #000000;">CreateFromCode</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> END<br /><br /> @ <span style="color: #000000;">20</span> , <span style="color: #000000;">265</span> <span style="color: #0000ff;">Say</span> oSay2 <span style="color: #0000ff;">Prompt</span> <span style="color: #ff0000;">"in"</span> ;<br /> <span style="color: #0000ff;">FONT</span> oBold <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">55</span>, <span style="color: #000000;">20</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg<br /><br /> <span style="color: #B900B9;">// cSortOrder ??</span><br /> <span style="color: #B900B9;">// @ 20, 280 COMBOBOX oBrw:oSortCbx VAR oBrw:cSortOrder;</span><br /> <span style="color: #B900B9;">// SIZE 200, 400 PIXEL OF oDlg HEIGHTGET 20 STYLE CBS_DROPDOWN</span><br /><br /><br /> <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span><br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><span style="color: #B900B9;">// OPEN FILES</span><br /><span style="color: #00C800;">FUNCTION</span> NetUse<span style="color: #000000;">(</span> cDbf, lShared <span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">LOCAL</span> cAlias := cFileName<span style="color: #000000;">(</span> cDbf <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">LOCAL</span> bAlias := cFileName<span style="color: #000000;">(</span> cDbf <span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">If</span> cDbf = <span style="color: #00C800;">NIL</span> .OR. !File<span style="color: #000000;">(</span> cDbf + <span style="color: #ff0000;">".DBF"</span> <span style="color: #000000;">)</span><br /><br /> MsgStop<span style="color: #000000;">(</span> <span style="color: #ff0000;">"NOME DO ARQUIVO INCORRETO"</span> + CRLF + CRLF + ;<br /> <span style="color: #ff0000;">"NÃO ACHEI BANCO DE DADOS."</span> + CRLF + CRLF + ;<br /> cDbf + <span style="color: #ff0000;">".DBF"</span>, <span style="color: #ff0000;">"ERRO FATAL!!"</span> <span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">RETURN</span><span style="color: #000000;">(</span> .F. <span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">ENDIF</span><br /><br /> IIf<span style="color: #000000;">(</span> lShared = <span style="color: #00C800;">NIL</span>, lShared := .F., lShared <span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">IF</span> lShared = .T.<br /><br /> USE <span style="color: #ff0000;">"C:<span style="color: #000000;">\M</span>ARC<span style="color: #000000;">\"</span>+(cDbf) ALIAS ( cAlias ) VIA "</span>DBFCDX<span style="color: #ff0000;">" SHARED NEW<br /><br /> ELSE<br /><br /> USE "</span>C:\MARC\<span style="color: #ff0000;">"+(cDbf) ALIAS ( cAlias ) VIA "</span>DBFCDX<span style="color: #ff0000;">" EXCLUSIVE NEW<br /><br /> ENDIF<br /><br /> IF .NOT. NetErr()<br /><br /> RETURN( .T. )<br /><br /> ENDIF<br /><br /> MsgStop( "</span>IMPOSSIVEL ABRIR BANCO DE DADOS: <span style="color: #ff0000;">" + cAlias + CRLF + ;<br /> OemToAnsi( "</span>BLOQUEADO POR OUTRO USUµRIO.<span style="color: #ff0000;">" ), ;<br /> "</span>ERRO FATAL DE REDE! FECHAR BANCO DE DADOS.<span style="color: #ff0000;">" )<br /><br />RETURN( .F. )<br /><br />// FIN END<br /></span></div>[/code:zb1rtjp3]
Regards. |
james | [quote="karinha":393juhlv]Yo haria asi: +-.
[code=fw:393juhlv]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #B900B9;">// SAMPLES\SILDATAB.PRG</span><br /><br /><span style="color: #00D7D7;">#Include</span> <span style="color: #ff0000;">"Fivewin.ch"</span><br /><br />ANNOUNCE RDDSYS <span style="color: #B900B9;">// IDEM: ANNOUNCE FPTCDX</span><br />REQUEST OrdKeyNo, OrdKeyCount, OrdCreate, OrdKeyGoto <span style="color: #B900B9;">// Para ListBox</span><br />REQUEST DBFCDX, DBFFPT<br /><br /><span style="color: #00C800;">FUNCTION</span> Main<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">LOCAL</span> oDlg, oGet, oBrw, oFont, oBold, oCust, DbCust, oSay1, oSay2<br /> <span style="color: #00C800;">LOCAL</span> cSeek := Space<span style="color: #000000;">(</span> <span style="color: #000000;">100</span> <span style="color: #000000;">)</span><br /><br /> RDDSETDEFAULT<span style="color: #000000;">(</span><span style="color: #ff0000;">"DBFCDX"</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #B900B9;">/*<br /> oCust:=TDatabase():Open( , "customer", "DBFCDX", .T. )<br /> oCust:setorder(1)<br /> oCust:Gotop()<br /> */</span><br /><br /> <span style="color: #00C800;">IF</span> NetUse<span style="color: #000000;">(</span> <span style="color: #ff0000;">"CUSTOMER"</span>, .T. <span style="color: #000000;">)</span><br /><br /> OrdListAdd<span style="color: #000000;">(</span> <span style="color: #ff0000;">"CUSTOMER"</span>, <span style="color: #ff0000;">"FIRST"</span>, <span style="color: #ff0000;">"LAST"</span>, <span style="color: #ff0000;">"STREET"</span> <span style="color: #000000;">)</span><br /><br /> OrdDescend<span style="color: #000000;">(</span> ,,.F. <span style="color: #000000;">)</span><br /><br /> DATABASE DbCust<br /><br /> DbCust:<span style="color: #000000;">Gotop</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> DbCust:<span style="color: #000000;">Load</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> DbCust:<span style="color: #000000;">SetBuffer</span><span style="color: #000000;">(</span> .T. <span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">ELSE</span><br /><br /> MsgStop<span style="color: #000000;">(</span> <span style="color: #ff0000;">"Banco de Dados dos CLIENTES Bloqueado"</span>, <span style="color: #ff0000;">"Cuidado!"</span> <span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><br /> <span style="color: #00C800;">ENDIF</span><br /><br /> FW_CdxCreate<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> DbSelectArea<span style="color: #000000;">(</span> <span style="color: #000000;">(</span> DbCust:<span style="color: #000000;">cAlias</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> DbCust:<span style="color: #000000;">SetOrder</span><span style="color: #000000;">(</span> <span style="color: #000000;">1</span> <span style="color: #000000;">)</span><br /> DbGoTop<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFont <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">'Tahoma'</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">-16</span><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oBold <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">'Tahoma'</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">-14</span> BOLD<br /><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">500</span>,<span style="color: #000000;">500</span> <span style="color: #0000ff;">PIXEL</span> TRUEPIXEL<br /><br /> @ <span style="color: #000000;">21</span> ,<span style="color: #000000;">3</span> <span style="color: #0000ff;">SAY</span> oSay1 <span style="color: #0000ff;">Prompt</span> <span style="color: #ff0000;">"Search "</span> ;<br /> <span style="color: #0000ff;">FONT</span> oBold <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">120</span>,<span style="color: #000000;">20</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg TRANSPARENT<br /><br /> @ <span style="color: #000000;">20</span>,<span style="color: #000000;">60</span> <span style="color: #0000ff;">GET</span> oGet <span style="color: #0000ff;">VAR</span> cSeek <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">200</span>,<span style="color: #000000;">20</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg ;<br /> BITMAP <span style="color: #ff0000;">"ELIMINA"</span> <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">(</span>cSeek := Space<span style="color: #000000;">(</span> <span style="color: #000000;">100</span> <span style="color: #000000;">)</span>,;<br /> oBrw:<span style="color: #000000;">Seek</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">""</span> <span style="color: #000000;">)</span>,oBrw:<span style="color: #0000ff;">refresh</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span>,oGet:<span style="color: #0000ff;">refresh</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span><br /> oGet:<span style="color: #000000;">lBtnTransparent</span> :=.t.<br /><br /> @ <span style="color: #000000;">60</span>,<span style="color: #000000;">20</span> <span style="color: #0000ff;">XBROWSE</span> oBrw <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">-20</span>,<span style="color: #000000;">-20</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg ;<br /> DATASOURCE oCust ;<br /> <span style="color: #0000ff;">AUTOCOLS</span> AUTOSORT CELL LINES NOBORDER<br /><br /> WITH OBJECT oBrw<br /><br /> :<span style="color: #000000;">lIncrFilter</span> := .t.<br /> :<span style="color: #000000;">oSeek</span> := oGet<br /> :<span style="color: #000000;">CreateFromCode</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> END<br /><br /> @ <span style="color: #000000;">20</span> , <span style="color: #000000;">265</span> <span style="color: #0000ff;">Say</span> oSay2 <span style="color: #0000ff;">Prompt</span> <span style="color: #ff0000;">"in"</span> ;<br /> <span style="color: #0000ff;">FONT</span> oBold <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">55</span>, <span style="color: #000000;">20</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg<br /><br /> <span style="color: #B900B9;">// cSortOrder ??</span><br /> <span style="color: #B900B9;">// @ 20, 280 COMBOBOX oBrw:oSortCbx VAR oBrw:cSortOrder;</span><br /> <span style="color: #B900B9;">// SIZE 200, 400 PIXEL OF oDlg HEIGHTGET 20 STYLE CBS_DROPDOWN</span><br /><br /><br /> <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span><br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><span style="color: #B900B9;">// OPEN FILES</span><br /><span style="color: #00C800;">FUNCTION</span> NetUse<span style="color: #000000;">(</span> cDbf, lShared <span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">LOCAL</span> cAlias := cFileName<span style="color: #000000;">(</span> cDbf <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">LOCAL</span> bAlias := cFileName<span style="color: #000000;">(</span> cDbf <span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">If</span> cDbf = <span style="color: #00C800;">NIL</span> .OR. !File<span style="color: #000000;">(</span> cDbf + <span style="color: #ff0000;">".DBF"</span> <span style="color: #000000;">)</span><br /><br /> MsgStop<span style="color: #000000;">(</span> <span style="color: #ff0000;">"NOME DO ARQUIVO INCORRETO"</span> + CRLF + CRLF + ;<br /> <span style="color: #ff0000;">"NÃO ACHEI BANCO DE DADOS."</span> + CRLF + CRLF + ;<br /> cDbf + <span style="color: #ff0000;">".DBF"</span>, <span style="color: #ff0000;">"ERRO FATAL!!"</span> <span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">RETURN</span><span style="color: #000000;">(</span> .F. <span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">ENDIF</span><br /><br /> IIf<span style="color: #000000;">(</span> lShared = <span style="color: #00C800;">NIL</span>, lShared := .F., lShared <span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">IF</span> lShared = .T.<br /><br /> USE <span style="color: #ff0000;">"C:<span style="color: #000000;">\M</span>ARC<span style="color: #000000;">\"</span>+(cDbf) ALIAS ( cAlias ) VIA "</span>DBFCDX<span style="color: #ff0000;">" SHARED NEW<br /><br /> ELSE<br /><br /> USE "</span>C:\MARC\<span style="color: #ff0000;">"+(cDbf) ALIAS ( cAlias ) VIA "</span>DBFCDX<span style="color: #ff0000;">" EXCLUSIVE NEW<br /><br /> ENDIF<br /><br /> IF .NOT. NetErr()<br /><br /> RETURN( .T. )<br /><br /> ENDIF<br /><br /> MsgStop( "</span>IMPOSSIVEL ABRIR BANCO DE DADOS: <span style="color: #ff0000;">" + cAlias + CRLF + ;<br /> OemToAnsi( "</span>BLOQUEADO POR OUTRO USUµRIO.<span style="color: #ff0000;">" ), ;<br /> "</span>ERRO FATAL DE REDE! FECHAR BANCO DE DADOS.<span style="color: #ff0000;">" )<br /><br />RETURN( .F. )<br /><br />// FIN END<br /></span></div>[/code:393juhlv]
Regards.[/quote:393juhlv]
Please Karinha,
For some time now, dear sir, you have been writing messages even if you have not been asked for anything, and even with other topics, if you read my post carefully, I was asking for a specific thing in particular
1) I not have Netuse
2) I made a test for dbf, tdatabase and tdata
3) I asked to try the test of Tdata, do you have the classs Tdata of James Bott ?
[b:393juhlv]you have remmed these lines [/b:393juhlv]
// cSortOrder ??
// @ 20, 280 COMBOBOX oBrw:oSortCbx VAR oBrw:cSortOrder;
// SIZE 200, 400 PIXEL OF oDlg HEIGHTGET 20 STYLE CBS_DROPDOWN
I see that you have not understood my problem, [b:393juhlv]my problem is in that combobox[/b:393juhlv] please see fwh\samples\xbsortcb.prg to see the original Nages sample |
james | Sorry, my version doesn't have: fwh\samples\xbsortcb.prg
Regards. |
james | When I created the application for the beach, in December 2020
james corrected the definitions for opening the archives by creating a class called Tincremental which was only used to add a counter.
In these definitions james omits[b:38gr53kv] the "DBFCDX" driver[/b:38gr53kv] because perhaps with Tdata it was not needed or he takes them automatically.
[code=fw:38gr53kv]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">CLASS</span> TTCategorie <span style="color: #0000ff;">from</span> TXAuto<br /> <span style="color: #00C800;">METHOD</span> <span style="color: #00C800;">New</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><span style="color: #00C800;">ENDCLASS</span><br /><br /><span style="color: #00C800;">METHOD</span> <span style="color: #00C800;">New</span><span style="color: #000000;">(</span> lShared <span style="color: #000000;">)</span> <span style="color: #00C800;">CLASS</span> TTCategorie<br /> <span style="color: #00C800;">Default</span> lShared := .t.<br /> ::<span style="color: #00C800;">super</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">(</span>,::<span style="color: #000000;">cPath</span> + <span style="color: #ff0000;">"Categorie"</span> ,, lShared<span style="color: #000000;">)</span><br /> <span style="color: #00C800;">if</span> ::<span style="color: #000000;">use</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> ::<span style="color: #000000;">setOrder</span><span style="color: #000000;">(</span><span style="color: #000000;">1</span><span style="color: #000000;">)</span><br /> ::<span style="color: #000000;">gotop</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">endif</span><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">Self</span><br /> </div>[/code:38gr53kv]
Just yesterday reviewing the code I realized that the definition created by James calls the New method of Tdatabase which,
[code=fw:38gr53kv]<div class="fw" id="{CB}" style="font-family: monospace;"> ::<span style="color: #00C800;">super</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">(</span>,::<span style="color: #000000;">cPath</span> + <span style="color: #ff0000;">"Categorie"</span> ,, lShared<span style="color: #000000;">)</span></div>[/code:38gr53kv]
however, wants the definition of[b:38gr53kv] the "DBFCDX" driver[/b:38gr53kv],
[code=fw:38gr53kv]<div class="fw" id="{CB}" style="font-family: monospace;"> ::<span style="color: #00C800;">super</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">(</span>,::<span style="color: #000000;">cPath</span> + <span style="color: #ff0000;">"Categorie"</span> ,<span style="color: #ff0000;">"DBFCDX"</span>, lShared</div>[/code:38gr53kv]
in fact adding this parameter then the test works wonders. |
james | You don't ever want to add the database driver in the database class's New() method--you should define the default driver at the beginning of the program. This way all routines in the app use the same driver and if you ever want to change the driver you only have to change it in one place.
The only exception to this rule (that I can think of) is if you needed to use a file and index from a different app that is using a different driver. Then you still use a default driver for the current app but specify a different driver for a special routine. This would extremely rare I think--I have never needed to do this. |
james | [quote="James Bott":1dbzqtbh]You don't ever want to add the database driver in the database class's New() method--you should define the default driver at the beginning of the program. This way all routines in the app use the same driver and if you ever want to change the driver you only have to change it in one place.
The only exception to this rule (that I can think of) is if you needed to use a file and index from a different app that is using a different driver. Then you still use a default driver for the current app but specify a different driver for a special routine. This would extremely rare I think--I have never needed to do this.[/quote:1dbzqtbh]
James,
at int I insert these lines in all my applications
[code=fw:1dbzqtbh]<div class="fw" id="{CB}" style="font-family: monospace;">request dbfcdx<br />request dbffpt<br /><br />request hb_lang_it<br />request hb_codepage_itwin<br /><br /><span style="color: #00C800;">FUNCTION</span> Main<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br />....<br /><br />RddSetDefault<span style="color: #000000;">(</span> <span style="color: #ff0000;">"DBFCDX"</span> <span style="color: #000000;">)</span><br /> HB_LANGSELECT<span style="color: #000000;">(</span> <span style="color: #ff0000;">"IT"</span> <span style="color: #000000;">)</span><br /> HB_SETCODEPAGE<span style="color: #000000;">(</span> <span style="color: #ff0000;">"ITWIN"</span> <span style="color: #000000;">)</span><br /> SetHandleCount<span style="color: #000000;">(</span> <span style="color: #000000;">100</span> <span style="color: #000000;">)</span><br /> FWNumFormat<span style="color: #000000;">(</span> <span style="color: #ff0000;">"E"</span>, .t. <span style="color: #000000;">)</span></div>[/code:1dbzqtbh]
If I use tdatabase [b:1dbzqtbh]I not have error[/b:1dbzqtbh]
If I use tdata without add the database driver in the tdata class's New() method [b:1dbzqtbh]I have error [/b:1dbzqtbh]
[b:1dbzqtbh]My set tdata [/b:1dbzqtbh] ( [b:1dbzqtbh]sample Utenti.dbf [/b:1dbzqtbh])
[code=fw:1dbzqtbh]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">CLASS</span> TXData <span style="color: #0000ff;">from</span> TData<br /> <span style="color: #00C800;">DATA</span> cDbfPath <span style="color: #0000ff;">init</span> oApp:<span style="color: #000000;">cDbfPath</span><br /> <span style="color: #00C800;">DATA</span> cExePath <span style="color: #0000ff;">init</span> oApp:<span style="color: #000000;">cExePath</span><br /><span style="color: #00C800;">ENDCLASS</span><br /><br /><span style="color: #00C800;">CLASS</span> TUtenti <span style="color: #0000ff;">from</span> TXData<br /> <span style="color: #00C800;">METHOD</span> <span style="color: #00C800;">New</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><span style="color: #00C800;">ENDCLASS</span><br /><br /><span style="color: #00C800;">METHOD</span> <span style="color: #00C800;">New</span><span style="color: #000000;">(</span> lShared <span style="color: #000000;">)</span> <span style="color: #00C800;">CLASS</span> TUtenti<br /> <span style="color: #00C800;">Default</span> lShared := .t.<br /> ::<span style="color: #00C800;">super</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">(</span>,::<span style="color: #000000;">cExePath</span> + <span style="color: #ff0000;">"Utenti"</span> ,, lShared<span style="color: #000000;">)</span><br /> <span style="color: #00C800;">if</span> ::<span style="color: #000000;">use</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> ::<span style="color: #000000;">setOrder</span><span style="color: #000000;">(</span><span style="color: #000000;">1</span><span style="color: #000000;">)</span><br /> ::<span style="color: #000000;">gotop</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">endif</span><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">Self</span></div>[/code:1dbzqtbh]
the error is " I not see any tag on the combobox" |
java installed | how to check if java installed on your computer?
thanks |
java installed | [b:3poov0qf]Option 1:-[/b:3poov0qf]
Running the following command in the command prompt will return the Java Version Installed, If Java is not installed then it would return “Unknown Command” error message.
[code=fw:3poov0qf]<div class="fw" id="{CB}" style="font-family: monospace;">java -version</div>[/code:3poov0qf]
For eg.
If it is installed then the above command would return
[code=fw:3poov0qf]<div class="fw" id="{CB}" style="font-family: monospace;">java version <span style="color: #ff0000;">"1.8.0_66"</span><br />Java<span style="color: #000000;">(</span>TM<span style="color: #000000;">)</span> SE Runtime Environment <span style="color: #000000;">(</span>build <span style="color: #000000;">1.8</span>.0_66-b18<span style="color: #000000;">)</span><br />Java HotSpot<span style="color: #000000;">(</span>TM<span style="color: #000000;">)</span> <span style="color: #00C800;">Client</span> VM <span style="color: #000000;">(</span>build <span style="color: #000000;">25.66</span>.-b18, mixed mode, sharing<span style="color: #000000;">)</span></div>[/code:3poov0qf]
You may capture the output programmatically and then decide.
[b:3poov0qf]Option 2:-[/b:3poov0qf]
You can also read the registry value to verify the Java installation
[b:3poov0qf]32 bit[/b:3poov0qf]
"HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment\CurrentVersion"
[b:3poov0qf]64 bit[/b:3poov0qf]
"HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\JavaSoft\Java Runtime Environment\CurrentVersion"
Regards
[b:3poov0qf]Anser[/b:3poov0qf] |
java installed | thanks Anser |
jkIDE: impressions / experiences / perspectives | Greetings!
[b:ldjnuhu4][u:ldjnuhu4]JKide[/b:ldjnuhu4][/u:ldjnuhu4]
Last Updated: friday, april 2, 2010...
[img:ldjnuhu4]http://i54.tinypic.com/288nv4j.png[/img:ldjnuhu4]
[url=http://visualfivewin.blogspot.com/2010/04/visual-fivewin-build-93.html:ldjnuhu4]Site[/url:ldjnuhu4] & [url=http://www.4shared.com/file/bOSCBy08/jkide93x.html:ldjnuhu4]Download: 7Mb[/url:ldjnuhu4]
Based on some previous posts on this forum, someone managed to build a basic application?!?
A naked form without the inserted objects at design time was the maximum that could.
Please, I need impressions about this tool or reference to another in the same context.
Grateful for any feedback! :^)
[img:ldjnuhu4]http://i51.tinypic.com/2i95wci.png[/img:ldjnuhu4] |
jkIDE: impressions / experiences / perspectives | Francis,
We have contacted a few times with jkIde developer (Patrick Fan) to help him providing him latest FWH version, plus our help and support, but he does not seem to be very responsive, neither has a wish to provide open sources of his FiveWin derivative work <!-- s:-( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":-(" title="Sad" /><!-- s:-( -->
So based on those circunstances we can not recommend jkIde use unless users understand that we can not help them or support them with bugs, enhancements, etc.
We really would appreciate a change of attitude from Patrick... <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.