topic stringlengths 1 63 | text stringlengths 1 577k ⌀ |
|---|---|
manage with FIVEWIN your mod harbour megamenu | Hello friends,
Now we can manage the megamenu inside our mod harbour newspager from a FIVEWIN program.
If someone is interested in more detail, please post your questions.
Best regards,
Otto
[img:2erb85vi]https://mybergland.com/fwforum/megamenuvw.gif[/img:2erb85vi] |
managing text blocks | As WORD and Outlook build in manager don’t work together
we have developed a handy tool for managing text blocks and text modules.
This tool is also comfortable to organize code snips and notes.
Data is stored in a dbf-file with memo fields.
There is full text search also within the memo fields included.
You can download a demo version from here:
[url:20xjgy9i]http://www.atzwanger-software.com/downloads/textbaustein.exe[/url:20xjgy9i]
[img:20xjgy9i]http://www.atzwanger-software.com/fw/fulltext.jpg[/img:20xjgy9i] |
managing text blocks | Very nice! <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> |
mandado mensajes al centro de notificaciones . | he añadido una funcion que lo hace , de momento solo manda titulo e información.
[img:3vj2qnz1]http://img29.imageshack.us/img29/201/oqps.png[/img:3vj2qnz1] |
mandado mensajes al centro de notificaciones . | aun mejor <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> . He creado una clase TNotification , que maneja lo relativo a notificaciones del Usuario. De momento de pueden controlar el titulo ,subtitulo, información a mandar, tambien se puede controlar que mande un banner o sea una notificacion silenciosa . Tambien podemos lanzar notificaciones "temporizadas" controladas en segundos de retraso sobre el momento de activación. He creado un "Delegado de la clase" que de momento nos devuelve un evento al programa si hacemos click() sobre la notificación , tanto en el banner como en el centro de notificaciones .
Podemos tambien borrar todas las notificaciones que tengamos en el centro . Quedan cosas en el tintero como borrar una notificación determinada , poder especificar que sonido tiene la notificación , hacer que salter cuando llegue una determinada fecha . pero eso queda para otro momento ....
Saludos a todos. |
mandar un dato X por internet cuando se use un programa | Hola se podrá mandar ciertos datos de una compu por Internet a otra compu etc <!-- s:roll: --><img src="{SMILIES_PATH}/icon_rolleyes.gif" alt=":roll:" title="Rolling Eyes" /><!-- s:roll: -->
Gracias
Saluditos <!-- s:wink: --><img src="{SMILIES_PATH}/icon_wink.gif" alt=":wink:" title="Wink" /><!-- s:wink: --> |
mandar un dato X por internet cuando se use un programa | Aida,
<!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?p=197201#p197201">viewtopic.php?p=197201#p197201</a><!-- l --> |
mandar un email masivo | Hola amigos:
Necesito mandar un email que lo que contiene son dos imagenes JPG y lo tengo que mandar a 161000 direcciones.
Me podeis ayudar
Gracias
Carlos |
manejo de bases de datos con Tgather | Habitualmente he manejado las bases de datos con la clase Tgather en Fivewin, no la he visto que este implementada en FWPPC.He visto el ejemplo CLIENT de Carles, creo que harían falta algunos ejemplos mas sobre manejo de bases de datos para ayudar a los novatos¿que clase recomendais para dar de alta, modificar , borrar fichas en las bases de datos con FWPPC?saludos y graciasAntonio |
manejo de bases de datos con Tgather | Antonio,Depende mucho de las preferencias del programador.A nosotros nos gusta usar la Clase TDataBase porque te evita tener que definir variables locales (una por cada campo). |
manejo de bases de datos con Tgather | Para usar la clase TDataBase basicamente haz:USE MiDbfDATABASE oMiDbfa partir de ese momento puedes acceder a una copia de los campos usando:oMiDbf:NombreCampo usándolos en los GETs, etc. para salvar las modificaciones a la DBF real haces:oMiDbf:Save()Luego con una sola variable oMiDbf puedes manejar copias de todos los campos, sin tener que declarar una variable local para cada uno de ellos, o tener que usar arrays (otra opción). |
manejo de bases de datos con Tgather | Revisa el código de la clase TDataBase y verás lo simple que es, y como hace el trabajo <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> |
manejo de bases de datos con Tgather | Gracias Antoniohe estado revisando la informacion en FWCE.CHy solo hay una linea¿donde puedo ver mas información ?saludosAntonio |
manejo de bases de datos con Tgather | Antonio,Revisa fwppc\source\classes\database.prg |
manejo de la funcion LogFile() | Hola amigos del foro:
Una consulta, como hago para administrar el archivo [b:2daznsq5].log[/b:2daznsq5] generado por la funcion LogFile()
- El archivo ira creciendo sin limite??
- Puedo darle un limite???
- Si la aplicacion trabaja en red, como hago para centralizar el archivo .log
De antemano, gracias por las respuestas.
Atentamente,
Rolando
Cochabamba, Bolivia |
manejo de la funcion LogFile() | Hola Rolando,
el log crece sin límite, queda a criterio propio decidir cuando se puede eliminar cierta información. Se pueden registrar eventos desde todas las terminales, tal vez sea conveniente chequear que se ha podido abrir el fichero or el caso de que se hagan actualizaciones simultáneas.
Si te preocupa el tamaño del log, puedes probar de hacer como los logs de Linux/Unix, que cada cierto tiempo los rota, es decir renombra el fichero y lo comprime, así tienes por ej. error-01.log.zip, error-02.log.zip, etc.. y el activo es error.log.
Un saludo |
manifest theme on wm5 or wm6 | How I can set the theme for wm 6 and show buttons with theme? |
manifest theme on wm5 or wm6 | Sorry, forget it. |
manipulating time strings | Where I can found functions for manipulating time strings?
I have for sample :
[code=fw:35y0za0n]<div class="fw" id="{CB}" style="font-family: monospace;"><br />cHoraE1 cHoraU1 cHoraE2 cHoraU2 cHoraE3 cHoraU3<br /><span style="color: #000000;">08</span>:<span style="color: #000000;">00</span> <span style="color: #000000;">14</span>:<span style="color: #000000;">00</span> <span style="color: #000000;">15</span>:<span style="color: #000000;">00</span> <span style="color: #000000;">16</span>:<span style="color: #000000;">47</span> <span style="color: #000000;">17</span>:<span style="color: #000000;">10</span> <span style="color: #000000;">19</span>:<span style="color: #000000;">30</span><br /> </div>[/code:35y0za0n]
and I must calculate the total of Hours and minutes,
if an employee has to do only 6 hours each day and his turn of Work is from "08:00" to "14:00"
the procedure must calculate also the flexibility negative and positive ( format 00:00 hours/minutes)
sample
FLNEG 05:10
FLPOS 01:10 |
manipulating time strings | Eoeo,
do not use sexagesimal but centesimal when calculate elapsed time
[code=fw:1orw5rkd]<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> cT1 , cT2<br /><br />cT1 := <span style="color: #ff0000;">"08:00"</span><br />cT2 := <span style="color: #ff0000;">"14:00"</span><br /><br />? cal_ore<span style="color: #000000;">(</span> cT1 , cT2 <span style="color: #000000;">)</span><br /><br />cT1 := <span style="color: #ff0000;">"08:00"</span><br />cT2 := <span style="color: #ff0000;">"14:06"</span><br /><br />? cal_ore<span style="color: #000000;">(</span> cT1 , cT2 <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;">FUNCTION</span> CAL_ORE<span style="color: #000000;">(</span> cT1, cT2 <span style="color: #000000;">)</span><br /><br /><br /><span style="color: #00C800;">LOCAL</span> nT1 := VAL<span style="color: #000000;">(</span> <span style="color: #0000ff;">SUBSTR</span><span style="color: #000000;">(</span> cT1 , <span style="color: #000000;">1</span> , <span style="color: #000000;">2</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span> + VAL<span style="color: #000000;">(</span> <span style="color: #0000ff;">SUBSTR</span><span style="color: #000000;">(</span> cT1 , <span style="color: #000000;">4</span> , <span style="color: #000000;">2</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span> / <span style="color: #000000;">60</span><br /><span style="color: #00C800;">LOCAL</span> nT2 := VAL<span style="color: #000000;">(</span> <span style="color: #0000ff;">SUBSTR</span><span style="color: #000000;">(</span> cT2 , <span style="color: #000000;">1</span> , <span style="color: #000000;">2</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span> + VAL<span style="color: #000000;">(</span> <span style="color: #0000ff;">SUBSTR</span><span style="color: #000000;">(</span> cT2 , <span style="color: #000000;">4</span> , <span style="color: #000000;">2</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span> / <span style="color: #000000;">60</span><br />? nT1 , nT2<br /><span style="color: #00C800;">RETURN</span> nT2 - nT1<br /> </div>[/code:1orw5rkd]
Last result 6.10 is 1 hour and 10 cents of hours
10 cents of an hour are 6 minutes 10/100*60 minutes |
manipulating time strings | Marco,
[img:1jvxvgma]http://imageshack.us/a/img109/4733/80478801.png[/img:1jvxvgma]
I found other function in time.prg of clipper :
#include "FiveWin.ch"
Function test()
nEntrata1:="07:57"
nUscita1:="14:25"
nEntrata2:="15:57"
nUscita2:="16:41"
nEntrata3:="17:10"
nUscita3:="19:43"
Totale1:=TDIFF(nEntrata1, nUscita1)
Totale2:=TDIFF(nEntrata2, nUscita2)
Totale3:=TDIFF(nEntrata3, nUscita3)
Totale_Sec:=TTOS( Totale1 )+TTOS( Totale2 )+TTOS( Totale3 )
Totale:=STOT( Totale_Sec)
TotaleWork:= "06:00"
Tot_gen:= Totale_Sec-TTOS(TotaleWork)
MsgInfo("Mattina :"+totale1+" +"+CRLF+;
"Pomeriggio :"+totale2+" +"+CRLF+;
"Sera :"+totale3+" +"+CRLF+;
"Totale ore :"+Totale+" -"+CRLF+;
"Ore Lavoro :"+TotaleWork+CRLF+;
"Totale ore :"+STOT( Tot_gen))
retu NIL
Now My problem is to calculate the flexibility negative and positive
sample :
Entrata1:="07:57"
Uscita1 :="13:58"
Total = 05:58 ( I calc from 08:00 to 14:00)
the employe made not six Hours of Work and it is a FLNEG of 2 minutes
Entrata1:="07:57"
Uscita1 :="14:25"
Total = 06:25 ( I calc from 08:00 to 14:00)
the employe made over six Hours of Work and it is a FLPOS of 25 minutes
How i can make to calculate FLNEG and FLPOS with a function ? |
manipulating time strings | Silvio,
this function calculates everything from given Start Day / time to End Day / time :
Only a Time-calculation :
[img:3lhknkre]http://www.pflegeplus.com/pictures/time10.jpg[/img:3lhknkre]
Sample :
tStart := '12:45:12'
tEnd := '10:20:30'
dStart := Date()
dEnd := Date()
( we add a Day, because time-end < time-start )
IF VAl( SUBSTR( tEnd, 1, 2 ) ) < VAl( SUBSTR( tStart, 1, 2 ) )
dEnd++
ENDIF
aDiff := ELAPSED( dStart, dEnd, tStart, tEnd )
The Function returns :
--------------------------
[color=#FF0000:3lhknkre]aDiff[1,1] -> Days
aDiff[2,1] -> Hours
aDiff[3,1] -> Minutes
aDiff[[4,1] -> Seconds[/color:3lhknkre]
MsgAlert( "Hours : " + STR(aDiff[2,1]) + CRLF + ;
"Minutes : " + STR(aDiff[3,1]) + CRLF + ;
"Seconds : " + STR(aDiff[4,1]) , "12:45:12 to 10:20:30 " )
[code=fw:3lhknkre]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">FUNCTION</span> ELAPSED<span style="color: #000000;">(</span>dStart, dEnd, cTimeStart, cTimeEnd<span style="color: #000000;">)</span><br /><span style="color: #00C800;">LOCAL</span> nTotalSec, nCtr, nConstant, nTemp, aRetVal<span style="color: #000000;">[</span><span style="color: #000000;">4</span>,<span style="color: #000000;">2</span><span style="color: #000000;">]</span><br /> <br /><span style="color: #00C800;">IF</span> ! <span style="color: #000000;">(</span> VALTYPE<span style="color: #000000;">(</span>dStart<span style="color: #000000;">)</span> $ <span style="color: #ff0000;">'DC'</span> <span style="color: #000000;">)</span><br /> dStart := DATE<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br />ELSEIF VALTYPE<span style="color: #000000;">(</span>dStart<span style="color: #000000;">)</span> == <span style="color: #ff0000;">'C'</span><br /> cTimeStart := dStart<br /> dStart := DATE<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><span style="color: #00C800;">ENDIF</span><br /> <br /><span style="color: #00C800;">IF</span> ! <span style="color: #000000;">(</span> VALTYPE<span style="color: #000000;">(</span>dEnd<span style="color: #000000;">)</span> $ <span style="color: #ff0000;">'DC'</span> <span style="color: #000000;">)</span><br /> dEnd := DATE<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br />ELSEIF VALTYPE<span style="color: #000000;">(</span>dEnd<span style="color: #000000;">)</span> == <span style="color: #ff0000;">'C'</span><br /> cTimeEnd := dEnd<br /> dEnd := DATE<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><span style="color: #00C800;">ENDIF</span><br /> <br /><span style="color: #00C800;">IF</span><span style="color: #000000;">(</span> VALTYPE<span style="color: #000000;">(</span>cTimeStart<span style="color: #000000;">)</span> != <span style="color: #ff0000;">'C'</span>, cTimeStart := <span style="color: #ff0000;">'00:00:00'</span>, <span style="color: #000000;">)</span><br /><span style="color: #00C800;">IF</span><span style="color: #000000;">(</span> VALTYPE<span style="color: #000000;">(</span>cTimeEnd<span style="color: #000000;">)</span> != <span style="color: #ff0000;">'C'</span>, cTimeEnd := <span style="color: #ff0000;">'00:00:00'</span>, <span style="color: #000000;">)</span><br /> <br />nTotalSec := <span style="color: #000000;">(</span>dEnd - dStart<span style="color: #000000;">)</span> * <span style="color: #000000;">86400</span> + ;<br /> VAL<span style="color: #000000;">(</span>cTimeEnd<span style="color: #000000;">)</span> * <span style="color: #000000;">3600</span> + ;<br /> VAL<span style="color: #000000;">(</span><span style="color: #0000ff;">SUBSTR</span><span style="color: #000000;">(</span>cTimeEnd,<span style="color: #00C800;">AT</span><span style="color: #000000;">(</span><span style="color: #ff0000;">':'</span>, cTimeEnd<span style="color: #000000;">)</span><span style="color: #000000;">+1</span>,<span style="color: #000000;">2</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span> * <span style="color: #000000;">60</span> + ;<br /> <span style="color: #00C800;">IF</span><span style="color: #000000;">(</span>RAT<span style="color: #000000;">(</span><span style="color: #ff0000;">':'</span>, cTimeEnd<span style="color: #000000;">)</span> == <span style="color: #00C800;">AT</span><span style="color: #000000;">(</span><span style="color: #ff0000;">':'</span>, cTimeEnd<span style="color: #000000;">)</span>, <span style="color: #000000;">0</span>, ;<br /> VAL<span style="color: #000000;">(</span><span style="color: #0000ff;">SUBSTR</span><span style="color: #000000;">(</span>cTimeEnd,RAT<span style="color: #000000;">(</span><span style="color: #ff0000;">':'</span>, cTimeEnd<span style="color: #000000;">)</span><span style="color: #000000;">+1</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span> - ;<br /> VAL<span style="color: #000000;">(</span>cTimeStart<span style="color: #000000;">)</span> * <span style="color: #000000;">3600</span> - ;<br /> VAL<span style="color: #000000;">(</span><span style="color: #0000ff;">SUBSTR</span><span style="color: #000000;">(</span>cTimeStart,<span style="color: #00C800;">AT</span><span style="color: #000000;">(</span><span style="color: #ff0000;">':'</span>, cTimeStart<span style="color: #000000;">)</span><span style="color: #000000;">+1</span>,<span style="color: #000000;">2</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span> * <span style="color: #000000;">60</span> - ;<br /> <span style="color: #00C800;">IF</span><span style="color: #000000;">(</span>RAT<span style="color: #000000;">(</span><span style="color: #ff0000;">':'</span>, cTimeStart<span style="color: #000000;">)</span> == <span style="color: #00C800;">AT</span><span style="color: #000000;">(</span><span style="color: #ff0000;">':'</span>, cTimeStart<span style="color: #000000;">)</span>, <span style="color: #000000;">0</span>, ;<br /> VAL<span style="color: #000000;">(</span><span style="color: #0000ff;">SUBSTR</span><span style="color: #000000;">(</span>cTimeStart,RAT<span style="color: #000000;">(</span><span style="color: #ff0000;">':'</span>, cTimeStart<span style="color: #000000;">)</span><span style="color: #000000;">+1</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span><br /> <br />nTemp := nTotalSec<br /> <br /><span style="color: #00C800;">FOR</span> nCtr = <span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> <span style="color: #000000;">4</span><br /> nConstant := <span style="color: #00C800;">IF</span><span style="color: #000000;">(</span>nCtr == <span style="color: #000000;">1</span>, <span style="color: #000000;">86400</span>, <span style="color: #00C800;">IF</span><span style="color: #000000;">(</span>nCtr == <span style="color: #000000;">2</span>, <span style="color: #000000;">3600</span>, <span style="color: #00C800;">IF</span><span style="color: #000000;">(</span> nCtr == <span style="color: #000000;">3</span>, <span style="color: #000000;">60</span>, <span style="color: #000000;">1</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span><br /> aRetVal<span style="color: #000000;">[</span>nCtr,<span style="color: #000000;">1</span><span style="color: #000000;">]</span> := INT<span style="color: #000000;">(</span>nTemp/nConstant<span style="color: #000000;">)</span><br /> aRetval<span style="color: #000000;">[</span>nCtr,<span style="color: #000000;">2</span><span style="color: #000000;">]</span> := nTotalSec / nConstant<br /> nTemp -= aRetVal<span style="color: #000000;">[</span>nCtr,<span style="color: #000000;">1</span><span style="color: #000000;">]</span> * nConstant<br /><span style="color: #00C800;">NEXT</span><br /> <br /><span style="color: #00C800;">RETURN</span> aRetVal<br /> </div>[/code:3lhknkre]
Best Regards
Uwe <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: --> |
manipulating time strings | Thanks Uwe,
for calculation I resolved
Now I must resolve the second Problem :
[b:39lo63mc]I must calculate the the flexibility negative and positive[/b:39lo63mc]
See these samples pls
sample :
Entrata1:="07:57"
Uscita1 :="13:58"
Total = 05:58 ( I calc from 08:00 to 14:00)
the employe made not six Hours of Work and it is a[b:39lo63mc] FLNEG of 2 minutes[/b:39lo63mc]
Entrata1:="07:57"
Uscita1 :="14:25"
Total = 06:25 ( I calc from 08:00 to 14:00)
the employe made over six Hours of Work and it is a [b:39lo63mc]FLPOS of 25 minutes[/b:39lo63mc]
How i can make to calculate [b:39lo63mc]FLNEG and FLPOS[/b:39lo63mc] with a function ? |
manipulating time strings | Silvio,
I don*t understand. Do You want to calc ( round ) to a full hour ( at start ) ???
Entrata1:="07:57"
( I calc from [color=#FF0000:34c14mej]08:00 [/color:34c14mej])
Best Regards
Uwe <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: --> |
manipulating time strings | No please :
I must calculate the the flexibility negative and positive
I have TO MAKE 6 HOURS
TIME OF INIT WORK :="07:57"
TIME OF END WORK :="13:58"
Total OF HOURS WORKED = 05:58 ( I calc from 08:00 to 14:00)
WITH THIS SAMPLE i HAVE A [b:1th6xt71]NEGATIVE flexibility[/b:1th6xt71] BECAUSE the worker MADE ONLY 5.58 AND NOT 6 HOURS
I explain
Total OF HOURS WORKED = 05:58 ( I calc from 08:00 to 14:00)
the worker can acces at work at 07:57 but his time work is from 08:00 to 14:00 and I calc from 08:00 to the end of work and this case 13:58
in this case there is negative flexibility of 2 minutes because the worker must made 6 hours and he made only 5:58 |
manipulating time strings | If we see the sample test :
Worker : Jonh
Morning
nEntrata1:="07:57"
nUscita1:="14:25"
here the worker made 6 Hours of Work with 25 minutes of positive flexibility
Afternoon
nEntrata2:="15:57"
nUscita2:="16:57"
here the worker is on positive flexibility and he made 1 hours of positive flexibility
Evening
nEntrata3:="17:00"
nUscita3:="19:00"
here the worker is also on positive flexibility and he made 2 hours of positive flexibility
the worker made total 3 hours and 25 minutes of positive flexibility |
manipulating time strings | Silvio,
I think that can be used as a basic with carrying on more calculations :
[img:1szqlitv]http://www.pflegeplus.com/ictures/time11.jpg[/img:1szqlitv]
Result, with the [color=#FF0000:1szqlitv]extra lines [/color:1szqlitv]:
[img:1szqlitv]http://www.pflegeplus.com/ictures/time12.jpg[/img:1szqlitv]
// the worker made 6 Hours of Work with [color=#FF0000:1szqlitv]25 minutes [/color:1szqlitv]of positive flexibility
MsgAlert( ELTIME( "07:57:00", "14:25:00" ), "07:57 <> 14:25" )
// the worker is on positive flexibility and he made 1 hours of positive flexibility
MsgAlert( ELTIME( "15:57:00", "16:57:00" ), "15:57 <> 16:57" )
// the worker is on positive flexibility and he made 2 hours of positive flexibility
MsgAlert( ELTIME( "17:00:00", "19:00:00" ), "17:00 <> 19:00" )
// the worker made total 3 hours and 25 minutes of positive flexibility
[code=fw:1szqlitv]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">FUNCTION</span> ELTIME<span style="color: #000000;">(</span>cTIME1,cTIME2<span style="color: #000000;">)</span><br /><span style="color: #00C800;">local</span> nTIME1, nTIME2, nDELSECS, nHRS, nMINS, nSECS, nSECS1, nSECS2<br /><br /><span style="color: #B900B9;">// add this, to ignore a time < 08:00 ( set to 08:00 )</span><br /><span style="color: #B900B9;">// IF val(substr(cTIME1,1,2)) < 8 // 08:00</span><br /><span style="color: #B900B9;">// cTIME1 := "08:00:00"</span><br /><span style="color: #B900B9;">// ENDIF</span><br /><br />nSECS1 := <span style="color: #000000;">(</span>val<span style="color: #000000;">(</span><span style="color: #0000ff;">substr</span><span style="color: #000000;">(</span>cTIME1,<span style="color: #000000;">1</span>,<span style="color: #000000;">2</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span> * <span style="color: #000000;">3600</span><span style="color: #000000;">)</span> +;<br /> <span style="color: #000000;">(</span>val<span style="color: #000000;">(</span><span style="color: #0000ff;">substr</span><span style="color: #000000;">(</span>cTIME1,<span style="color: #000000;">4</span>,<span style="color: #000000;">2</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span> * <span style="color: #000000;">60</span><span style="color: #000000;">)</span> + <span style="color: #000000;">(</span>val<span style="color: #000000;">(</span><span style="color: #0000ff;">substr</span><span style="color: #000000;">(</span>cTIME1,<span style="color: #000000;">7</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span><br />nSECS2 := <span style="color: #000000;">(</span>val<span style="color: #000000;">(</span><span style="color: #0000ff;">substr</span><span style="color: #000000;">(</span>cTIME2,<span style="color: #000000;">1</span>,<span style="color: #000000;">2</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span> * <span style="color: #000000;">3600</span><span style="color: #000000;">)</span> +;<br /> <span style="color: #000000;">(</span>val<span style="color: #000000;">(</span><span style="color: #0000ff;">substr</span><span style="color: #000000;">(</span>cTIME2,<span style="color: #000000;">4</span>,<span style="color: #000000;">2</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span> * <span style="color: #000000;">60</span><span style="color: #000000;">)</span> + <span style="color: #000000;">(</span>val<span style="color: #000000;">(</span><span style="color: #0000ff;">substr</span><span style="color: #000000;">(</span>cTIME2,<span style="color: #000000;">7</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span><br />nDELSECS := <span style="color: #0000ff;">abs</span><span style="color: #000000;">(</span>nSECS2 - nSECS1<span style="color: #000000;">)</span><br />nHRS := int<span style="color: #000000;">(</span>nDELSECS / <span style="color: #000000;">3600</span><span style="color: #000000;">)</span><br />nMINS := int<span style="color: #000000;">(</span><span style="color: #000000;">(</span>nDELSECS - nHRS * <span style="color: #000000;">3600</span><span style="color: #000000;">)</span> / <span style="color: #000000;">60</span><span style="color: #000000;">)</span><br />nSECS := nDELSECS - <span style="color: #000000;">(</span>nHRS * <span style="color: #000000;">3600</span><span style="color: #000000;">)</span> - <span style="color: #000000;">(</span>nMINS * <span style="color: #000000;">60</span><span style="color: #000000;">)</span><br /><br /><span style="color: #B900B9;">// add this, to ignore the hours < 14:00 ( 08:00 - 14:00 = 6 )</span><br /><span style="color: #B900B9;">// IF val(substr(cTIME2,1,2)) >= 14 // 14:00</span><br /><span style="color: #B900B9;">// nHRS := nHRS - 6 ( counts only houres > 14:00</span><br /><span style="color: #B900B9;">// ENDIF</span><br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #0000ff;">right</span><span style="color: #000000;">(</span><span style="color: #ff0000;">"00"</span> + ltrim<span style="color: #000000;">(</span>str<span style="color: #000000;">(</span>nHRS<span style="color: #000000;">)</span><span style="color: #000000;">)</span>,<span style="color: #000000;">2</span><span style="color: #000000;">)</span> + ;<br /> <span style="color: #ff0000;">":"</span> + <span style="color: #0000ff;">right</span><span style="color: #000000;">(</span><span style="color: #ff0000;">"00"</span> + ltrim<span style="color: #000000;">(</span>str<span style="color: #000000;">(</span>nMINS<span style="color: #000000;">)</span><span style="color: #000000;">)</span>,<span style="color: #000000;">2</span><span style="color: #000000;">)</span> + ;<br /> <span style="color: #ff0000;">":"</span> + <span style="color: #0000ff;">right</span><span style="color: #000000;">(</span><span style="color: #ff0000;">"00"</span> + ltrim<span style="color: #000000;">(</span>str<span style="color: #000000;">(</span>nSECS<span style="color: #000000;">)</span><span style="color: #000000;">)</span>,<span style="color: #000000;">2</span><span style="color: #000000;">)</span><br /> </div>[/code:1szqlitv]
Best Regards
Uwe <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: --> |
manipulating time strings | this afternoon I try it . thanks |
manual ADS en Español | Hola a todos:
Me gustaría saber si existe un manual de ADS en castellano. Muchas gracias <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
Salu2 |
manual ADS en Español | ??? |
manual ADS en Español | Mgsoft: Me parece que es dificil de encontrar ese manual.
Si hay uno, solo te lo dan si compras ADS. (Hecho a la medida para (x)Harbour)
Seria una gran solucion para los que deseamos comenzar con ADS cliente servidor, por lo menos para
hacer las primeras pruebas ya que hay una version gratuita para 2 usuarios.
Ademas saber bien como se hace el diccionario de datos y como funciona y ver todas las posibilidades de esta
herramienta que seria una solucion para seguir con los DBF o los ADT.
Yo aun no he trabajado cliente servidor porque no he tenido necesidad, pero, viendo que es
tan dificil encontrar informacion en español de ADS, estoy mirando para el lado de SQL y ADO.
Saludos y espero que si alguin encuentra algo quizas pueda compartirlo.
Ruben Fernandez. |
manual ADS en Español | Este es antiguo, pero puede resultar util:
<!-- m --><a class="postlink" href="http://www.ousob.com/ng/ads_611/">http://www.ousob.com/ng/ads_611/</a><!-- m --> |
manual ADS en Español | Antonio:
Muchas gracias por tu indicación, pero busco algo más actualizado, sobre todo que trate el acceso a través de internet. He probado el ejemplo de Cibertec y va muy muy lento.
Y respecto al manual ADS hecho a la medida para (x)Harbour, ¿no se puede comprar por separado?. Malamente se puede conocer y testear un producto sin manual. <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> |
manual ADS en Español | Te has planteado usar LetoDB en vez de ADS ?
Es gratuito y open source:
<!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=3&t=10623&start=0&hilit=alexander">viewtopic.php?f=3&t=10623&start=0&hilit=alexander</a><!-- l --> |
manual ADS en Español | Hola,
He estado haciendo unas pruebas con letodb y la verdad es que va bastante bien. Si alguien lleva tiempo usándolo, ¿nos puede contar su experiencia en cuanto a velocidad e integridad de los datos e índices? Una buena cosa de los dbf en local, por lo menos en mi experiencia, es que no cascan nunca.
Aquí están los ficheros compilados para:
Harbour 1.0.1 dev Intl. (Rev. 9361)
Letodb build8 0.8
<!-- m --><a class="postlink" href="http://www.box.net/shared/v8bo4nzjdr">http://www.box.net/shared/v8bo4nzjdr</a><!-- m -->
Un saludo,
Alvaro |
manual ADS en Español | Alvaro,
Uso xHarbour 1.2, ¿podrías indicarme como compilar la LetoDb para esta versión de xHarbour?.
Gracias.
Rolando <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> |
manual ADS en Español | Holas,
la gran ventaja de ADS es el SQL y que es transaccional, la desventaja es que es MUY CARO, claro la version local con todas las funcionalidad excepto las transacciones es de uso libre (creo), estoy seguro que Alexander tiene estas funcionalidad en el TODO de LETODB
saludos
Marcelo |
manual ADS en Español | Hola Rolando,
Yo no uso xharbour, pero puedes compilar el ejecutable del servidor (letodb.exe) y la librería (rddleto.lib) usando el fichero make_b32.bat, añadiendo el "path" de tu "bcc55\bin" y modificando el fichero "makefile.bc" con tus "paths" también tendrás que cambiar las librerías de xharbour en la línea:
[code=fw:srmmi080]<div class="fw" id="{CB}" style="font-family: monospace;"><br />HARBOUR_LIBS = hbdebug.lib hbvm.lib hbrtl.lib $<span style="color: #000000;">(</span>HB_GT_LIB<span style="color: #000000;">)</span> hblang.lib hbrdd.lib hbmacro.lib hbpp.lib rddntx.lib rddcdx.lib rddfpt.lib <br /> </div>[/code:srmmi080]
No estoy seguro de que funcione.
El fichero manage.exe se compila bajando el hwgui, pero no necesitas hacerlo, porque el manage.exe que te mando te funcionará perfectamente, ya que es un simple cliente que monitoriza los usuarios y ficheros abiertos. Por cierto, si alguien ha modificado el manage.prg para coder compilarlo con FWH me gustaría tenerlo, para modificar algunas cosas (básicamente añadir un servidor por defecto y que se conecte automáticamente al inicio). Gracias.
Alvaro |
manual ADS en Español | Alvaro,
Muchas gracias.
Voy a probar a ver que resulta.
Rolando <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> |
manual de ADORDD en castellano | Hola queridos compañeros y compañeras de la comunidad,
Os dejo un manual de ADORDD en castellano que explica sus comandos de configuración:
<!-- m --><a class="postlink" href="http://rg.to/file/3ffdfd110a3cdcfaea9b5b5da828385f/leeme.pdf.html">http://rg.to/file/3ffdfd110a3cdcfaea9b5 ... e.pdf.html</a><!-- m -->
Fuera de ello, trabaja igual que DBFCDX. Animo además a probar los scopes y los filtros para que vean su potencia.
Esperamos que así os animéis a utilizarlo. Muchas gracias. |
manual de ADORDD en castellano | <!-- m --><a class="postlink" href="http://goo.gl/JZ4PkA">http://goo.gl/JZ4PkA</a><!-- m --> |
manual de ADORDD en castellano | Estimado Lucas
Una consulta. Yo uso DBFNTX, que problemas podré tener al usar este aDORDD.
Saludos
Fernando Espinoza A. |
manual de ADORDD en castellano | Lucas,
Por qué no lo subes a un wiki en bitbucket ?
De esta forma no se perderá y además más personas podrán contribuir
Si quieres te ayudo a hacerlo <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> |
manual de ADORDD en castellano | Hola
No consigo descargarlo, me redirecciona a páginas de publicidad.
Un saludo |
manual de ADORDD en castellano | No importa qué tipo de rdd usa ADS, DBFCDX, NTX.
ADORDD funciona con cualquier SQL Server de forma idéntica a cualquier otra rdd.
Información <!-- m --><a class="postlink" href="https://github.com/AHFERREIRA/adordd.git">https://github.com/AHFERREIRA/adordd.git</a><!-- m --> |
manual de ADORDD en castellano | Antonio,
En GitHub tienes la opción de crear un wiki ?
Sería perfecto para alojar la documentación |
manual de ADORDD en castellano | Antonio,
Si tengo mas no lo creo necesario.
Los archivos readme e leeme tienen todo necesario.
Es muy simple. |
manual de ADORDD en castellano | ok <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> |
manuel | Antonio
J'ai copier C:\fwh sur U:\fwh
Quand je veux visionner les manuels il me dit que l'addresse est pas bonne
comment corriger cela
merci a l'avance pour votre aide |
manuel | C´est probablement votre racourci qui n´est plus valable. Verifiez ses propriétés. |
manuel | Merrci mais il me dit retyep your address |
manuel | erxcuse retype your address |
manuel | Richard,
S'il vous plaît mettre les bons paths à l'intérieur samples\buildh.bat |
manuel | Richard,
Il y a 2 sortes de manuels. Une copie locale qui me semble plus ancienne, avec des fichiers au format Word et au format Help, que vous devez trouver en u:\fwh\manual. L´autre qui est fournie par le racourci du menu de programes: <!-- m --><a class="postlink" href="http://wiki.fivetechsoft.com/doku.php">http://wiki.fivetechsoft.com/doku.php</a><!-- m -->
Si cela ne fonctionne pas pouvez vous envoyer une image de l´erreur? |
manuel | Richard
La documentation fournie (au format Word) est ancienne et pas pratique. On peut trouver son bonheur avec l'aide au format CHM au niveau fonctions ou commandes.
Comme André le suggérait, il vaut mieux se pencher vers wiki qui est la documentation la plus à jour et surtout les forum pour chercher (recherche avancée) . |
manuel | Richard,
quelles sont les erreurs que vous avez trouvé? S'il vous plaît copiez la sortie ici, merci |
manuel | je n'ai toujours pas accès aux manuel |
manuel | je n'ai toujours pas accès aux manuel
j'aimerais avoir le lien pour accéder aux manuels
merci |
many bug about local file/directory when name is utf8 | 1. filename change from english to uft8, ex: 'abc.exe to ' ????.exe'
2. directory is utf8 name, ex: 'c:\temp\????\'
a. read/write .ini, GetPvProfString/WritePProfString....
b. GetModulefileName/cFilePath.... |
many bug about local file/directory when name is utf8 | I will test point by point and answer one by one.
[quote:2rhrc4ne]b. GetModulefileName/cFilePath....
[/quote:2rhrc4ne]
ExeName:
[code=fw:2rhrc4ne]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"fivewin.ch"</span><br /><br />REQUEST HB_CODEPAGE_UTF8<br /><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> HB_CDPSELECT<span style="color: #000000;">(</span> <span style="color: #ff0000;">"UTF8"</span> <span style="color: #000000;">)</span><br /> FW_SetUnicode<span style="color: #000000;">(</span> .t. <span style="color: #000000;">)</span><br /><br />? <span style="color: #ff0000;">"ExeName()"</span>, ExeName<span style="color: #000000;">(</span><span style="color: #000000;">)</span>, <span style="color: #ff0000;">"HB_Argv(0)"</span>, HB_ArgV<span style="color: #000000;">(</span><span style="color: #000000;">0</span><span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /> </div>[/code:2rhrc4ne]
[url=https://imageshack.com/i/pndOcNGbp:2rhrc4ne][img:2rhrc4ne]https://imagizer.imageshack.com/v2/xq90/923/dOcNGb.png[/img:2rhrc4ne][/url:2rhrc4ne]
GetModuleFileName() is not Unicode compatible. Please do not use it. Instead, use ExeName() or HB_ARGV(0). |
many bug about local file/directory when name is utf8 | cFilePath()?GetModulefileName() ? |
many bug about local file/directory when name is utf8 | GetModuleFileName() is not Unicode compatible. Please do not use it. Instead, use ExeName() or HB_ARGV(0). |
many bug about local file/directory when name is utf8 | [quote:7kzywjdq]a. read/write .ini, GetPvProfString/WritePProfString....
[/quote:7kzywjdq]
At present, these functions are not Unicode compatible.
We will provide Unicode compatible versions at the earliest. |
many bug about local file/directory when name is utf8 | [quote:14pv22rf]2. directory is utf8 name, ex: 'c:\temp\????\'
[/quote:14pv22rf]
Test:
[code=fw:14pv22rf]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"fivewin.ch"</span><br /><br />REQUEST HB_CODEPAGE_UTF8<br /><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> HB_CDPSELECT<span style="color: #000000;">(</span> <span style="color: #ff0000;">"UTF8"</span> <span style="color: #000000;">)</span><br /> FW_SetUnicode<span style="color: #000000;">(</span> .t. <span style="color: #000000;">)</span><br /><br /> XBROWSER DIRECTORY<span style="color: #000000;">(</span> <span style="color: #ff0000;">"C:<span style="color: #000000;">\F</span>WH<span style="color: #000000;">\T</span>ESTS<span style="color: #000000;">\*</span>.*"</span>, <span style="color: #ff0000;">"D"</span> <span style="color: #000000;">)</span> ;<br /> <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">'DIRECTORY( "C:<span style="color: #000000;">\F</span>WH<span style="color: #000000;">\T</span>ESTS<span style="color: #000000;">\*</span>.*", "D" )'</span><br /><br /> XBROWSER DIRECTORYRECURSE<span style="color: #000000;">(</span> <span style="color: #ff0000;">"C:<span style="color: #000000;">\F</span>WH<span style="color: #000000;">\T</span>ESTS<span style="color: #000000;">\*</span>.*"</span>, <span style="color: #ff0000;">"D"</span> <span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /> </div>[/code:14pv22rf]
[url=https://imageshack.com/i/pnxIW8oZp:14pv22rf][img:14pv22rf]https://imagizer.imageshack.com/v2/xq90/923/xIW8oZ.png[/img:14pv22rf][/url:14pv22rf]
[url=https://imageshack.com/i/poZXY3DLp:14pv22rf][img:14pv22rf]https://imagizer.imageshack.com/v2/xq90/924/ZXY3DL.png[/img:14pv22rf][/url:14pv22rf] |
many bug about local file/directory when name is utf8 | We will check other points raised by you and come back in a little time. |
many bug about local file/directory when name is utf8 | FilePath:
[code=fw:1jtpcnxz]<div class="fw" id="{CB}" style="font-family: monospace;"> ? <span style="color: #ff0000;">"cFile ="</span>, cFile, <span style="color: #ff0000;">"cFilePath ="</span>, cFilePath<span style="color: #000000;">(</span> cFile <span style="color: #000000;">)</span>, <span style="color: #ff0000;">"cFileNoPath="</span>, cFileNoPath<span style="color: #000000;">(</span> cFile <span style="color: #000000;">)</span><br /> </div>[/code:1jtpcnxz]
[url=https://imageshack.com/i/posTI49sp:1jtpcnxz][img:1jtpcnxz]https://imagizer.imageshack.com/v2/xq90/924/sTI49s.png[/img:1jtpcnxz][/url:1jtpcnxz] |
many bug about local file/directory when name is utf8 | [quote="nageswaragunupudi":11dl76k0][quote:11dl76k0]a. read/write .ini, GetPvProfString/WritePProfString....
[/quote:11dl76k0]
At present, these functions are not Unicode compatible.
We will provide Unicode compatible versions at the earliest.[/quote:11dl76k0]
Thank you!! wait for your solution! |
many bug about local file/directory when name is utf8 | Tested FILE() and FRENAME() functions and they are Unicode compatible. |
many bug about local file/directory when name is utf8 | [quote="nageswaragunupudi":3hnv0kxn]Tested FILE() and FRENAME() functions and they are Unicode compatible.[/quote:3hnv0kxn]
harbour native function is ok. |
many bug about local file/directory when name is utf8 | [quote="ssbbs":3qqr6x0a][quote="nageswaragunupudi":3qqr6x0a]Tested FILE() and FRENAME() functions and they are Unicode compatible.[/quote:3qqr6x0a]
harbour native function is ok.[/quote:3qqr6x0a]
Then what exactly is your difficulty in these areas?
[quote:3qqr6x0a]1. filename change from english to uft8, ex: 'abc.exe to ' ????.exe'
2. directory is utf8 name, ex: 'c:\temp\????\'
[/quote:3qqr6x0a] |
many bug about local file/directory when name is utf8 | GetModuleFileName() and ShellExecute() are made Unicode compatible in the upcoming version of FWH to be released at any time. |
many bug about local file/directory when name is utf8 | [quote="nageswaragunupudi":2wn7iyo4][quote="ssbbs":2wn7iyo4][quote="nageswaragunupudi":2wn7iyo4]Tested FILE() and FRENAME() functions and they are Unicode compatible.[/quote:2wn7iyo4]
harbour native function is ok.[/quote:2wn7iyo4]
Then what exactly is your difficulty in these areas?
[quote:2wn7iyo4]1. filename change from english to uft8, ex: 'abc.exe to ' ????.exe'
2. directory is utf8 name, ex: 'c:\temp\????\'
[/quote:2wn7iyo4][/quote:2wn7iyo4]
If directory name is ansi and APP name is utf8, file of read/write is ok, only access information of APP have some problem.
If directory name is utf8, all file of read/write have some problem. |
many bug about local file/directory when name is utf8 | Tested TINI class in ini.prg.
Ini file name should be in English, but all contents can be in Unicode
This is the Unicode INI file crated and tested by me:
[code=fw:1ds40dh9]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #000000;">[</span>?????<span style="color: #000000;">]</span><br />????=???<br />????????=??????<br /><span style="color: #000000;">[</span>?????????<span style="color: #000000;">]</span><br />????=<span style="color: #000000;">40</span><br />?????=<span style="color: #000000;">20000</span><br /> </div>[/code:1ds40dh9] |
many bug about local file/directory when name is utf8 | [quote:gom4j6ox]If directory name is ansi and APP name is utf8, file of read/write is ok, only access information of APP have some problem.
If directory name is utf8, all file of read/write have some problem.
[/quote:gom4j6ox]
I have not come across any problems till now in the above situations.
In case you experience problems with any specific functions, please let us know and we will make efforts to find solutions. |
many bug about local file/directory when name is utf8 | [quote="nageswaragunupudi":1cm9ng5r]Tested TINI class in ini.prg.
Ini file name should be in English, but all contents can be in Unicode
This is the Unicode INI file crated and tested by me:
[code=fw:1cm9ng5r]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #000000;">[</span>?????<span style="color: #000000;">]</span><br />????=???<br />????????=??????<br /><span style="color: #000000;">[</span>?????????<span style="color: #000000;">]</span><br />????=<span style="color: #000000;">40</span><br />?????=<span style="color: #000000;">20000</span><br /> </div>[/code:1cm9ng5r][/quote:1cm9ng5r]
I had test environment:
c:\test\????\test.ini
c:\test\????\????.exe
than run ????.exe to read/write test.ini..... fail!! |
many bug about local file/directory when name is utf8 | This is my test program
[code=fw:2b8nywvv]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"fivewin.ch"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"ini.ch"</span><br /><br />REQUEST HB_CODEPAGE_UTF8<br /><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> oIni<br /> <span style="color: #00C800;">local</span> val1,val2,val3,val4<br /><br /> HB_CDPSELECT<span style="color: #000000;">(</span> <span style="color: #ff0000;">"UTF8"</span> <span style="color: #000000;">)</span><br /> FW_SetUnicode<span style="color: #000000;">(</span> .T. <span style="color: #000000;">)</span><br /><br /> INI oIni FILE <span style="color: #ff0000;">".<span style="color: #000000;">\U</span>TF8.ini"</span><br /> <span style="color: #0000ff;">GET</span> val1 SECTION <span style="color: #ff0000;">"?????"</span> ENTRY <span style="color: #ff0000;">"????"</span> <span style="color: #0000ff;">OF</span> oIni <span style="color: #00C800;">DEFAULT</span> <span style="color: #ff0000;">"???"</span><br /> <span style="color: #0000ff;">GET</span> val2 SECTION <span style="color: #ff0000;">"?????"</span> ENTRY <span style="color: #ff0000;">"????????"</span> <span style="color: #0000ff;">OF</span> oIni <span style="color: #00C800;">DEFAULT</span> <span style="color: #ff0000;">"??????"</span><br /> <span style="color: #0000ff;">GET</span> val3 SECTION <span style="color: #ff0000;">"?????????"</span> ENTRY <span style="color: #ff0000;">"????"</span> <span style="color: #0000ff;">OF</span> oIni <span style="color: #00C800;">DEFAULT</span> <span style="color: #000000;">40</span><br /> <span style="color: #0000ff;">GET</span> val4 SECTION <span style="color: #ff0000;">"?????????"</span> ENTRY <span style="color: #ff0000;">"?????"</span> <span style="color: #0000ff;">OF</span> oIni <span style="color: #00C800;">DEFAULT</span> <span style="color: #000000;">20000</span><br /> ENDINI<br /><br /> ? val1, val2, val3, val4<br /><br /> xbrowser oIni:<span style="color: #000000;">Sections</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /> </div>[/code:2b8nywvv]
[url=https://imageshack.com/i/pn6fE8rHg:2b8nywvv][img:2b8nywvv]https://imagizer.imageshack.com/img923/4783/6fE8rH.gif[/img:2b8nywvv][/url:2b8nywvv] |
many bug about local file/directory when name is utf8 | HB_CDPSELECT( "UTF8" )
FW_SetUnicode( .T. )
INI oIni FILE ".\UTF8.ini" // <--- change to "c:\fwh\tests\????\utf8.ini"
GET val1 SECTION "?????" ENTRY "????" OF oIni DEFAULT "???" <--- '?????' is utf8 or ansi ?
GET val2 SECTION "?????" ENTRY "????????" OF oIni DEFAULT "??????"
GET val3 SECTION "?????????" ENTRY "????" OF oIni DEFAULT 40
GET val4 SECTION "?????????" ENTRY "?????" OF oIni DEFAULT 20000
[img:3sk7ylk4]https://i.imgur.com/gAZI2p0.jpg[/img:3sk7ylk4]
utf8.ini is encode 'UTF-8' ? |
many bug about local file/directory when name is utf8 | [quote:1yen3edy]INI oIni FILE ".\UTF8.ini" // <--- change to "c:\fwh\tests\????\utf8.ini"
[/quote:1yen3edy]
We should not make that change.
Trick is to keep it as ".\" + "filename.ini" |
many samples with ListBox | I'm looking for samples with ListBox as browser database |
many samples with ListBox | Please review samples\FwBrow.prg |
many samples with ListBox | may I use array in FIELDS ( LISTBOX FIELDS)
(fields database define in array ) |
many samples with ListBox | Please review samples\TestArr.prg and TestBrAr.prg
(search for "SetArray" in samples\*.prg) |
mapi | Hi all,
When using tMail class as in FWH 2.7 sample james.prg with xHB Builder i get the following errors:
xLINK: error: Unresolved external symbol '_HB_FUN_MAPILOGOFF'.
xLINK: error: Unresolved external symbol '_HB_FUN_MAPISENDMAIL'.
xLINK: fatal error: 2 unresolved external(s).
Do i miss some libraries?
Best reagards,
Detlef |
mapi | Sorry for bothering you all.
I forgot to set the xHbBuilder to the fwh 2.7 folders and i was using my old files of fwh 2.5 <!-- s:oops: --><img src="{SMILIES_PATH}/icon_redface.gif" alt=":oops:" title="Embarassed" /><!-- s:oops: -->
But anyhow with the actual 2.7 files i got an error
xLINK: error: Unresolved external symbol '_hb_dynsymSymbol'.
So i thought it might be good to build the fivehmx.lib new.
After this i now get
xLINK: error: Unresolved external symbol '_hb_dynsymSymbol'.
xLINK: error: Unresolved external symbol '_HB_FUN_TREBAR'.
xLINK: error: Unresolved external symbol '_HB_FUN_TTOOLBAR'.
xLINK: fatal error: 3 unresolved external(s).
<!-- s:cry: --><img src="{SMILIES_PATH}/icon_cry.gif" alt=":cry:" title="Crying or Very sad" /><!-- s:cry: -->
Could anybody give me a hint?
Thanks and regards,
Detlef |
mapi | Detlef,
You may implement this function in your code:
[code:b0i50tph]
#pragma BEGINDUMP
#include "hbapi.h"
#include "hbapiitm.h"
PHB_SYMB hb_dynsymSymbol( PHB_DYNS pDynSym )
{
return pDynSym->pSymbol;
}
[/code:b0i50tph]
For TReBar and TToolBar, you need to compile and include in FWH lib source\classes\rebar.prg and source\classes\toolbar.prg |
mapi | Antonio,
thanks for your quick reply.
In the meanwhile i reinstalled the original fwh 2.7.
And i placed the hb_dynsymSymbol code into my prg file.
Now xLink doesn't complain but my app immediately crashes at start without showing a msginfo() which i placed at top of my code.
Any help is very much appreciated.
Regards,
Detlef |
mapi | Detlef,
What xHB Builder version/build are you using ? Same question for FWH. Thanks, |
mapi | Ok, i found it.
The file fivehmx.lib.xbp provided from xHarbour.com is a little outdated.
You need to add toolbar.prg and rebar.prg to the list of source files and rebuild fivehmx.lib.
After this everything works ok.
But i still need to add the 'hb_dynsymSymbol' code to my program.
Regards,
Detlef |
mapi | Detlef,
Glad to know it is working fine <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) -->
> But i still need to add the 'hb_dynsymSymbol' code to my program.
Yes, it is needed, though suposedly its going to be added to xharbour soon. |
mapping server volumes | Hi, In this way I am able to connect to a server volume within a fivewin application. WinExec( "net use \\server\volume /user:Administrator marco ", 1)............WinExec( "net use \\server\volume /DELETE", 1)But I don't like that!Are there any other ways <!-- s:idea: --><img src="{SMILIES_PATH}/icon_idea.gif" alt=":idea:" title="Idea" /><!-- s:idea: --> to do the same thing? Functions, Classes?Thanks in advanceMarco |
mapping server volumes | <!-- m --><a class="postlink" href="http://forums.fivetechsoft.com/viewtopic.php?t=9042&highlight=mapear">http://forums.fivetechsoft.com/viewtopi ... ght=mapear</a><!-- m --> <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: --> <!-- s:!: --><img src="{SMILIES_PATH}/icon_exclaim.gif" alt=":!:" title="Exclamation" /><!-- s:!: --> <!-- s:? --><img src="{SMILIES_PATH}/icon_confused.gif" alt=":?" title="Confused" /><!-- s:? --> |
mapping server volumes | Marco,try these functions[code:1masz11n]//--------------------------------------------------------------------------
FUNCTION MapNetworkDrive(cShare, cDevice)
RETURN(WNetAddConnection(cShare,cDevice))
//--------------------------------------------------------------------------
FUNCTION DelNetworkDrive(cDevice)
RETURN(WNetCancelConnection(cDevice,.T.))
//--------------------------------------------------------------------------
#pragma BEGINDUMP
#include <windows.h>
#include "hbapi.h"
#include "hbvm.h"
#include "hbapiitm.h"
#define MAX_FILE_NAME 1024
HB_FUNC( WNETADDCONNECTION )
{
char cLocal[MAX_FILE_NAME];
BOOL Result = FALSE ;
int nLength ;
if (ISCHAR(1) && (hb_parclen(1) >5) && ISCHAR(2) )
{
nLength= hb_parclen(2) ;
if ((nLength>=2) && (nLength< MAX_PATH-1) )
{
memcpy(cLocal, hb_parc(2), 2) ;
cLocal[2]= '\0';
Result = ( WNetAddConnection(hb_parc(1),NULL,cLocal) == NO_ERROR) ;
}
}
hb_retl(Result) ;
}
HB_FUNC( WNETCANCELCONNECTION )
{
char cLocal[3];
BOOL Result = FALSE ;
if (ISCHAR(1) && (hb_parclen(1) >= 2))
{
memcpy(cLocal, hb_parc(1), 2) ;
cLocal[2]= '\0';
Result = (WNetCancelConnection(cLocal,ISLOG(2) && hb_parl(2)? TRUE :
FALSE)== NO_ERROR) ;
}
hb_retl(Result) ;
}
#pragma ENDDUMP[/code:1masz11n] |
maquinas virtuales - virtual machines | Amigos,
Antonio en un momento me dio un ejemplo del uso de maquinas virtuales, para poder llamar funciones desde C pero que estan en harbour, ahora bien, como recupero un dato (cadena) que devuelve la funcion que llame y que esta en harbour.
Ejemplo:
function suma(a, b)
return ( a + b)
Como hago para que ese valor (a + b) lo pueda recuperar desde la funcion que fue llamada?
gracias |
maquinas virtuales - virtual machines | Gustavo,
hb_parc( -1 ) para cadenas
hb_parnl( -1 ) para números (sin decimales)
etc...
-1 accede al valor devuelto. |
maquinas virtuales - virtual machines | O sea de la misma forma que si recuperas un dato enviado a una funcion en C? pense que al utilizar Virtual la cosa cambiaba.
Gracias. |
maquinas virtuales - virtual machines | Si, es igual, ya que la máquina virtual usa un item en donde almacena el valor de retorno (lo que se devuelve con "return ...").
La clave está en que al usar -1 con las funciones del sistema extendido, se accede al dicho item que almacena el valor de retorno. |
maquinas virtuales - virtual machines | Perdon la ignoracia, pero alguien me puede explicar que son las maquinas virtuales? |
maquinas virtuales - virtual machines | Harbour y xharbour, al igual que Clipper, y al igual que otros compiladores (como Java, Visual Basic, etc.) usan lo que se denomina una máquina virtual.
La maquina virtual es como una CPU virtual. Es decir, no se ejecutan las instrucciones del microprocesador directamente, sino desde una capa de instrucciones controladas que aseguran la robustez de la aplicación. La aplicación nunca puede "desbocarse" como ocurre en lenguajes como C, ensamblador, etc.
La máquina virtual ofrece muchas ventajas para el desarrollo de aplicaciones de gestión y de todo tipo, pues aportan mucha ayuda para depurar las aplicaciones, es decir, para saber cuando ocurre un error y por qué.
La contrapartida es que las máquinas virtuales han de ser muy optimizadas para que no consuman demasiado tiempo en sus procesos, tiempo que es muy valioso para que la aplicación funcione rápido.
Aqui te incluyo un escrito que en su dia aporté al proyecto harbour, explicando la arquitectura de una máquina virtual:
The Harbour virtual machine (VM)
Question :
If a VM description is desirable, how should it be structured? (I
propose plain text, with two main sections: VM description, Opcodes. The
"Opcodes" section would describe every opcode: mnemonic, code, operands,
description. I think I can maintain this section.)
Answer :
The VM is formed by the main execution loop and several subsystems, each of
which could be theoretically replaced, supposing that you respect the
interface of each subsystem.
The main execution loop is defined in the C function named VirtualMachine(),
which receives two parameters: the pcode instructions to execute and the
local symbol table (a portion of the OBJs (static) symbol table) used by
that pcode: (please review hbpcode.h for the currently implemented pcode
opcodes)
VM( pcode, local symbols )
The VM may invoke the VM (itself) again. This lets the Clipper language
access Clipper functions and methods and external C language functions again
and again. The VM organizes these multiple accesses in an ordered and
fully controlled way, and implements services to access these multiple
execution levels (ProcName(), ProcLine(), debugging, and stack variables
access).
The VM subsystems are continuously used by the main execution loop. Let's
review these VM subsystems:
The startup: Controls the initialization of the different VM subsystems.
It is invoked at the beginning of the application. It also controls the
exiting of the application.
The stack: The VM does not use the stack of the computer directly, it uses
instead its own stack for manipulating values (parameters, returned values,
and symbols) as a hardware stack does.
The static symbol table: Created by the compiler at compile time (and
grouped by the linker on OBJs), this subsystem is responsible for an
immediate access to functions location and it is highly related to the
dynamic symbol table at runtime. It contains many duplicated symbols that
will be optimized by the dynamic symbol table.
The dynamic symbol table: Dynamically generated from the startup subsystem
at the beginning of the application. It organizes in an efficient way the
static symbol table creating an alphabetical index that allows a dicotomic
search of symbols. This subsystem is responsible for quick access to symbols
(functions, variables, fields and workareas aliases).
The static and public variables: Responsible for storing public and static
variables.
The memory: Responsible for allocating, reallocating, locking, unlocking and
freeing memory.
The extend system: Defines the interface (_parc(), ..., _retc() ) from low
level (C language) to high level (Clipper language). This subsystem is
responsible for connecting in a proper way C language functions to the
entire application.
Multidimensional arrays: This subsystem allows the creation of arrays, and
the services to manipulate these arrays in all ways. The arrays are
extensively used by the Clipper language and also they are the foundation of
the Objects (Objects are just arrays related to a specific Class).
The Objects engine: Responsible for the creation of Classes and Objects. It
also defines the way to access a specific Class method to be invoked by the
VM and provides all kind of Classes information that may be requested at
runtime.
The macro subsystem: it implements a reduced compiler that may be used at
runtime to generate pcode to be used by the application. In fact it is a
portion of the harbour yacc specifications.
The workareas subsystem: Responsible for databases management. It defines
the locations where the used workareas will be stored and provides all the
functions to access those workareas. It also implements the interface to the
replaceable database drivers.
Question :
Will Harbour opcodes mimic the Clipper ones? (will there be a 1:1
relation between them?) If so, are Clipper opcodes described somewhere?
Answer:
Clipper language pcode opcodes
DEFINE NAME VALOR BYTES
#define NOP 0x00 1
#define PUSHC 0x01 3 + literal
#define PUSHN 0x05 3
#define POPF 0x06 3
#define POPM 0x07 3
#define POPQF 0x08 3
#define PUSHA 0x09 3
#define PUSHF 0x0A 3
#define PUSHM 0x0B 3
#define PUSHMR 0x0C 3
#define PUSHP 0x0D 3
#define PUSHQF 0x0E 3
#define PUSHV 0x0F 3
#define SFRAME 0x10 3
#define SINIT 0x11 3
#define SYMBOL 0x12 3
#define SYMF 0x13 3
#define BEGIN_SEQ 0x19 3
#define JDBG 0x1A 3
#define JF 0x1B 3
#define JFPT 0x1C 3
#define JISW 0x1D 3
#define JMP 0x1E 3
#define JNEI 0x1F 3
#define JT 0x20 3
#define JTPF 0x21 3
#define PUSHBL 0x23 3
#define ARRAYATI 0x24 3
#define ARRAYPUTI 0x25 3
#define CALL 0x26 3
#define DO 0x27 3
#define FRAME 0x28 3
#define FUNC 0x29 3
#define LINE 0x2A 3
#define MAKEA 0x2B 3
#define MAKELA 0x2C 3
#define PARAMS 0x2D 3
#define POPFL 0x2E 3
#define POPL 0x2F 3
#define POPS 0x30 3
#define PRIVATES 0x31 3
#define PUBLICS 0x33 3
#define PUSHFL 0x34 3
#define PUSHFLR 0x35 3
#define PUSHI 0x36 3
#define PUSHL 0x37 3
#define PUSHLR 0x38 3
#define PUSHS 0x39 3
#define PUSHSR 0x3A 3
#define PUSHW 0x3B 3
#define SEND 0x3C 3
#define XBLOCK 0x3D 3
#define MPOPF 0x4A 5
#define MPOPM 0x4B 5
#define MPOPQF 0x4C 5
#define MPUSHA 0x4D 5
#define MPUSHF 0x4E 5
#define MPUSHM 0x4F 5
#define MPUSHMR 0x50 5
#define MPUSHP 0x51 5
#define MPUSHQF 0x52 5
#define MPUSHV 0x53 5
#define MSYMBOL 0x54 5
#define MSYMF 0x55 5
#define ABS 0x56 1
#define AND 0x57 1
#define ARRAYAT 0x58 1
#define ARRAYPUT 0x59 1
#define BREAK 0x5A 1
#define DEC 0x5B 1
#define DIVIDE 0x5C 1
#define DOOP 0x5D 1
#define EEQ 0x5E 1
#define ENDBLOCK 0x5F 1
#define ENDPROC 0x60 1
#define END_SEQ 0x61 1
#define EQ 0x62 1
#define EVENTS 0x63 1
#define FALSE 0x64 1
#define GE 0x65 1
#define GT 0x66 1
#define INC 0x67 1
#define LE 0x68 1
#define LT 0x69 1
#define MINUS 0x6A 1
#define MULT 0x6B 1
#define NE 0x6C 1
#define NEGATE 0x6E 1
#define NOP2 0x6F 1
#define NOT 0x70 1
#define NULL 0x71 1
#define ONE1 0x72 1
#define OR 0x73 1
#define PCOUNT 0x74 1
#define PLUS 0x75 1
#define POP 0x76 1
#define PUSHRV 0x77 1
#define QSELF 0x78 1
#define SAVE_RET 0x79 1
#define TRUE 0x7A 1
#define UNDEF 0x7B 1
#define ZER0 0x7C 1
#define ZZBLOCK 0x7D 1
#define AXPRIN 0x7E 1
#define AXPROUT 0x7F 1
#define BOF 0x80 1
#define DELETED 0x81 1
#define EOF 0x82 1
#define FCOUNT 0x83 1
#define FIELDNAME 0x84 1
#define FLOCK 0x85 1
#define FOUND 0x86 1
#define FSELECT0 0x87 1
#define FSELECT1 0x88 1
#define LASTREC 0x89 1
#define LOCK 0x8A 1
#define RECNO 0x8B 1
#define BNAMES 0x8C 1
#define LNAMES 0x8D 1
#define SNAMES 0x8E 1
#define SRCNAME 0x8F 1
#define TYPE 0x90 1
#define WAVE 0x91 1
#define WAVEA 0x92 1
#define WAVEF 0x93 1
#define WAVEL 0x94 1
#define WAVEP 0x95 1
#define WAVEPOP 0x96 1
#define WAVEPOPF 0x97 1
#define WAVEPOPQ 0x98 1
#define WAVEQ 0x99 1
#define WSYMBOL 0x9A 1
#define AADD 0x9B 1
#define ASC 0x9C 1
#define AT 0x9D 1
#define CDOW 0x9E 1
#define CHR 0x9F 1
#define CMONTH 0xA0 1
#define CTOD 0xA1 1
#define DATE 0xA2 1
#define DAY 0xA3 1
#define DOW 0xA4 1
#define DTOC 0xA5 1
#define DTOS 0xA6 1
#define EMPTY 0xA7 1
#define QEXP 0xA8 1
#define EXPON 0xA9 1
#define INSTR 0xAA 1
#define INT 0xAB 1
#define LEFT 0xAC 1
#define LEN 0xAD 1
#define LOGQ 0xAE 1
#define LOWER 0xAF 1
#define LTRIM 0xB0 1
#define MAX 0xB1 1
#define MIN 0xB2 1
#define MODULUS 0xB3 1
#define MONTH 0xB4 1
#define REPLICATE 0xB5 1
#define ROUND 0xB6 1
#define SECONDS 0xB7 1
#define SPACE 0xB8 1
#define QSQRT 0xB9 1
#define STR1 0xBA 1
#define STR2 0xBB 1
#define STR3 0xBC 1
#define SUB2 0xBD 1
#define SUB3 0xBE 1
#define TIME 0xBF 1
#define TRIM 0xC0 1
#define UPPER 0xC1 1
#define VAL 0xC2 1
#define VALTYPE 0xC3 1
#define WORD 0xC4 1
#define YEAR 0xC5 1
#define TRANS 0xC6 1
#define COL 0xC7 1
#define DEVPOS 0xC8 1
#define INKEY0 0xC9 1
#define INKEY1 0xCA 1
#define PCOL 0xCB 1
#define PROW 0xCC 1
#define ROW 0xCD 1
#define SETPOS 0xCE 1
#define SETPOSBS 0xCF 1
Harbour will not implement all of them as we want to provide the highest
freedom to programers to extend and modify Harbour as needed. In example:
Clipper language uses opcodes for: Row(), Col(), Upper(), Space(),
Replicate(), InKey(), Year(), Month(), etc... where we may just call a
standard C function, that uses the standard extend system and that may be
easily modified. So Harbour will use much less opcodes than the Clipper
language. This will also help to have a simpler and easier to maintain
compiler and VM.
Question :
I see that, for example, Harbour has an opcode named "PUSHWORD"(06),
while Valkyre calls it "PUSHW"(3B): Different names, different codes.
Isn't it desirable that Harbour pCode be binary-compatible with Clipper? I
mean, by doing so, Harbour VM could interpret Clipper pCode and
vice-versa.
Answer :
Harbour opcodes are defined in hbpcode.h. We are trying to use very easy to
remember mnemonics, so PUSHWORD seems easier than PUSHW. The opcodes values
are meaningless as they are just used by a C language switch sentence (in
fact there is a powerful optimization which is to use the pcode opcodes
themselves as an index to a VM functions pointers array, so VM execution
speed may increase. Clipper uses it).
We are not fully implementing the Clipper language OBJs model (i.e. to
provide identifiers names length higher than 10 chars) so Harbour OBJs will not be supported by Clipper and viceversa. |
maria?? test error in samples directory. | Hi Mr. Rao,
I try to run some samples about mariadb. it gives an error.
1040
too many connections.
for example. maria12.prg |
maria?? test error in samples directory. | That is a cloud server with low fees.
At times it gets overloaded.
Request you to please try later after an hour or two. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.