topic
stringlengths 1
63
| text
stringlengths 1
577k
⌀ |
|---|---|
B4a free
|
Exelente. Tambien hemos desarrollado App.
|
BACKGROUND ON A WINDOW
|
I must insert an image jpg as background in a window
but I know this only for bitmap and not run for jpg
sample
#define OSFONDO "D48.JPG"
...
DEFINE BITMAP oBmpSFONDO SFONDO FILENAME OSFONDO
...
ACTIVATE WINDOW oWChld MAXIMIZED;
ON PAINT (showBitmaps( oWnd, hDC, oBmpSFONDO:hBitmap,oBmpSFONDO ) )
// this is good for BMPs
STAT FUNC shwBitmaps( oWnd, hDC, hBmp, oBitmap )
LOCAL nTop := 0
LOCAL nLeft := 0
LOCAL nWidth := oWnd:nWidth()
LOCAL nHeight := oWnd:nHeight()
Local oSay
IF hBmp = 0
RETURN NIL
ENDIF
PalBmpDraw( hDC, nTop, nLeft, hBmp , , nWidth, nHeight )
Return NIL
How I can make to show a jpg ?
|
BACKGROUND ON A WINDOW
|
I made also this :
oBmpSFONDO = TImage():Define( , OSFONDO )
oWnd:oWndClient:bPainted := {|hDC| PalBmpDraw( hDC, 0, 0,oBmpSFONDO:hBitmap,,;
oWnd:oWndClient:nWidth, oWnd:oWndClient:nHeight,, .T.) }
but not run
|
BACKGROUND ON A WINDOW
|
Silvio,
Do MsgInfo( oBmpSFONDO:hBitmap ) to check that you have a valid handle there.
|
BACKGROUND ON A WINDOW
|
Hi Silvio:
This works for me:
[code:1tb4wumm] @ 0, 0 IMAGE oImg FILENAME C:\MG\IMAGES\MGLogom.jpg" OF oWnd:oWndClient ;
SIZE GetSysMetrics( 0 ), GetSysMetrics( 17 ) - GetSysMetrics( 15 ) - oBar:nHeight() - ;
oWnd:oMsgBar:nHeight() PIXEL ADJUST
[/code:1tb4wumm]
[url=http://www.imaxenes.com/imagen/logo1jo632i.jpg.html:1tb4wumm][img:1tb4wumm]http://www.imaxenes.com/mini/logo1jo632i.jpg[/img:1tb4wumm][/url:1tb4wumm]
Regards.
Manuel Mercado
|
BACKGROUND ON A WINDOW
|
I try this sample but not run ok
[code:feqzftf1]
#include "FiveWin.ch"
#define OSFONDO "D48.JPG"
static oWnd
function Main()
local oBar
DEFINE WINDOW oWnd TITLE "Test" MDI ;
MENU BuildMenu()
DEFINE BUTTONBAR oBar 3DLOOK BUTTONSIZE 39,39 OF oWnd 2007
SET MESSAGE OF oWnd TO "test image" NOINSET 2007
ACTIVATE WINDOW oWnd
return nil
function BuildMenu()
local oMenu
MENU oMenu
MENUITEM "Test"
MENU
MENUITEM "Beach" ACTION Beach()
ENDMENU
oMenu:AddMdi()
ENDMENU
return oMenu
function beach()
LOCAL oWChld
DEFINE WINDOW oWChld OF oWnd MDICHILD ;
TITLE 'Beach Plan'
@ 0, 0 IMAGE oImg FILENAME OSFONDO OF oWChld:oWndClient ;
SIZE GetSysMetrics( 0 ), GetSysMetrics( 17 ) - GetSysMetrics( 15 ) - oWnd:oBar:nHeight() - ;
oWnd:oMsgBar:nHeight() PIXEL ADJUST
cRegistro := "OMBRELLONI : "
cAutore := "Liberi : "
cSyst := "Occupati : "
SET MESSAGE OF oWChld TO "" NOINSET
DEFINE MSGITEM OF oWChld:oMSGBAR prompt cregistro size 150 ACTION nil
DEFINE MSGITEM OF oWChld:oMSGBAR prompt cAutore size 150 ACTION nil
DEFINE MSGITEM OF oWChld:oMSGBAR prompt cSyst size 150 ACTION nil
ACTIVATE WINDOW oWChld MAXIMIZED
return nil[/code:feqzftf1]
to try you can download the image from <!-- w --><a class="postlink" href="http://www.bpascal.it/d48.jpg">www.bpascal.it/d48.jpg</a><!-- w -->
|
BACKGROUND ON A WINDOW
|
Hi Silvio:
[quote="Silvio":3flbb92p]I try this sample but not run ok[/quote:3flbb92p]
For a MDICHILD try this:
@0,0 IMAGE oImg FILENAME OSFONDO OF oWChld SIZE oWChld:nWidth, oWChld:nHeight PIXEL ADJUST
Just remember that oImg is not a brush of oWChld, then other controls for this child window should belong to oImg instead of oWChld
Regards
Manuel Mercado
|
BACKUP MYSQL como ?
|
Gente como executar e restaurar backup no mysql ?
Alguem poderia fornecer um exemplo de como criar uma rotina para esta finalidade?
Aokisantos
|
BACKUP MYSQL como ?
|
SOLUCIONADO <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
|
BACKUP MYSQL como ?
|
Me podrias Indicar como lo hiceste...
De antemano Gracias <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
|
BACKUP MYSQL como ?
|
[quote="leandro":1ywki5hr]Me podrias Indicar como lo hiceste...
De antemano Gracias <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->[/quote:1ywki5hr]
Leandr,
Me corroe la inquietud.
Me gustaria que compartieras tu solución.
gracias de antemano
|
BACKUP MYSQL como ?
|
En PHP:
[code:2915gxkt]
<?php
//Copyright (C) 2000-2006 Antonio Grandío Botella http://www.antoniograndio.com
//Copyright (C) 2000-2006 Inmaculada Echarri San Adrián http://www.inmaecharri.com
//This file is part of Catwin.
//CatWin is free software; you can redistribute it and/or modify
//it under the terms of the GNU General Public License as published by
//the Free Software Foundation; either version 2 of the License, or
//(at your option) any later version.
//CatWin is distributed in the hope that it will be useful,
//but WITHOUT ANY WARRANTY; without even the implied warranty of
//MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
//GNU General Public License for more details:
//http://www.gnu.org/copyleft/gpl.html
//You should have received a copy of the GNU General Public License
//along with Catwin Net; if not, write to the Free Software
//Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
if (!is_dir("_backups")) {mkdir("_backups");}
deldir("_backups");
$fich = $_SESSION['empresa']."---".date('Y-m-d-His').".sql";
if( !@function_exists('gzopen')) {
$gz = false;
$f = fopen( "_backups/".$fich, 'w' );
}
else {
$fich = $fich . ".gz";
$gz = true;
$f = gzopen( "_backups/".$fich, 'w6' );
}
$db = mysql_select_db($_SESSION['empresa']);
$escribir = "-- Base de datos: ".$_SESSION['empresa']." - Fecha: " . strftime( "%d/%m/%Y - %H:%M:%S", time() )."\n";
escribir($f, $gz, $escribir);
$result = mysql_query( 'SHOW tables' );
while( $fila = mysql_fetch_array($result) ) {
if ($_SESSION['empresa'] == "nuevocat" AND $fila[0] == "referers") {continue;}
escribetabla( $fila[0], $f, $gz);
escribir($f, $gz, "\n");
}
if( !$gz ){
fclose($f);
} else {
gzclose($f);
}
echo "<a href='_backups/$fich'>Bajar la copia de seguridad <span class='b'>$fich</span></a>";
function escribetabla($table, $f = 0, $gz) {
$escribir = "\n-- Tabla `$table`\n";
escribir($f, $gz, "\n");
escribir($f, $gz, $escribir);
$escribir = mysql_fetch_array(mysql_query("SHOW CREATE TABLE $table"));
quitar($escribir['Create Table']);
$escribir = "DROP TABLE IF EXISTS $table;\n" . $escribir['Create Table'] . ";\n\n";
escribir($f, $gz, $escribir);
$escribir = "--\n";
escribir($f, $gz, $escribir);
$escribir = "-- Dumping `$table`\n";
escribir($f, $gz, $escribir);
$escribir = "--\n\n";
escribir($f, $gz, $escribir);
$escribir = "LOCK TABLES $table WRITE;\n";
escribir($f, $gz, $escribir);
$result = mysql_query("SELECT * FROM $table");
$campos=mysql_num_fields($result);
while ($fila = mysql_fetch_array($result)) {
$escribir = "INSERT INTO $table VALUES(";
escribir($f, $gz, $escribir);
$n = 0;
while ($n < $campos) {
$escribir = "";
if ($n) {$escribir = ", ";}
if( !isset($fila["$n"])) {$escribir .= 'NULL';} else {$escribir .= "'" . mysql_escape_string($fila["$n"]) . "'";}
escribir($f, $gz, $escribir);
$n = $n+1;
}
$escribir = ");\n";
escribir($f, $gz, $escribir);
}
$escribir = "UNLOCK TABLES;";
escribir($f, $gz, $escribir);
}
function quitar(&$text) {
return $text;
}
function escribir($f, $gz, $escribir) {
if( !$gz ){
fwrite( $f, $escribir );
} else {
gzwrite( $f, $escribir );
}
}
function deldir($dir){
$current_dir = opendir($dir);
while($entryname = readdir($current_dir)){
if(is_dir("$dir/$entryname") and ($entryname != "." and $entryname!="..")){
deldir("${dir}/${entryname}");
}elseif($entryname != "." and $entryname!=".."){
unlink("${dir}/${entryname}");
}
}
closedir($current_dir);
}
?>
[/code:2915gxkt]
|
BACKUP MYSQL como ?
|
segue a solução:
<!-- m --><a class="postlink" href="http://www.fivewin.com.br/forum/topic.asp?TOPIC_ID=9423">http://www.fivewin.com.br/forum/topic.asp?TOPIC_ID=9423</a><!-- m -->
Aokisantos
|
BACKUP MYSQL como ?
|
Holas, si se le asigna la usuario el priviliegio >"files", se puede usar la siguiente orden
"SELECT * INTO OUTFILE '/BACKS/listado.txt' FROM listado"
donde listado.txt contendra la infoirmacion de la tabla listado en formato txt plano...
Salu2
|
BACKUP/RESTORE DATABASE MYSQL CON TDOLPHIN
|
Saludos, estoy usando xHarbour, alguien ha hecho respaldo y restauracion de las database mysql con la clase TDolphin.? ...logre hacer el backup, luego probe restaurarlo con navicat y no me trajo las tablas, parece que el .SQL no es compatible, estoy probando restaurar con la misma TDolphin, [b:353msxux]mis tablas son InnoDb[/b:353msxux], las ayudas, sugerencias, recomendaciones y opciones son bienvenidas.
Que sugieren mejor usar para respaldo/restaurar tablas InnoDb.?...saludos... <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: -->
|
BACKUP/RESTORE DATABASE MYSQL CON TDOLPHIN
|
Hola...
Yo uso estas sentencias para el backup y el restore,,,,( el detalle esta en que no guarda las estructuras,,, pero es mucho mas rápido que mysqldump)...
pero,,, solo backupeas y las restauras desde tu aplicación,,,,
SELECT * INTO OUTFILE //copias/productos FROM tabprod ORDER BY código // copia la data de la tabla tabprod a un archivo plano productos
LOAD DATA INFILE //copias/productos INTO TABLE tabprod // llena la tabla tabprod desde el archivo plano productos..
Salu2
|
BACKUP/RESTORE DATABASE MYSQL CON TDOLPHIN
|
Willi, esa opcion la estoy probando, pero como dices, solo guarda la data y no la estructura de la tabla, intente usar mysqldump en un excute() y aun no me funciona bien, creo me falta un parametro, estoy leyendo sobre su uso, lei que algunas funciones de respaldo de MySql solo funcionan en tablas MyISam, saludos... <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: -->
|
BACKUP/RESTORE DATABASE MYSQL CON TDOLPHIN
|
Hola,,,
Un detalle, esas funciones que te indique, solo funcionan en el server... no en las estaciones de trabajo,,, esto es valido por un tema de seguridad,,, así que desde cualquier estación no se puede sacar backups.... ya suena mas seguro..
|
BACKUP/RESTORE DATABASE MYSQL CON TDOLPHIN
|
Ya lo pille Willi, pero el detalles es que solo respalda la data y no la estructura de las tablas, pude hacer respaldo y estauracion con TDolphin, pero tengo una tabla con 700 registros, para respaldarla todo bien, pero cuando intento restaurarla no lo hace en esa tabla, probe borrando todas las tablas y crea la de los 700 registros, pero nunca trae la data, lanza un error de tdolhpin y si no borro la tabla, entonces se queda colgado el sistema y nunca trae data, si quito esa tabla o hago el respaldo con tablas con pocos registros todo trabaja bien, mis tablas son InnoDb y uso xHarbour, espero algun otra sugerencia o experiencia de otros colegas de saber como hacen sus respaldo de database de mysql, saludos... <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: -->
|
BACKUP/RESTORE DATABASE MYSQL CON TDOLPHIN
|
Hola...
Hago backups con una 60m tablas y algunas de ellas con 500,000 registros,,, con los comandos que te mencione,,, y además los zipe con password... asi nadie (o casi nadie) las puede ver... echale un ojo a este código
[code=fw:3dmikk49]<div class="fw" id="{CB}" style="font-family: monospace;"><br /># include <span style="color: #ff0000;">"fivewin.ch"</span> <span style="color: #B900B9;">// 0x4L |</span><br /># include <span style="color: #ff0000;">"btnget.ch"</span><br /># include <span style="color: #ff0000;">"eagle1.ch"</span><br /># include <span style="color: #ff0000;">"Splitter.ch"</span><br /># include <span style="color: #ff0000;">"report.ch"</span><br /><span style="color: #00C800;">static</span> oWnd, oDlg <span style="color: #B900B9;">// objeto ventana principal</span><br /><span style="color: #00C800;">STATIC</span> oAppW, oTray, oIcon<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 /><span style="color: #00C800;">local</span> cTitle, lOk, iLogo, _msn_n<br /><span style="color: #00C800;">local</span> oCursor, oSalir, lSalir, oConec, oEscon<br /><span style="color: #00C800;">local</span> cHost, cUser, cPass, cDbNa, cDDes<br /><span style="color: #00C800;">local</span> oHost, oUser, oPass, oDbNa, oDDes<br /><span style="color: #00C800;">local</span> oMySQL, oDataBase, oTimba<br /><span style="color: #00C800;">local</span> oDias, aDias, oHora, cHora, oTray, oMenu, oIcon1, lUno, aFile, cFile<br /><span style="color: #00C800;">local</span> eConec, lYa, oBoton<br /><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> <span style="color: #B900B9;">// evita el doble arranque</span><br /> <span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><span style="color: #00C800;">ENDIF</span><br /><br />ServiceProcess<span style="color: #000000;">(</span><span style="color: #000000;">1</span><span style="color: #000000;">)</span><br /><br />oDias := ARRAY<span style="color: #000000;">(</span><span style="color: #000000;">7</span><span style="color: #000000;">)</span><br />aDias := ARRAY<span style="color: #000000;">(</span><span style="color: #000000;">7</span><span style="color: #000000;">)</span><br />aFile := <span style="color: #000000;">{</span><span style="color: #000000;">}</span><br />AFill<span style="color: #000000;">(</span>aDias, .f.<span style="color: #000000;">)</span><br />lSalir := .t.<br />lYa := .t.<br />cHora := SPACE<span style="color: #000000;">(</span><span style="color: #000000;">5</span><span style="color: #000000;">)</span><br />cHost := SPACE<span style="color: #000000;">(</span><span style="color: #000000;">40</span><span style="color: #000000;">)</span><br />cPass := <span style="color: #ff0000;">"contraseña"</span> <span style="color: #B900B9;">// contraseña de la base de datos</span><br />cDbNa := SPACE<span style="color: #000000;">(</span><span style="color: #000000;">40</span><span style="color: #000000;">)</span><br />cDDes := SPACE<span style="color: #000000;">(</span><span style="color: #000000;">75</span><span style="color: #000000;">)</span><br />cFile := <span style="color: #ff0000;">"SVBACKUP.CFG"</span><br /><span style="color: #00C800;">If</span> File<span style="color: #000000;">(</span>cFile<span style="color: #000000;">)</span><br /> aFile := LeerTxt<span style="color: #000000;">(</span>cFile<span style="color: #000000;">)</span><br /> cHost := aFile<span style="color: #000000;">[</span><span style="color: #000000;">1</span><span style="color: #000000;">]</span><br /> cUser := aFile<span style="color: #000000;">[</span><span style="color: #000000;">2</span><span style="color: #000000;">]</span><br /> cDbNa := aFile<span style="color: #000000;">[</span><span style="color: #000000;">3</span><span style="color: #000000;">]</span><br /> aDias<span style="color: #000000;">[</span><span style="color: #000000;">1</span><span style="color: #000000;">]</span> := <span style="color: #00C800;">IF</span><span style="color: #000000;">(</span>aFile<span style="color: #000000;">[</span><span style="color: #000000;">4</span><span style="color: #000000;">]</span> = <span style="color: #ff0000;">"1"</span>, .t.,.f.<span style="color: #000000;">)</span><br /> aDias<span style="color: #000000;">[</span><span style="color: #000000;">2</span><span style="color: #000000;">]</span> := <span style="color: #00C800;">IF</span><span style="color: #000000;">(</span>aFile<span style="color: #000000;">[</span><span style="color: #000000;">5</span><span style="color: #000000;">]</span> = <span style="color: #ff0000;">"1"</span>, .t.,.f.<span style="color: #000000;">)</span><br /> aDias<span style="color: #000000;">[</span><span style="color: #000000;">3</span><span style="color: #000000;">]</span> := <span style="color: #00C800;">IF</span><span style="color: #000000;">(</span>aFile<span style="color: #000000;">[</span><span style="color: #000000;">6</span><span style="color: #000000;">]</span> = <span style="color: #ff0000;">"1"</span>, .t.,.f.<span style="color: #000000;">)</span><br /> aDias<span style="color: #000000;">[</span><span style="color: #000000;">4</span><span style="color: #000000;">]</span> := <span style="color: #00C800;">IF</span><span style="color: #000000;">(</span>aFile<span style="color: #000000;">[</span><span style="color: #000000;">7</span><span style="color: #000000;">]</span> = <span style="color: #ff0000;">"1"</span>, .t.,.f.<span style="color: #000000;">)</span><br /> aDias<span style="color: #000000;">[</span><span style="color: #000000;">5</span><span style="color: #000000;">]</span> := <span style="color: #00C800;">IF</span><span style="color: #000000;">(</span>aFile<span style="color: #000000;">[</span><span style="color: #000000;">8</span><span style="color: #000000;">]</span> = <span style="color: #ff0000;">"1"</span>, .t.,.f.<span style="color: #000000;">)</span><br /> aDias<span style="color: #000000;">[</span><span style="color: #000000;">6</span><span style="color: #000000;">]</span> := <span style="color: #00C800;">IF</span><span style="color: #000000;">(</span>aFile<span style="color: #000000;">[</span><span style="color: #000000;">9</span><span style="color: #000000;">]</span> = <span style="color: #ff0000;">"1"</span>, .t.,.f.<span style="color: #000000;">)</span><br /> aDias<span style="color: #000000;">[</span><span style="color: #000000;">7</span><span style="color: #000000;">]</span> := <span style="color: #00C800;">IF</span><span style="color: #000000;">(</span>aFile<span style="color: #000000;">[</span><span style="color: #000000;">10</span><span style="color: #000000;">]</span> = <span style="color: #ff0000;">"1"</span>, .t.,.f.<span style="color: #000000;">)</span><br /> cHora := aFile<span style="color: #000000;">[</span><span style="color: #000000;">11</span><span style="color: #000000;">]</span><br /><span style="color: #00C800;">EndIF</span><br />eConec := <span style="color: #000000;">{</span>||CConectar<span style="color: #000000;">(</span>oMySQL, oDataBase, cHost, cUser, cPass, cDbNa, aDias, cHora, oTimBa, oBoton<span style="color: #000000;">)</span> <span style="color: #000000;">}</span><br /><br /><span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">ICON</span> oIcon <span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">"ABACKUP"</span><br /><span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">ICON</span> oIcon1 <span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">"ABACKUP2"</span><br /><span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">CURSOR</span> oCursor HAND<br /><span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oAppW <span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">"ABACKUP2"</span> <span style="color: #0000ff;">ICON</span> oIcon <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"SVBACKUP V1-0"</span><br /> <span style="color: #0000ff;">REDEFINE</span> BTNGET oHost ;<br /> <span style="color: #0000ff;">VAR</span> cHost ;<br /> <span style="color: #0000ff;">ID</span> <span style="color: #000000;">110</span> <span style="color: #0000ff;">OF</span> oAppW<br /> <span style="color: #0000ff;">REDEFINE</span> BTNGET oUser ;<br /> <span style="color: #0000ff;">VAR</span> cUser ;<br /> <span style="color: #0000ff;">ID</span> <span style="color: #000000;">111</span> <span style="color: #0000ff;">OF</span> oAppW<br /> <span style="color: #0000ff;">REDEFINE</span> BTNGET oDbNa ;<br /> <span style="color: #0000ff;">VAR</span> cDbNa ;<br /> <span style="color: #0000ff;">ID</span> <span style="color: #000000;">113</span> <span style="color: #0000ff;">OF</span> oAppW<br /> <span style="color: #0000ff;">REDEFINE</span> BTNGET oDDes ;<br /> <span style="color: #0000ff;">VAR</span> cDDes ;<br /> <span style="color: #0000ff;">ID</span> <span style="color: #000000;">114</span> <span style="color: #0000ff;">OF</span> oAppW<br /> <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">CHECKBOX</span> oDias<span style="color: #000000;">[</span><span style="color: #000000;">1</span><span style="color: #000000;">]</span> ;<br /> <span style="color: #0000ff;">VAR</span> aDias<span style="color: #000000;">[</span><span style="color: #000000;">1</span><span style="color: #000000;">]</span> ;<br /> <span style="color: #0000ff;">ID</span> <span style="color: #000000;">101</span> <span style="color: #0000ff;">OF</span> oAppW<br /> <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">CHECKBOX</span> oDias<span style="color: #000000;">[</span><span style="color: #000000;">2</span><span style="color: #000000;">]</span> ;<br /> <span style="color: #0000ff;">VAR</span> aDias<span style="color: #000000;">[</span><span style="color: #000000;">2</span><span style="color: #000000;">]</span> ;<br /> <span style="color: #0000ff;">ID</span> <span style="color: #000000;">102</span> <span style="color: #0000ff;">OF</span> oAppW<br /> <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">CHECKBOX</span> oDias<span style="color: #000000;">[</span><span style="color: #000000;">3</span><span style="color: #000000;">]</span> ;<br /> <span style="color: #0000ff;">VAR</span> aDias<span style="color: #000000;">[</span><span style="color: #000000;">3</span><span style="color: #000000;">]</span> ;<br /> <span style="color: #0000ff;">ID</span> <span style="color: #000000;">103</span> <span style="color: #0000ff;">OF</span> oAppW<br /> <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">CHECKBOX</span> oDias<span style="color: #000000;">[</span><span style="color: #000000;">4</span><span style="color: #000000;">]</span> ;<br /> <span style="color: #0000ff;">VAR</span> aDias<span style="color: #000000;">[</span><span style="color: #000000;">4</span><span style="color: #000000;">]</span> ;<br /> <span style="color: #0000ff;">ID</span> <span style="color: #000000;">104</span> <span style="color: #0000ff;">OF</span> oAppW<br /> <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">CHECKBOX</span> oDias<span style="color: #000000;">[</span><span style="color: #000000;">5</span><span style="color: #000000;">]</span> ;<br /> <span style="color: #0000ff;">VAR</span> aDias<span style="color: #000000;">[</span><span style="color: #000000;">5</span><span style="color: #000000;">]</span> ;<br /> <span style="color: #0000ff;">ID</span> <span style="color: #000000;">105</span> <span style="color: #0000ff;">OF</span> oAppW<br /> <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">CHECKBOX</span> oDias<span style="color: #000000;">[</span><span style="color: #000000;">6</span><span style="color: #000000;">]</span> ;<br /> <span style="color: #0000ff;">VAR</span> aDias<span style="color: #000000;">[</span><span style="color: #000000;">6</span><span style="color: #000000;">]</span> ;<br /> <span style="color: #0000ff;">ID</span> <span style="color: #000000;">106</span> <span style="color: #0000ff;">OF</span> oAppW<br /> <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">CHECKBOX</span> oDias<span style="color: #000000;">[</span><span style="color: #000000;">7</span><span style="color: #000000;">]</span> ;<br /> <span style="color: #0000ff;">VAR</span> aDias<span style="color: #000000;">[</span><span style="color: #000000;">7</span><span style="color: #000000;">]</span> ;<br /> <span style="color: #0000ff;">ID</span> <span style="color: #000000;">107</span> <span style="color: #0000ff;">OF</span> oAppW<br /> <span style="color: #0000ff;">REDEFINE</span> BTNGET oHora ;<br /> <span style="color: #0000ff;">VAR</span> cHora ;<br /> <span style="color: #0000ff;">VALID</span> OkHora<span style="color: #000000;">(</span>cHora<span style="color: #000000;">)</span> ;<br /> <span style="color: #0000ff;">PICTURE</span> <span style="color: #ff0000;">"99:99"</span> ;<br /> <span style="color: #0000ff;">ID</span> <span style="color: #000000;">115</span> <span style="color: #0000ff;">OF</span> oAppW<br /> <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">BUTTON</span> oEscon ;<br /> <span style="color: #0000ff;">ACTION</span> oAppW:<span style="color: #000000;">Hide</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> ;<br /> <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"&Esconder"</span> ;<br /> <span style="color: #0000ff;">ID</span> <span style="color: #000000;">121</span> <span style="color: #0000ff;">OF</span> oAppW<br /> <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">BUTTON</span> oConec ;<br /> <span style="color: #0000ff;">ACTION</span> CConectar<span style="color: #000000;">(</span>oMySQL, oDataBase, cHost, cUser, cPass, cDbNa, aDias, cHora, oTimBa, oBoton<span style="color: #000000;">)</span> ;<br /> <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"&Conectar"</span> ;<br /> <span style="color: #0000ff;">ID</span> <span style="color: #000000;">122</span> <span style="color: #0000ff;">OF</span> oAppW<br /> <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">BUTTON</span> oSalir ;<br /> <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">(</span><span style="color: #00C800;">If</span><span style="color: #000000;">(</span>MsgNoYes<span style="color: #000000;">(</span><span style="color: #ff0000;">"Cerrar la Aplicación?"</span>,<span style="color: #ff0000;">"Confirme"</span><span style="color: #000000;">)</span>,<span style="color: #000000;">(</span>lSalir := .t., oAppW:<span style="color: #000000;">End</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span>, <span style="color: #000000;">)</span> <span style="color: #000000;">)</span> ;<br /> <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"&Salir"</span> ;<br /> <span style="color: #0000ff;">ID</span> <span style="color: #000000;">123</span> <span style="color: #0000ff;">OF</span> oAppW<br /><br /> <span style="color: #0000ff;">REDEFINE</span> BITMAP oBoton ;<br /> <span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">"BVERDE"</span> TRANSPARENT ;<br /> <span style="color: #0000ff;">ID</span> <span style="color: #000000;">120</span> <span style="color: #0000ff;">OF</span> oAppW<br /><br /><br /><br />aEval<span style="color: #000000;">(</span>oAppW:<span style="color: #000000;">aControls</span>,<span style="color: #000000;">{</span>|oC|iif<span style="color: #000000;">(</span>oC:<span style="color: #000000;">ClassName</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span>=<span style="color: #ff0000;">"TBUTTON"</span>,oC:<span style="color: #000000;">oCursor</span>:=oCursor,<span style="color: #000000;">)</span><span style="color: #000000;">}</span><span style="color: #000000;">)</span><br /><span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oAppW <span style="color: #0000ff;">CENTER</span> ; <span style="color: #B900B9;">//</span><br /> <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">INIT</span> <span style="color: #000000;">(</span>oTray := TTrayIcon<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">(</span>oAppW,oIcon,<span style="color: #ff0000;">"SVBACKUP"</span>,<span style="color: #000000;">{</span>||oAppW:<span style="color: #000000;">Show</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><span style="color: #000000;">}</span>,<span style="color: #000000;">{</span>|nRow,nCol|MenuTray<span style="color: #000000;">(</span>nRow,nCol,oTray<span style="color: #000000;">)</span><span style="color: #000000;">}</span><span style="color: #000000;">)</span>, ;<br /> oTimBa:=ATimer<span style="color: #000000;">(</span>oAppW, oTimBa, eConec<span style="color: #000000;">)</span> <span style="color: #000000;">)</span> ;<br /> <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">PAINT</span> <span style="color: #000000;">(</span><span style="color: #00C800;">If</span><span style="color: #000000;">(</span>lYa, <span style="color: #000000;">(</span>oAppW:<span style="color: #000000;">Hide</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span>, lYa:=.f.<span style="color: #000000;">)</span>, <span style="color: #00C800;">Nil</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span> ;<br /> <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">RIGHT</span> <span style="color: #0000ff;">CLICK</span> oTray:<span style="color: #000000;">SetIcon</span><span style="color: #000000;">(</span> oIcon1, <span style="color: #ff0000;">"Another"</span> <span style="color: #000000;">)</span> ;<br /> <span style="color: #0000ff;">VALID</span> <span style="color: #000000;">(</span>lSalir<span style="color: #000000;">)</span> <span style="color: #B900B9;">// oTray:End() ;</span><br />SysRefresh<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><span style="color: #00C800;">Return</span><span style="color: #000000;">(</span><span style="color: #00C800;">Nil</span><span style="color: #000000;">)</span><br /><br /><span style="color: #B900B9;">//------------------------------------------------------------------------------------------------------</span><br /><span style="color: #00C800;">Function</span> ATimer<span style="color: #000000;">(</span>oAppW, oTimBa, eConec<span style="color: #000000;">)</span><br /><span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">TIMER</span> oTimBA <span style="color: #0000ff;">OF</span> oAppW <span style="color: #0000ff;">INTERVAL</span> <span style="color: #000000;">60000</span> <span style="color: #0000ff;">ACTION</span> EVAL <span style="color: #000000;">(</span>eConec<span style="color: #000000;">)</span><br /><span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">TIMER</span> oTimBa<br />oAppW:<span style="color: #000000;">Hide</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br />oAppW:<span style="color: #000000;">Minimize</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><span style="color: #00C800;">Return</span><span style="color: #000000;">(</span>oTimBa<span style="color: #000000;">)</span><br /><br /><span style="color: #B900B9;">//---------------------------------------------------------------------------------------------------------</span><br /><span style="color: #00C800;">FUNCTION</span> MenuTray<span style="color: #000000;">(</span> nRow, nCol, oTray <span style="color: #000000;">)</span><br /><span style="color: #00C800;">LOCAL</span> oMenu<br /> <span style="color: #0000ff;">MENU</span> oMenu <span style="color: #0000ff;">POPUP</span><br /> <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Mostrar"</span> <span style="color: #0000ff;">ACTION</span> oAppW:<span style="color: #000000;">Show</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span>, oAppW:<span style="color: #000000;">SetFocus</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><span style="color: #B900B9;">// MENUITEM "Esconder" ACTION oAppW:Hide()</span><br /> <span style="color: #0000ff;">ENDMENU</span><br /> <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">POPUP</span> oMenu <span style="color: #00C800;">AT</span> nRow, nCol <span style="color: #0000ff;">OF</span> oTray:<span style="color: #000000;">oWnd</span><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------------------------------</span><br /><span style="color: #00C800;">Function</span> CConectar<span style="color: #000000;">(</span>oMySQL, oDataBase, cHost, cUser, cPass, cDbNa, aDias, cHora, oTimBa, oBoton<span style="color: #000000;">)</span><br /><span style="color: #00C800;">local</span> oWndBack, oBack, cBack, fBack, lOk, cTime, cSufijo, cRuta, aTablas, nLen, nCont, cRZip, cLinea, aFiles<br /><span style="color: #00C800;">local</span> oApp, oMeter1, oMeter2, nPer1, nPer2, lNo<br /><span style="color: #00C800;">local</span> oAcepta, oCursor, lProcede, oSay, cFilZip, oFont1<br /><span style="color: #00C800;">local</span> cDiskExe, oHand, cFile, qDia, qHora, qMinu, nSec1, nSec2<br /><br />oBoton:<span style="color: #000000;">SETBMP</span><span style="color: #000000;">(</span><span style="color: #ff0000;">"BVERDE"</span><span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">If</span> EMPTY<span style="color: #000000;">(</span>cHost<span style="color: #000000;">)</span> .OR. EMPTY<span style="color: #000000;">(</span>cUser<span style="color: #000000;">)</span> .OR. EMPTY<span style="color: #000000;">(</span>cDbNa<span style="color: #000000;">)</span><br /> <span style="color: #00C800;">Return</span><span style="color: #000000;">(</span>.f.<span style="color: #000000;">)</span><br /><span style="color: #00C800;">EndIF</span><br /><br />cFile := <span style="color: #ff0000;">"SVBACKUP.CFG"</span><br />cLinea := cHost + CHR<span style="color: #000000;">(</span><span style="color: #000000;">13</span><span style="color: #000000;">)</span> + CHR<span style="color: #000000;">(</span><span style="color: #000000;">10</span><span style="color: #000000;">)</span> + ;<br /> cUser + CHR<span style="color: #000000;">(</span><span style="color: #000000;">13</span><span style="color: #000000;">)</span> + CHR<span style="color: #000000;">(</span><span style="color: #000000;">10</span><span style="color: #000000;">)</span> + ;<br /> cDbNa + CHR<span style="color: #000000;">(</span><span style="color: #000000;">13</span><span style="color: #000000;">)</span> + CHR<span style="color: #000000;">(</span><span style="color: #000000;">10</span><span style="color: #000000;">)</span> + ;<br /> <span style="color: #00C800;">If</span><span style="color: #000000;">(</span>aDias<span style="color: #000000;">[</span><span style="color: #000000;">1</span><span style="color: #000000;">]</span>,<span style="color: #ff0000;">"1"</span>,<span style="color: #ff0000;">"0"</span><span style="color: #000000;">)</span> + CHR<span style="color: #000000;">(</span><span style="color: #000000;">13</span><span style="color: #000000;">)</span> + CHR<span style="color: #000000;">(</span><span style="color: #000000;">10</span><span style="color: #000000;">)</span> + ;<br /> <span style="color: #00C800;">If</span><span style="color: #000000;">(</span>aDias<span style="color: #000000;">[</span><span style="color: #000000;">2</span><span style="color: #000000;">]</span>,<span style="color: #ff0000;">"1"</span>,<span style="color: #ff0000;">"0"</span><span style="color: #000000;">)</span> + CHR<span style="color: #000000;">(</span><span style="color: #000000;">13</span><span style="color: #000000;">)</span> + CHR<span style="color: #000000;">(</span><span style="color: #000000;">10</span><span style="color: #000000;">)</span> + ;<br /> <span style="color: #00C800;">If</span><span style="color: #000000;">(</span>aDias<span style="color: #000000;">[</span><span style="color: #000000;">3</span><span style="color: #000000;">]</span>,<span style="color: #ff0000;">"1"</span>,<span style="color: #ff0000;">"0"</span><span style="color: #000000;">)</span> + CHR<span style="color: #000000;">(</span><span style="color: #000000;">13</span><span style="color: #000000;">)</span> + CHR<span style="color: #000000;">(</span><span style="color: #000000;">10</span><span style="color: #000000;">)</span> + ;<br /> <span style="color: #00C800;">If</span><span style="color: #000000;">(</span>aDias<span style="color: #000000;">[</span><span style="color: #000000;">4</span><span style="color: #000000;">]</span>,<span style="color: #ff0000;">"1"</span>,<span style="color: #ff0000;">"0"</span><span style="color: #000000;">)</span> + CHR<span style="color: #000000;">(</span><span style="color: #000000;">13</span><span style="color: #000000;">)</span> + CHR<span style="color: #000000;">(</span><span style="color: #000000;">10</span><span style="color: #000000;">)</span> + ;<br /> <span style="color: #00C800;">If</span><span style="color: #000000;">(</span>aDias<span style="color: #000000;">[</span><span style="color: #000000;">5</span><span style="color: #000000;">]</span>,<span style="color: #ff0000;">"1"</span>,<span style="color: #ff0000;">"0"</span><span style="color: #000000;">)</span> + CHR<span style="color: #000000;">(</span><span style="color: #000000;">13</span><span style="color: #000000;">)</span> + CHR<span style="color: #000000;">(</span><span style="color: #000000;">10</span><span style="color: #000000;">)</span> + ;<br /> <span style="color: #00C800;">If</span><span style="color: #000000;">(</span>aDias<span style="color: #000000;">[</span><span style="color: #000000;">6</span><span style="color: #000000;">]</span>,<span style="color: #ff0000;">"1"</span>,<span style="color: #ff0000;">"0"</span><span style="color: #000000;">)</span> + CHR<span style="color: #000000;">(</span><span style="color: #000000;">13</span><span style="color: #000000;">)</span> + CHR<span style="color: #000000;">(</span><span style="color: #000000;">10</span><span style="color: #000000;">)</span> + ;<br /> <span style="color: #00C800;">If</span><span style="color: #000000;">(</span>aDias<span style="color: #000000;">[</span><span style="color: #000000;">7</span><span style="color: #000000;">]</span>,<span style="color: #ff0000;">"1"</span>,<span style="color: #ff0000;">"0"</span><span style="color: #000000;">)</span> + CHR<span style="color: #000000;">(</span><span style="color: #000000;">13</span><span style="color: #000000;">)</span> + CHR<span style="color: #000000;">(</span><span style="color: #000000;">10</span><span style="color: #000000;">)</span> + ;<br /> cHora + CHR<span style="color: #000000;">(</span><span style="color: #000000;">13</span><span style="color: #000000;">)</span> + CHR<span style="color: #000000;">(</span><span style="color: #000000;">10</span><span style="color: #000000;">)</span><br /><br />oHand := FCreate<span style="color: #000000;">(</span> cFile <span style="color: #000000;">)</span><br />FWRITE<span style="color: #000000;">(</span>oHand, cLinea<span style="color: #000000;">)</span><br />FCLose<span style="color: #000000;">(</span>oHand<span style="color: #000000;">)</span><br />lOK := .f.<br />qDia := DOW<span style="color: #000000;">(</span>DATE<span style="color: #000000;">(</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span> <span style="color: #B900B9;">// se en ordinal de la semana de la fecha del sistema.</span><br />qHora := TIME<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #B900B9;">// se toma la hora del sistema</span><br /><br /><span style="color: #00C800;">If</span> aDias<span style="color: #000000;">[</span>qDia<span style="color: #000000;">]</span><br /> lOk := .t.<br /><span style="color: #00C800;">EndIf</span><br /><br /><span style="color: #00C800;">If</span> !lOK<br /> <span style="color: #00C800;">Return</span><span style="color: #000000;">(</span>lOk<span style="color: #000000;">)</span><br /><span style="color: #00C800;">EndIf</span><br /><br />nSec1 := <span style="color: #000000;">(</span> VAL<span style="color: #000000;">(</span><span style="color: #0000ff;">SUBSTR</span><span style="color: #000000;">(</span>qHora,<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> + <span style="color: #000000;">(</span>VAL<span style="color: #000000;">(</span><span style="color: #0000ff;">SUBSTR</span><span style="color: #000000;">(</span>qHora,<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><br />nSec2 := <span style="color: #000000;">(</span> VAL<span style="color: #000000;">(</span><span style="color: #0000ff;">SUBSTR</span><span style="color: #000000;">(</span>cHora,<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> + <span style="color: #000000;">(</span>VAL<span style="color: #000000;">(</span><span style="color: #0000ff;">SUBSTR</span><span style="color: #000000;">(</span>cHora,<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><br /><br /><span style="color: #00C800;">If</span> nSec1 < nSec2<br /> <span style="color: #00C800;">Return</span><span style="color: #000000;">(</span>.f.<span style="color: #000000;">)</span><br /><span style="color: #00C800;">EndIf</span><br /><br />cDiskExe := CURDRIVE<span style="color: #000000;">(</span><span style="color: #000000;">)</span> + <span style="color: #ff0000;">":"</span><br />cRuta := cRZip := <span style="color: #ff0000;">"BACKUP_SVITE"</span><br />lMKDir<span style="color: #000000;">(</span><span style="color: #ff0000;">"<span style="color: #000000;">\"</span> + cRuta) // almacena archivos de la tabla<br />cRuta := cDiskExe + "</span>/<span style="color: #ff0000;">" + cRuta + "</span>/<span style="color: #ff0000;">"<br />cRZip := cDiskExe + "</span>\<span style="color: #ff0000;">" + cRZip + "</span>\<span style="color: #ff0000;">"<br />cFilZip := cDbNa + cRZip<br /><br />If FILE(ALLTRIM(cRZip) + ALLTRIM(cDbNa) + "</span>.ZIP<span style="color: #ff0000;">")<br /> Return(.f.)<br />EndIF<br /><br />cHost := ALLTRIM(cHost)<br />cUser := ALLTRIM(cUser)<br />cDbNa := ALLTRIm(cDbNa)<br />WHILE .t.<br /> oMySql := TMSConnect():New()<br /> If oMySql:Connect( cHost, cUser, cPass )<br /> EXIT<br /> Else<br /> Return(.f.)<br /> EndIF<br />ENDDO<br />Sonido("</span>reminder.wav<span style="color: #ff0000;">")<br />If !oMySQL:ExistDb( cDbNa ) // si no existe la base de datos,,,<br /> Return( .f. )<br />EndIf<br />//--------creamos el objeto contenedor de la base de datos<br />USE DATABASE oDataBase NAME cDbNa OF oMySQL<br />If !oDataBase:Used() //<br /> Return( .f. )<br />Endif<br />lOK := .f.<br />lNo := .f.<br />nPer1 := nPer2 := 0<br />aTablas := oDataBase:ListTables()<br />nLen := LEN(aTablas)<br />IF nLen = 0<br /> Return(lOk)<br />EndIF<br />cFilZip := "</span><span style="color: #ff0000;">"<br /><br />oAppW:Show()<br />oTimBa:DeActivate()<br />oBoton:SETBMP("</span>BROJO<span style="color: #ff0000;">")<br />oBoton:Refresh()<br /><br />lOK := ZipTablas(oMySQL, oDataBase, cRuta, cRZip, aTablas, @cFilZip, cPass, cDbNa)<br /><br />oTimBa:Activate()<br />oBoton:SETBMP("</span>BVERDE<span style="color: #ff0000;">")<br />oBoton:Refresh()<br />oAppW:Hide()<br /><br />Return(lOk)<br /><br />//---------------------------------------------------------------------------------------------------<br />Function ZipTablas(oMySQL, oDataBase, cRuta, cRZip, aTablas, cFilZip, cPass, cDbNa )<br />local nCont, nLen, aFiles, lOK, cTime, cSufijo, fBack, cBack, nRow<br />CURSORWAIT()<br />aFiles := {}<br />lOK := .f.<br />nRow := 1<br />cPass := ALLTRIM(cPass)<br />cTime := TIME()<br />cSufijo := DTOS(Date()) //+ SUBSTR(cTime,1,2) + SUBSTR(cTime,4,2) + SUBSTR(cTime,7,2)<br />nLen := LEN(aTablas)<br />cFilZip := cRZip + cDbNa + cSufijo + "</span>.ZIP<span style="color: #ff0000;">"<br /><br />If FILE(cFilZip)<br /> Return(.f.)<br />EndIf<br /><br />FOR nCont := 1 TO nLen<br /> Tone(1000,1)<br /> fBack := cSufijo + ALLTRIM(aTablas[nCont])<br /> cBack := "</span><span style="color: #0000ff;">SELECT</span> * INTO OUTFILE <span style="color: #ff0000;">'" + cRuta + fBack + "'</span> <span style="color: #0000ff;">FROM</span> <span style="color: #ff0000;">" + ALLTRIM(aTablas[nCont])<br /> lOk := oDatabase:ExecSQL( cBack )<br /> If !lOK<br /> EXIT<br /> ENDIF<br /> AaDd(aFiles, cRZip + AllTrim( fBack ) )<br /> Tone(500,1)<br />NEXT nCont<br />If !lOk<br /> Return(lOk)<br />EndIF<br />lOk := HB_ZipFile( cFilZip, aFiles, 9,,.T., cPass, .F., .F. )<br />FOR nCont := 1 TO nLen<br /> FERASE(aFiles[nCont])<br />NEXT nCont<br />Sonido("</span>reminder.wav<span style="color: #ff0000;">")<br />Return(lOk)<br /><br />//---------------------------------------------------------------------------------------------------<br />Function Sonido(cWav)<br />local cWav1<br />cWav1 := cWav<br />cWav := GetWinDir()+ "</span>\Media\<span style="color: #ff0000;">" + cWav + "</span>.WAV<span style="color: #ff0000;">"<br />If File(cWav)<br /> SndPlaySound(cWav)<br /> Else<br /> cWav1 := "</span>SND\<span style="color: #ff0000;">" + cWav1<br /> If File(cWav1)<br /> SndPlaySound(cWav1)<br /> Else<br /> Tone(1000,1)<br /> EndIf<br />EndIf<br />Return(Nil)<br /><br />//---------------------------------------------------------------------------------------------------<br />Function LeerTxt(cFile,nModo)<br />local oFile,cLinea := "</span><span style="color: #ff0000;">", aLinea := {}<br />DEFAULT cFile := "</span><span style="color: #ff0000;">"<br />DEFAULT nModo := 0<br />If Empty(cFile) .OR. !File(cFile)<br /> Return({})<br />EndIf<br />oFile := TTxtFile():New( cFile )<br />Do while !oFile:lEof()<br /> AaDd(aLinea,oFile:cLine)<br /> oFile:Skip()<br />EndDo<br />oFile:End()<br />Return(aLinea)<br /><br />//--------------------------------------------------------------------------------------------------<br />Function OkHora(cHora)<br />local lOK<br />lOk := .f.<br />If VAL(SUBSTR(cHora,1,2)) >= 0 .AND. VAL(SUBSTR(cHora,1,2)) <=23<br /> lOk := .t.<br />Endif<br />If VAL(SUBSTR(cHora,3,2)) >= 0 .AND. VAL(SUBSTR(cHora,3,2)) <=59<br /> lOk := .t.<br /> Else<br /> lOk := .f.<br />EndIf<br />Return(lOk)<br /><br />//---------------------------------------------------------------------------------------------------<br />Function ServiceProcess( mode )<br />//------------------------------<br />Local nProcessId := 0<br />Default mode := 0<br />nProcessId := GCP( )<br />If Abs( nProcessId ) > 0<br /> RSProcess( nProcessId, mode )<br />Endif<br />RETURN Nil<br /><br />//----------------------------------------------------<br />DLL32 FUNCTION RSProcess(npID AS LONG ,;<br /> nMode AS LONG ) AS LONG ;<br /> FROM "</span>RegisterServiceProcess<span style="color: #ff0000;">" LIB "</span>kernel32.DLL<span style="color: #ff0000;">"<br />//----------------------------------------------------<br />DLL32 FUNCTION GCP() AS LONG;<br /> FROM "</span>GetCurrentProcessId<span style="color: #ff0000;">" LIB "</span>kernel32.dll<span style="color: #ff0000;">"<br /><br /></span></div>[/code:3dmikk49]
|
BACKUP/RESTORE DATABASE MYSQL CON TDOLPHIN
|
Jose Luis,
yo hago el mysqldump por medio de un .bat
cFile := "backup.bat"
lEsc := .f.
FErase( cFile )
if ! FILE( cFile )
nHand := FCreate( cFile )
FWrite(nHand, cComando )
FClose(nHand)
// Respaldo Antes de la Auditoria, Nombre del DUMP
cFileBackup := 'respaldo_' + DTOS(Date()) + '_' + Time() + '.sql'
cComando := ""
cComando += 'mysqldump -h' + oApp:cConexion + ' -u' + oApp:cUser + ' -p' + oApp:cPassword + ' ' + oApp:cDatabase + ' > .\backup\'
cComando += cFileBackup + CRLF
hCambios := FOpen( cFile, FO_READWRITE + FO_SHARED )
FSeek( hCambios, 0, FS_END)
FWrite( hCambios, cComando )
FClose(nHand)
endif
*------------- Proceso de Generacion del DUMP de la base de datos
lEsc := .F.
cText := ""
DEFINE BRUSH oBrush FILE oApp:cDirBmps + "grad.jpg"
DEFINE DIALOG oDls RESOURCE "DLG_AVISO2" TITLE "Mi Respaldo ..." FONT ::oFont[2] BRUSH oBrush TRANSPARENT
REDEFINE SAY oSay PROMPT cText ID 100 OF oDls ;
COLORS CLR_WHITE
oDls:bStart := { || WaitRun( cFile, 0 ),;
lEsc := .T.,;
oDls:End() }
ACTIVATE DIALOG oDls CENTERED ;
VALID lEsc
oBrush:End()
Espero te sirva a mi me va bien y si puedo recuperar el .sql
Saludos
|
BAR 2007
|
when I write a say into BAR style 2007 the say not is trasparent
when I insert the clausole trasparent to say it make error
|
BAR 2007
|
You have to use oBar:Say() method instead.
EMG
|
BAR 2007
|
I not see none method on Tbar
I have
DEFINE BUTTONBAR obar 3D OF oWnd SIZE 42,42 2007
@ 8, 987 SAY oSay PROMPT "Manager " SIZE 200,15 OF obar FONT oFont PIXEL
How I can do ?
|
BAR 2007
|
Silvio,
oBar:bPainted := { || oBar:Say( ... ) }
Please review source\classes\rpreview.prg for a oBar:Say( ... ) full sample
|
BAR 2007
|
thanks antonio I resolve It
|
BARCODING READING AND PRINTING USING FWH
|
Hi Friends,
Has anybody implemented Barcoding, reading and Printing using FWH.
Kindly give me some examples.
- Ramesh Babu P
|
BARCODING READING AND PRINTING USING FWH
|
If you need a aprofessional tools looks at <!-- w --><a class="postlink" href="http://www.combit.net">www.combit.net</a><!-- w -->
Regards Maurizio
|
BARCODING READING AND PRINTING USING FWH
|
Hi Maurizio,
Do you work with combit list and label report in your app ?
If affermative could you pls. share with me a sample app to interface FWH to L&L ?
Thanks in advance
Marco
|
BARCODING READING AND PRINTING USING FWH
|
[quote="RAMESHBABU":242dfpx9]Hi Friends,
Has anybody implemented Barcoding, reading and Printing using FWH.
Kindly give me some examples.
- Ramesh Babu P[/quote:242dfpx9]
Hello,
there are many possibilities, free and no free. Free you can use True Type Fonts, use google to get some of them, or you can use barlib, I don't remember where is it, there is one lib in <!-- w --><a class="postlink" href="http://www.reportdesigner.info">www.reportdesigner.info</a><!-- w --> too, this was to print, for read is easer you can buy a bar scanner to connect betwen your keyboard and the cpu and this will put inside the keyboard buffer the read code, you don't need nothing to do
saludos
Marcelo
|
BARCODING READING AND PRINTING USING FWH
|
Barlib works great with xHarb and FWH
<!-- m --><a class="postlink" href="http://www.arrakis.es/~cayetano/barlib.htm">http://www.arrakis.es/~cayetano/barlib.htm</a><!-- m -->
Rick Lipkin
SC Dept of Health, USA
|
BARCODING READING AND PRINTING USING FWH
|
[quote="Rick Lipkin":3w213owo]Barlib works great with xHarb and FWH
[/quote:3w213owo]
Is it free or payable?
|
BARCODING READING AND PRINTING USING FWH
|
Free.
EMG
|
BARCODING READING AND PRINTING USING FWH
|
As stated by Rick :
Barlib really works great with xHarb and FWH.
Is there any class available to read the barcodes into FWH through the
barcode reader and which barcode reader is simple, costeffective and good to work with FWH.
- Ramesh Babu P
|
BARCODING READING AND PRINTING USING FWH
|
Keyboard-emulation barcode readers are the easiest to use as they don't require any special action from the programming side.
EMG
|
BARCODING READING AND PRINTING USING FWH
|
[quote="RAMESHBABU":2z00bqan]Is there any class available to read the barcodes into FWH through the
barcode reader and which barcode reader is simple, costeffective and good to work with FWH.
- Ramesh Babu P[/quote:2z00bqan]
As stated by Enrico:
The modern barcode readers go attached to the keyboard plug, so, they work exactly as if you were typing the codes directly with the keyboard, simply scan the code with the ready, and the code will go directly into the current active FIVEWIN GET
|
BARCODING READING AND PRINTING USING FWH
|
Thanks to Mr.Enrico and RF.
You have suggested the right and easiest way to implement barcode reading.
Now I am now comfortable in implementing the barcodes in FWH.
- Ramesh Babu P
|
BARCODING READING AND PRINTING USING FWH
|
Hello,
Where can I get BARLIB.LIB with documentation?
Thank you,
|
BARCODING READING AND PRINTING USING FWH
|
Hi cdmmaui
[quote:1jg1r70g]Where can I get BARLIB.LIB with documentation? [/quote:1jg1r70g]
Send a request mail to my e-mail ID.
I will send a copy of BARLIB.ZIP
- Ramesh Babu P
|
BARCODING READING AND PRINTING USING FWH
|
Hi Ramesh,
Thank you for your response. I have sent the request to your email.
Sincerely,
|
BARCODING READING AND PRINTING USING FWH
|
Hi Ramesh,
Did you receive my request via email?
Thank you,
|
BARCODING READING AND PRINTING USING FWH
|
I recently incorporate barcode printing and reading using de Cayetano's code. It was quite simple to do and althought not all the codes support by the library was correctly recognise, it was enought for me with the Ean13.
In a few day i'd like to test a OCX control captable to print PDF417 codes (but I don't have a reader for that 2D codes).
|
BARCODING READING AND PRINTING USING FWH
|
<!-- m --><a class="postlink" href="http://hyperupload.com/download/021bdf8b63/BarLib.rar.html">http://hyperupload.com/download/021bdf8 ... b.rar.html</a><!-- m -->
Aqui encontrarán la clase barlib con ejemplos y la poca documentación existente (pero suficiente) probada con xHarbour 0.99.60 , funcionando muy bien.
Espero esto ayude.
|
BARCODING READING AND PRINTING USING FWH
|
I agree that Barlib is a wonderful barcode library and I use it since years. But please notice that it has some resource leakages. As an example, in banner.prg che command RELEASE is incorrectly used:
release ofont
release open
instead of
release font ofont
release pen open
EMG
|
BARCODING READING AND PRINTING USING FWH
|
I've noticed that with barlib barcodes are not displayed when previewing. Bar codes work well only when creating the print job without PREVIEW.
Can someone confirm this?
Thank you,
Reinaldo.
|
BARCODING READING AND PRINTING USING FWH
|
No, I'm using Barlib and preview without problems.
EMG
|
BARCODING READING AND PRINTING USING FWH
|
Mi amigo;
Thank you for your reply. BTW - congrats on the WC.
I went back and checked my code. Indeed I'm not using barlib, I'm using VRDBcode instead.
Has anybody been able to preview barcodes using the VRDBcode class?
Thank you,
Reinaldo.
|
BARCODING READING AND PRINTING USING FWH
|
I could see a preview o the barcode but only when print 'one' barcode on the page.
I have modify also the VRDCODE class o fix a bug when print big size barcodes and add support for circular style barcodes.
If you are interest send me a email to send you a copy.
|
BARCODING READING AND PRINTING USING FWH
|
Santi,
Please upload it to <!-- w --><a class="postlink" href="http://www.hyperupload.com">www.hyperupload.com</a><!-- w --> and post here the download url. Thanks <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
|
BARCODING READING AND PRINTING USING FWH
|
Using VRDBCODE class if you want to do a preview of a report you must use oPrn:hDcOut instead oPrn:hDc when create the codebars.
Greetings.
Santiago Pérez.
|
BARCODING READING AND PRINTING USING FWH
|
thanks santiago, i try this :
[code:2jnxa82d]
Function PrintBarCode()
Local oPrn
Local oBc6
printer oPrn preview
page
oBC6 := VRDBarcode():New( oPrn:hDcOut , "12345678", 80, 80, 10, 10,2 )
oBC6:lCircular:=.t.
oBC6:ShowBarcode()
endpage
endprint
return nil[/code:2jnxa82d]
run ok but I want write the cCode on the center of the barcode ( HRC center ) or on the left / right (HRC radial) ?
[url=http://imageshack.us:2jnxa82d][img:2jnxa82d]http://img111.imageshack.us/img111/6840/hrcms7.gif[/img:2jnxa82d][/url:2jnxa82d]
How I can make it ?
And if I want print only 180° of the barcode ?
Regards,
|
BARCODING READING AND PRINTING USING FWH
|
Ok, I will implement the banner option also.
Create a 180º barcode could be a problem because I use solid circles to get a good barcode image. The arcs can't be easily fill with a color.
Perhaps a good solution it's to overwrite with a white rectangle the half of the circle to want to hide (top, bottom, left or right). I will do a test.
|
BARCODING READING AND PRINTING USING FWH
|
I sent you My test program .
Creating a 180° barcode you can use only black COLOR
YOu must give th epossibility to create option 90°, 180°, 270°, 360°
Yes the solution is good but you must write the code also on the center of barcode
there are many option you can make :
see this picture:
[url=http://img153.imageshack.us/my.php?image=optionwq1.jpg:zsdac31w][img:zsdac31w]http://img153.imageshack.us/img153/5982/optionwq1.th.jpg[/img:zsdac31w][/url:zsdac31w]
|
BARCODING READING AND PRINTING USING FWH
|
To : Ramesh
You sent me barlib, to my email.
Is that you mean the barlib on this forum ?
thank
Areang
|
BARCODING READING AND PRINTING USING FWH
|
Hi Areang
[quote:h2vg6245]Is that you mean the barlib on this forum ? [/quote:h2vg6245]
Sorry!. I don't remember exactly.
- Ramesh Babu P
|
BARCODING READING AND PRINTING USING FWH
|
<!-- m --><a class="postlink" href="http://fivetechsoft.com/forums/viewtopic.php?t=3929">http://fivetechsoft.com/forums/viewtopic.php?t=3929</a><!-- m -->
|
BARCODING READING AND PRINTING USING FWH
|
Thank Antonio
This lib work fine.
Areang
|
BARLIB
|
Estoy utilizando desde hace tiempo BARLIB.
Me surgio un pequeño problema al querer utilizar Impresora Laser, antes usaba a Injet (chorro tinta).
xCor := ::oPrn:Cmtr2Pix(nArriba,nIzq)
yCor := ::oPrn:Cmtr2Pix(nAbajo,nDerecha)
nLen := ::oPrn:Cmtr2Pix( 4, 4 )[1]
@ xCor[1], xCor[2] + (nLen/5) ean8 cCod of ::oPrn banner
El problema es que cuando imprime no el codigo de barra sino el codigo, los numero que se encuentran abaja, con Laser usa un FONT un poco mas grande.
Creo que el codigo es este: linea 114 de BANNER.PRG
define font oFont name cFont of oPrInt size nWidth*5.6 , nLen*0.04 ;
nescapement if(lHorz,0,13500)
Alguien resolvio esto??
Muchas gracias
|
BARLIB
|
Eduardo.
Serias tan amable de facilitarme algun ejemplo ( prg chiquito ) para imprimir codigos de barra?
Yo uso en la actualidad fwh+hb y requiero imprimir un codigo de barras en una nota de venta y no he tenido tiempo para probar e investigar ( esa es la verdad ).
Podrias ayudarme con esto.
Saludos
Julio Gonzalez V.
PD:intenté contactarte por msn pero no parecias conectado.
|
BARLIB opcion Banner
|
Un saludo al foro, estoy utilizando esta libreria utilizando la opcion de impresion en centimetros pero cuando incluyo la opcion BANNER si imprime el codigo de barra pero el letrero que va abajo del codigo no lo imprime.
Ej.
@ nRen, nPos CM_UPCA strzero(L,6) WIDTH nGro SIZE nLar OF opr banner
yo defino linea, poicion , grosor de la lineas de codigo y la longitu (altura)
en pixeles de acuerdo al demo que biene si lo pone pero lo requiero en cm porque es mas amigable para el usario definir donde quiere la impresion.
Alguien sabe que pasa?
Gracias foro!!!!
|
BARRA O BOTONES EN FOOTER DE XBROWSE
|
Saludos, viendo unos sistemas modelos, me llamo la atencion un browse que contiene la barra del footer pero con botones y otros objetos, es posible hacer eso con nuestro xBrowse, creo seria algo muy favorable, seria como una buttonbar en ventana o dialogo, no tendria que ser exactamente en el footer, pero lo veo una buena posicion, nose si ya existe algo parecido en xBrowse, como no lo he visto, por eso pregunto, aca pongo imagen de como hago mi xbrowse con botones y como lo vi en el otro sistema, gracias, saludos... <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: -->
MI SISTEMA
[img]
[url=http://www.subirimagenes.net/i/150111041010411111.jpg:2kwht7uk][img:2kwht7uk]http://sim1.subirimagenes.net/img/2015/01/11//150111041010411111.jpg[/img:2kwht7uk][/url:2kwht7uk]
[/img]
LA OTRA APLICACION
[img]
[url=http://www.subirimagenes.net/i/150111041059411112.jpg:2kwht7uk][img:2kwht7uk]http://sim1.subirimagenes.net/img/2015/01/11//150111041059411112.jpg[/img:2kwht7uk][/url:2kwht7uk]
[/img]
|
BARRA O BOTONES EN FOOTER DE XBROWSE
|
Has visto la funcion: XBrowse ( array ) por ejemplo?, aunque puede ser tambien una base de datos (depende de la version de FWH)
|
BARRA O BOTONES EN FOOTER DE XBROWSE
|
[quote="cnavarro":3b8bmg54]Has visto la funcion: XBrowse ( array ) por ejemplo?, aunque puede ser tambien una base de datos (depende de la version de FWH)[/quote:3b8bmg54]
Saludos Navarro, gracias por tu rapida respuesta, el detalle es que mi xbrowse esta en un folder y tengo 2 xbrowse, al igual que la aplicacion donde lo vi, por eso no tome en cuenta function xbrowse. gracias, saludos... <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: -->
|
BARRA O BOTONES EN FOOTER DE XBROWSE
|
<!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=3&t=33970">viewtopic.php?f=3&t=33970</a><!-- l -->
|
BASE/1132 Bound Error: array access from Errorsys line 360
|
Hi again!
This error is happening when I pressing the CTRL+VK_LEFT on xBrowse:
[b:15nbczvh]Error BASE/1132 Bound Error: array access from Errorsys, line 360[/b:15nbczvh]
[img:15nbczvh]http://lh4.ggpht.com/ferreira.together/R_9Y-TjDQsI/AAAAAAAAAHs/Wasedib4WGY/s800/error.JPG[/img:15nbczvh]
|
BASE/1132 Bound Error: array access from Errorsys line 360
|
Júlio,
Are you using FWH 6.12 ? That version is from December 2006 !!!
There are lots of changes, enhancements and new features since then.
|
BASE/1132 Bound Error: array access from Errorsys line 360
|
[quote="Antonio Linares":12ots2oh]Júlio,
Are you using FWH 6.12 ? That version is from December 2006 !!!
There are lots of changes, enhancements and new features since then.[/quote:12ots2oh]
Ok Linares but, in my version, how I can resolve this?
|
BASE/1132 Bound Error: array access from Errorsys line 360
|
Júlio,
I can not tell you for sure right now. We will have to look for it and see what we changed then.
|
BASE/1132 Bound Error: array access from Errorsys line 360
|
[quote="Antonio Linares":l24ra16n]Júlio,
I can not tell you for sure right now. We will have to look for it and see what we changed then.[/quote:l24ra16n]
Ok Linares, please!
I have detected that this only happens when the last column of xbrowse is marked with lHide := .T.
It's happens inside of the method GoRightMost(), when the class calculate the follows variables:
[code:l24ra16n]::nColSel := len( ::aDisplay )
::nColOffset := len( ::aCols ) - ::nFreeze
::GetDisplayCols() <- Error is here!
[/code:l24ra16n]
|
BASE/39 Write not allowed in MariaDB
|
Hi,
I got an error message:
[code=fw:363nx61f]<div class="fw" id="{CB}" style="font-family: monospace;"> Error occurred <span style="color: #00C800;">at</span>: <span style="color: #000000;">04</span>/<span style="color: #000000;">05</span>/<span style="color: #000000;">2020</span>, <span style="color: #000000;">00</span>:<span style="color: #000000;">22</span>:<span style="color: #000000;">06</span><br /> Error description: <span style="color: #000000;">Error</span> BASE/<span style="color: #000000;">39</span> Write not allowed: <span style="color: #000000;">yapilan</span>:<span style="color: #000000;">YPL_BNK1</span><br /> Args:<br /> <span style="color: #000000;">[</span> <span style="color: #000000;">1</span><span style="color: #000000;">]</span> = O FWMARIAROWSET<br /><br />Stack Calls<br />===========<br /> Called <span style="color: #0000ff;">from</span>: => __ERRRT_SBASE<span style="color: #000000;">(</span> <span style="color: #000000;">0</span> <span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: ../../../tobject.prg => FWMARIAROWSET:<span style="color: #000000;">ERROR</span><span style="color: #000000;">(</span> <span style="color: #000000;">0</span> <span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: .\source\internal\FWMARIA.PRG => FWMARIAROWSET:<span style="color: #000000;">FIELDPUT</span><span style="color: #000000;">(</span> <span style="color: #000000;">2482</span> <span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: .\source\internal\FWROWSET.PRG => FWMARIAROWSET:_YPL_BNK1<span style="color: #000000;">(</span> <span style="color: #000000;">1279</span> <span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: .\IcraKart.prg => YAP_KAYIT<span style="color: #000000;">(</span> <span style="color: #000000;">9182</span> <span style="color: #000000;">)</span></div>[/code:363nx61f]
[code=fw:363nx61f]<div class="fw" id="{CB}" style="font-family: monospace;"> oRs:<span style="color: #000000;">Append</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> oTb_YAPILAN:<span style="color: #000000;">D_BOS</span><span style="color: #000000;">(</span>YENIKAYIT<span style="color: #000000;">)</span><br /><br /> oRs:<span style="color: #000000;">YPL_BNK1</span> := nBankami <<--- <span style="color: #000000;">9182</span><br /> oRs:<span style="color: #000000;">TL_ILI</span> := xxxTL_ILI<br /> oRs:<span style="color: #000000;">TL_DN</span> := xxxTL_DN<br /> oRs:<span style="color: #000000;">TL_DAIRE</span> := xxxTL_DAIRE<br /> oRs:<span style="color: #000000;">YPL_Param</span> := xxxYPL_Param<br /> oRs:<span style="color: #000000;">YPL_1</span> := xxID <br /> oRs:<span style="color: #000000;">YPL_3</span> := xxNOT<br /> oRs:<span style="color: #000000;">YPL_6</span> := <span style="color: #000000;">1</span></div>[/code:363nx61f]
When I remark line 9182, there is not any problem.
[code=fw:363nx61f]<div class="fw" id="{CB}" style="font-family: monospace;">CREATE TABLE `yapilan` <span style="color: #000000;">(</span><br /> `YPL_0` INT<span style="color: #000000;">(</span><span style="color: #000000;">11</span><span style="color: #000000;">)</span> NOT <span style="color: #00C800;">NULL</span> AUTO_INCREMENT,<br /> `YPL_1` INT<span style="color: #000000;">(</span><span style="color: #000000;">11</span><span style="color: #000000;">)</span> <span style="color: #00C800;">NULL</span> <span style="color: #00C800;">DEFAULT</span> <span style="color: #00C800;">NULL</span>,<br /> `YPL_2` DATE <span style="color: #00C800;">NULL</span> <span style="color: #00C800;">DEFAULT</span> <span style="color: #00C800;">NULL</span>,<br /> `YPL_3` LONGTEXT <span style="color: #00C800;">NULL</span> <span style="color: #00C800;">DEFAULT</span> <span style="color: #00C800;">NULL</span> COLLATE <span style="color: #ff0000;">'latin5_turkish_ci'</span>,<br /> `YPL_6` SMALLINT<span style="color: #000000;">(</span><span style="color: #000000;">6</span><span style="color: #000000;">)</span> <span style="color: #00C800;">NULL</span> <span style="color: #00C800;">DEFAULT</span> <span style="color: #00C800;">NULL</span>,<br /> `YPL_7` VARCHAR<span style="color: #000000;">(</span><span style="color: #000000;">5</span><span style="color: #000000;">)</span> <span style="color: #00C800;">NULL</span> <span style="color: #00C800;">DEFAULT</span> <span style="color: #00C800;">NULL</span> COLLATE <span style="color: #ff0000;">'latin5_turkish_ci'</span>,<br /> `MERCI` LONGTEXT <span style="color: #00C800;">NULL</span> <span style="color: #00C800;">DEFAULT</span> <span style="color: #00C800;">NULL</span> COLLATE <span style="color: #ff0000;">'latin5_turkish_ci'</span>,<br /> `MKOD` VARCHAR<span style="color: #000000;">(</span><span style="color: #000000;">10</span><span style="color: #000000;">)</span> <span style="color: #00C800;">NULL</span> <span style="color: #00C800;">DEFAULT</span> <span style="color: #00C800;">NULL</span> COLLATE <span style="color: #ff0000;">'latin5_turkish_ci'</span>,<br /> `CEVAP` SMALLINT<span style="color: #000000;">(</span><span style="color: #000000;">6</span><span style="color: #000000;">)</span> <span style="color: #00C800;">NULL</span> <span style="color: #00C800;">DEFAULT</span> <span style="color: #00C800;">NULL</span>,<br /> `CKOD` SMALLINT<span style="color: #000000;">(</span><span style="color: #000000;">6</span><span style="color: #000000;">)</span> <span style="color: #00C800;">NULL</span> <span style="color: #00C800;">DEFAULT</span> <span style="color: #00C800;">NULL</span>,<br /> `ACIK` VARCHAR<span style="color: #000000;">(</span><span style="color: #000000;">100</span><span style="color: #000000;">)</span> <span style="color: #00C800;">NULL</span> <span style="color: #00C800;">DEFAULT</span> <span style="color: #00C800;">NULL</span> COLLATE <span style="color: #ff0000;">'latin5_turkish_ci'</span>,<br /> `DURUM` SMALLINT<span style="color: #000000;">(</span><span style="color: #000000;">6</span><span style="color: #000000;">)</span> <span style="color: #00C800;">NULL</span> <span style="color: #00C800;">DEFAULT</span> <span style="color: #00C800;">NULL</span>,<br /> `ADRES` LONGTEXT <span style="color: #00C800;">NULL</span> <span style="color: #00C800;">DEFAULT</span> <span style="color: #00C800;">NULL</span> COLLATE <span style="color: #ff0000;">'latin5_turkish_ci'</span>,<br /> `YPL_8` LONGTEXT <span style="color: #00C800;">NULL</span> <span style="color: #00C800;">DEFAULT</span> <span style="color: #00C800;">NULL</span> COLLATE <span style="color: #ff0000;">'latin5_turkish_ci'</span>,<br /> `KIM` INT<span style="color: #000000;">(</span><span style="color: #000000;">11</span><span style="color: #000000;">)</span> <span style="color: #00C800;">NULL</span> <span style="color: #00C800;">DEFAULT</span> <span style="color: #00C800;">NULL</span>,<br /> `ACIK1` VARCHAR<span style="color: #000000;">(</span><span style="color: #000000;">15</span><span style="color: #000000;">)</span> <span style="color: #00C800;">NULL</span> <span style="color: #00C800;">DEFAULT</span> <span style="color: #00C800;">NULL</span> COLLATE <span style="color: #ff0000;">'latin5_turkish_ci'</span>,<br /> `TAKIP` BIT<span style="color: #000000;">(</span><span style="color: #000000;">1</span><span style="color: #000000;">)</span> <span style="color: #00C800;">NULL</span> <span style="color: #00C800;">DEFAULT</span> b<span style="color: #ff0000;">'0'</span>,<br /> `OPERASYON` SMALLINT<span style="color: #000000;">(</span><span style="color: #000000;">6</span><span style="color: #000000;">)</span> <span style="color: #00C800;">NULL</span> <span style="color: #00C800;">DEFAULT</span> <span style="color: #00C800;">NULL</span>,<br /> `TL_ILI` VARCHAR<span style="color: #000000;">(</span><span style="color: #000000;">15</span><span style="color: #000000;">)</span> <span style="color: #00C800;">NULL</span> <span style="color: #00C800;">DEFAULT</span> <span style="color: #00C800;">NULL</span> COLLATE <span style="color: #ff0000;">'latin5_turkish_ci'</span>,<br /> `TL_DN` VARCHAR<span style="color: #000000;">(</span><span style="color: #000000;">10</span><span style="color: #000000;">)</span> <span style="color: #00C800;">NULL</span> <span style="color: #00C800;">DEFAULT</span> <span style="color: #00C800;">NULL</span> COLLATE <span style="color: #ff0000;">'latin5_turkish_ci'</span>,<br /> `TL_DAIRE` SMALLINT<span style="color: #000000;">(</span><span style="color: #000000;">6</span><span style="color: #000000;">)</span> <span style="color: #00C800;">NULL</span> <span style="color: #00C800;">DEFAULT</span> <span style="color: #00C800;">NULL</span>,<br /> `TL_HACIZ` BIT<span style="color: #000000;">(</span><span style="color: #000000;">1</span><span style="color: #000000;">)</span> <span style="color: #00C800;">NULL</span> <span style="color: #00C800;">DEFAULT</span> b<span style="color: #ff0000;">'0'</span>,<br /> `YPL_PARAM` VARCHAR<span style="color: #000000;">(</span><span style="color: #000000;">30</span><span style="color: #000000;">)</span> <span style="color: #00C800;">NULL</span> <span style="color: #00C800;">DEFAULT</span> <span style="color: #00C800;">NULL</span> COLLATE <span style="color: #ff0000;">'latin5_turkish_ci'</span>,<br /> `TUTAR` VARCHAR<span style="color: #000000;">(</span><span style="color: #000000;">100</span><span style="color: #000000;">)</span> <span style="color: #00C800;">NULL</span> <span style="color: #00C800;">DEFAULT</span> <span style="color: #00C800;">NULL</span> COLLATE <span style="color: #ff0000;">'latin5_turkish_ci'</span>,<br /> `TEBTAR` DATE <span style="color: #00C800;">NULL</span> <span style="color: #00C800;">DEFAULT</span> <span style="color: #00C800;">NULL</span>,<br /> `TEBTAR2` DATE <span style="color: #00C800;">NULL</span> <span style="color: #00C800;">DEFAULT</span> <span style="color: #00C800;">NULL</span>,<br /> `TEBTAR3` DATE <span style="color: #00C800;">NULL</span> <span style="color: #00C800;">DEFAULT</span> <span style="color: #00C800;">NULL</span>,<br /> `YPL_9` LONGTEXT <span style="color: #00C800;">NULL</span> <span style="color: #00C800;">DEFAULT</span> <span style="color: #00C800;">NULL</span> COLLATE <span style="color: #ff0000;">'latin5_turkish_ci'</span>,<br /> `YPL_TEBID` INT<span style="color: #000000;">(</span><span style="color: #000000;">11</span><span style="color: #000000;">)</span> <span style="color: #00C800;">NULL</span> <span style="color: #00C800;">DEFAULT</span> <span style="color: #00C800;">NULL</span>,<br /> `YPL_TBIDS` LONGTEXT <span style="color: #00C800;">NULL</span> <span style="color: #00C800;">DEFAULT</span> <span style="color: #00C800;">NULL</span> COLLATE <span style="color: #ff0000;">'latin5_turkish_ci'</span>,<br /> `ADRES_ILC` VARCHAR<span style="color: #000000;">(</span><span style="color: #000000;">35</span><span style="color: #000000;">)</span> <span style="color: #00C800;">NULL</span> <span style="color: #00C800;">DEFAULT</span> <span style="color: #00C800;">NULL</span> COLLATE <span style="color: #ff0000;">'latin5_turkish_ci'</span>,<br /> `TEB_BILA1` BIT<span style="color: #000000;">(</span><span style="color: #000000;">1</span><span style="color: #000000;">)</span> <span style="color: #00C800;">NULL</span> <span style="color: #00C800;">DEFAULT</span> b<span style="color: #ff0000;">'0'</span>,<br /> `TEB_BILA2` BIT<span style="color: #000000;">(</span><span style="color: #000000;">1</span><span style="color: #000000;">)</span> <span style="color: #00C800;">NULL</span> <span style="color: #00C800;">DEFAULT</span> b<span style="color: #ff0000;">'0'</span>,<br /> `TEB_BILA3` BIT<span style="color: #000000;">(</span><span style="color: #000000;">1</span><span style="color: #000000;">)</span> <span style="color: #00C800;">NULL</span> <span style="color: #00C800;">DEFAULT</span> b<span style="color: #ff0000;">'0'</span>,<br /> `TEB_KIME1` VARCHAR<span style="color: #000000;">(</span><span style="color: #000000;">25</span><span style="color: #000000;">)</span> <span style="color: #00C800;">NULL</span> <span style="color: #00C800;">DEFAULT</span> <span style="color: #00C800;">NULL</span> COLLATE <span style="color: #ff0000;">'latin5_turkish_ci'</span>,<br /> `TEB_KIME2` VARCHAR<span style="color: #000000;">(</span><span style="color: #000000;">25</span><span style="color: #000000;">)</span> <span style="color: #00C800;">NULL</span> <span style="color: #00C800;">DEFAULT</span> <span style="color: #00C800;">NULL</span> COLLATE <span style="color: #ff0000;">'latin5_turkish_ci'</span>,<br /> `TEB_KIME3` VARCHAR<span style="color: #000000;">(</span><span style="color: #000000;">25</span><span style="color: #000000;">)</span> <span style="color: #00C800;">NULL</span> <span style="color: #00C800;">DEFAULT</span> <span style="color: #00C800;">NULL</span> COLLATE <span style="color: #ff0000;">'latin5_turkish_ci'</span>,<br /> `YPL_YPID` INT<span style="color: #000000;">(</span><span style="color: #000000;">11</span><span style="color: #000000;">)</span> <span style="color: #00C800;">NULL</span> <span style="color: #00C800;">DEFAULT</span> <span style="color: #00C800;">NULL</span>,<br /> `YPL_DTAR1` DATE <span style="color: #00C800;">NULL</span> <span style="color: #00C800;">DEFAULT</span> <span style="color: #00C800;">NULL</span>,<br /> `YPL_DTAR2` DATE <span style="color: #00C800;">NULL</span> <span style="color: #00C800;">DEFAULT</span> <span style="color: #00C800;">NULL</span>,<br /> `YPL_BSEBEP` BIT<span style="color: #000000;">(</span><span style="color: #000000;">1</span><span style="color: #000000;">)</span> <span style="color: #00C800;">NULL</span> <span style="color: #00C800;">DEFAULT</span> b<span style="color: #ff0000;">'0'</span>,<br /> `YPL_BGID` INT<span style="color: #000000;">(</span><span style="color: #000000;">11</span><span style="color: #000000;">)</span> <span style="color: #00C800;">NULL</span> <span style="color: #00C800;">DEFAULT</span> <span style="color: #00C800;">NULL</span>,<br /> `YPL_BNK1` SMALLINT<span style="color: #000000;">(</span><span style="color: #000000;">6</span><span style="color: #000000;">)</span> <span style="color: #00C800;">NULL</span> <span style="color: #00C800;">DEFAULT</span> <span style="color: #00C800;">NULL</span>,<br /> `YPL_BGID2` INT<span style="color: #000000;">(</span><span style="color: #000000;">11</span><span style="color: #000000;">)</span> <span style="color: #00C800;">NULL</span> <span style="color: #00C800;">DEFAULT</span> <span style="color: #00C800;">NULL</span>,<br /> `YPL_BNK` BIT<span style="color: #000000;">(</span><span style="color: #000000;">1</span><span style="color: #000000;">)</span> <span style="color: #00C800;">NULL</span> <span style="color: #00C800;">DEFAULT</span> b<span style="color: #ff0000;">'0'</span>,<br /> `YPL_HSIRA` SMALLINT<span style="color: #000000;">(</span><span style="color: #000000;">6</span><span style="color: #000000;">)</span> <span style="color: #00C800;">NULL</span> <span style="color: #00C800;">DEFAULT</span> <span style="color: #00C800;">NULL</span>,<br /> `MERCI_ID` VARCHAR<span style="color: #000000;">(</span><span style="color: #000000;">35</span><span style="color: #000000;">)</span> <span style="color: #00C800;">NULL</span> <span style="color: #00C800;">DEFAULT</span> <span style="color: #00C800;">NULL</span> COLLATE <span style="color: #ff0000;">'latin5_turkish_ci'</span>,<br /> `NTUTAR` DECIMAL<span style="color: #000000;">(</span><span style="color: #000000;">14</span>,<span style="color: #000000;">2</span><span style="color: #000000;">)</span> <span style="color: #00C800;">NULL</span> <span style="color: #00C800;">DEFAULT</span> <span style="color: #00C800;">NULL</span>,<br /> PRIMARY KEY <span style="color: #000000;">(</span>`YPL_0`<span style="color: #000000;">)</span> USING BTREE<br /><span style="color: #000000;">)</span><br />COLLATE=<span style="color: #ff0000;">'latin5_turkish_ci'</span><br />ENGINE=InnoDB<br />AUTO_INCREMENT=<span style="color: #000000;">2517</span><br />;</div>[/code:363nx61f]
I have checked oRs:lReadOnly is .F.
Any comment?
|
BASE/39 Write not allowed in MariaDB
|
Hi,
I think I found my mistake.
in oTb_YAPILAN:D_BOS(YENIKAYIT)
[code=fw:2y2faoci]<div class="fw" id="{CB}" style="font-family: monospace;"> oRec:<span style="color: #000000;">SetDefault</span><span style="color: #000000;">(</span><span style="color: #ff0000;">"YPL_BNK1"</span>, <span style="color: #000000;">3</span><span style="color: #000000;">)</span><br /> </div>[/code:2y2faoci]
This procedure set my default variables to table fieldnames. I thought SetDefault is valid for FWMARIAROWSET like TDATAROW.
SetDefault also sets the fieldname as a readonly variable in FWMARIAROWSET Class.
Mr Rao. Can you confirm me? If it is I should change lots of lines in my application.
Edit :
[code=fw:2y2faoci]<div class="fw" id="{CB}" style="font-family: monospace;"> oRec:<span style="color: #000000;">SetDefault</span><span style="color: #000000;">(</span><span style="color: #ff0000;">"YPL_BNK1"</span>, <span style="color: #000000;">3</span>, .F.<span style="color: #000000;">)</span></div>[/code:2y2faoci]
I have changed to SetDefault like above and problem is solved. Mr. Rao, Can you confirm it?
Thanks.
|
BASE/39 Write not allowed in MariaDB
|
Rowset:
oRs:SetDefault( field, uValue, lReadOnly ) // default lReadOnly is .t.
|
BASE/39 Write not allowed in MariaDB
|
[quote="nageswaragunupudi":2l7sxlaf]Rowset:
oRs:SetDefault( field, uValue, lReadOnly ) // default lReadOnly is .t.[/quote:2l7sxlaf]
I could not find SetDefault in [url:2l7sxlaf]http://wiki.fivetechsoft.com/doku.php?id=fivewin_class_fwmariaconnection[/url:2l7sxlaf]
I have learnt.
Thanks.
|
BASE/39 Write not allowed in MariaDB
|
You will find it in the WIKI
<!-- m --><a class="postlink" href="http://wiki.fivetechsoft.com/doku.php?id=fivewin_class_fwmariarowset">http://wiki.fivetechsoft.com/doku.php?i ... ariarowset</a><!-- m -->
|
BASE/39 Write not allowed in MariaDB
|
Hi Mr. Rao,
I am stuck in here.
|
BASE/39 Write not allowed in MariaDB
|
[quote="nageswaragunupudi":14a3cu7b]Rowset:
oRs:SetDefault( field, uValue, lReadOnly ) // default lReadOnly is .t.[/quote:14a3cu7b]
Hi Mr. Rao,
Is it valid for TDataRow class?
|
BASE/39 Write not allowed in MariaDB
|
There is a similar method in TDataRow also.
But it should be enough if you set default in the rowset class.
|
BASE/39 Write not allowed in MariaDB
|
[quote="nageswaragunupudi":ukzhx1i3]There is a similar method in TDataRow also.
But it should be enough if you set default in the rowset class.[/quote:ukzhx1i3]
Hi Mr. Rao,
I have a procedure for every table to set defaults (not READONLY). I use this procedures for set default both rowset and datarow class object. oRs:Setdefault accept lReadonly parameter, but oRec:SetDefault dont.
Why I use SetDefault function for it. When I enter a new record called from editbaserecord, Save button is should be disabled. I used to assign defaults directly but Save button does not act what I want.
I have changed all my application to use SetDefault.
Is there any lReadOnly parameter in TDataRow? I need .f.
Thanks
|
BASE/39 Write not allowed in MariaDB
|
[quote:2jl8mcl9]Is there any lReadOnly parameter in TDataRow? I need .f.[/quote:2jl8mcl9]
Yes
|
BASE/39 Write not allowed in MariaDB
|
Hi Mr. Rao,
[code=fw:2nnaedol]<div class="fw" id="{CB}" style="font-family: monospace;">oRec:<span style="color: #000000;">SetDefault</span><span style="color: #000000;">(</span><span style="color: #ff0000;">"KRM_TIP"</span>, <span style="color: #ff0000;">"S"</span>, .F.<span style="color: #000000;">)</span></div>[/code:2nnaedol]
This error gives:
[code=fw:2nnaedol]<div class="fw" id="{CB}" style="font-family: monospace;">Application<br />===========<br /> Path and <span style="color: #0000ff;">name</span>: <span style="color: #000000;">C</span>:\PrgW_SQL\Icra\IcraW.exe <span style="color: #000000;">(</span><span style="color: #000000;">32</span> bits<span style="color: #000000;">)</span><br /> <span style="color: #0000ff;">Size</span>: <span style="color: #000000;">*********</span> bytes<br /> Compiler version: <span style="color: #000000;">Harbour</span> <span style="color: #000000;">3.2</span>.0dev <span style="color: #000000;">(</span>r1904111533<span style="color: #000000;">)</span><br /> FiveWin version: <span style="color: #000000;">FWH</span> <span style="color: #000000;">20.04</span><br /> C compiler version: <span style="color: #000000;">Microsoft</span> Visual C++ <span style="color: #000000;">19.20</span><span style="color: #000000;">.27508</span> <span style="color: #000000;">(</span><span style="color: #000000;">32</span>-bit<span style="color: #000000;">)</span><br /> Windows version: <span style="color: #000000;">6.2</span>, Build <span style="color: #000000;">9200</span> <br /><br /> Time <span style="color: #0000ff;">from</span> start: <span style="color: #000000;">0</span> hours <span style="color: #000000;">0</span> mins <span style="color: #000000;">15</span> secs <br /> Error occurred <span style="color: #00C800;">at</span>: <span style="color: #000000;">02</span>/<span style="color: #000000;">06</span>/<span style="color: #000000;">2020</span>, <span style="color: #000000;">12</span>:<span style="color: #000000;">34</span>:<span style="color: #000000;">00</span><br /> Error description: <span style="color: #000000;">Error</span> BASE/<span style="color: #000000;">39</span> Write not allowed: <span style="color: #000000;">TDATAROW</span>:<span style="color: #000000;">KRM_TIP</span><br /> Args:<br /> <span style="color: #000000;">[</span> <span style="color: #000000;">1</span><span style="color: #000000;">]</span> = O TDATAROW<br /><br />Stack Calls<br />===========<br /> Called <span style="color: #0000ff;">from</span>: => __ERRRT_SBASE<span style="color: #000000;">(</span> <span style="color: #000000;">0</span> <span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: ../../../tobject.prg => TDATAROW:<span style="color: #000000;">ERROR</span><span style="color: #000000;">(</span> <span style="color: #000000;">0</span> <span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: .\source\classes\DATAROW.PRG => TDATAROW:<span style="color: #000000;">FIELDPUT</span><span style="color: #000000;">(</span> <span style="color: #000000;">643</span> <span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: .\source\classes\DATAROW.PRG => TDATAROW:_KRM_TIP<span style="color: #000000;">(</span> <span style="color: #000000;">2390</span> <span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: .\Borc.prg => <span style="color: #000000;">(</span>b<span style="color: #000000;">)</span>GET_BORC<span style="color: #000000;">(</span> <span style="color: #000000;">138</span> <span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: .\dbcombo.prg => TDBCOMBO:<span style="color: #000000;">LOSTFOCUS</span><span style="color: #000000;">(</span> <span style="color: #000000;">404</span> <span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: .\source\classes\CONTROL.PRG => TDBCOMBO:<span style="color: #000000;">KILLFOCUS</span><span style="color: #000000;">(</span> <span style="color: #000000;">1150</span> <span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: .\source\classes\CONTROL.PRG => TCONTROL:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">(</span> <span style="color: #000000;">1790</span> <span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: .\source\classes\<span style="color: #0000ff;">COMBOBOX</span>.PRG => TDBCOMBO:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">(</span> <span style="color: #000000;">923</span> <span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: .\source\classes\<span style="color: #0000ff;">WINDOW</span>.PRG => _FWH<span style="color: #000000;">(</span> <span style="color: #000000;">3559</span> <span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: => DIALOGBOXINDIRECTW<span style="color: #000000;">(</span> <span style="color: #000000;">0</span> <span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: .\source\classes\<span style="color: #0000ff;">DIALOG</span>.PRG => TDIALOG:<span style="color: #0000ff;">ACTIVATE</span><span style="color: #000000;">(</span> <span style="color: #000000;">304</span> <span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: .\source\<span style="color: #00C800;">function</span>\ERRSYSW.PRG => ERRORDIALOG<span style="color: #000000;">(</span> <span style="color: #000000;">448</span> <span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: .\source\<span style="color: #00C800;">function</span>\ERRSYSW.PRG => <span style="color: #000000;">(</span>b<span style="color: #000000;">)</span>ERRORSYS<span style="color: #000000;">(</span> <span style="color: #000000;">24</span> <span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: => __ERRRT_SBASE<span style="color: #000000;">(</span> <span style="color: #000000;">0</span> <span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: ../../../tobject.prg => TDATAROW:<span style="color: #000000;">ERROR</span><span style="color: #000000;">(</span> <span style="color: #000000;">0</span> <span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: .\source\classes\DATAROW.PRG => TDATAROW:<span style="color: #000000;">FIELDPUT</span><span style="color: #000000;">(</span> <span style="color: #000000;">643</span> <span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: .\source\classes\DATAROW.PRG => TDATAROW:_UY_8<span style="color: #000000;">(</span> <span style="color: #000000;">2390</span> <span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: .\Borc.prg => <span style="color: #000000;">(</span>b<span style="color: #000000;">)</span>GET_BORC<span style="color: #000000;">(</span> <span style="color: #000000;">238</span> <span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: .\source\classes\<span style="color: #0000ff;">COMBOBOX</span>.PRG => TCOMBOBOX:<span style="color: #000000;">SET</span><span style="color: #000000;">(</span> <span style="color: #000000;">626</span> <span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: .\source\classes\<span style="color: #0000ff;">COMBOBOX</span>.PRG => TCOMBOBOX:<span style="color: #00C800;">DEFAULT</span><span style="color: #000000;">(</span> <span style="color: #000000;">1035</span> <span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: .\source\classes\<span style="color: #0000ff;">COMBOBOX</span>.PRG => TCOMBOBOX:<span style="color: #000000;">INITIATE</span><span style="color: #000000;">(</span> <span style="color: #000000;">950</span> <span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: => __OBJSENDMSG<span style="color: #000000;">(</span> <span style="color: #000000;">0</span> <span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: .\source\<span style="color: #00C800;">function</span>\HARBOUR.PRG => OSEND<span style="color: #000000;">(</span> <span style="color: #000000;">291</span> <span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: .\source\<span style="color: #00C800;">function</span>\HARBOUR.PRG => ASEND<span style="color: #000000;">(</span> <span style="color: #000000;">259</span> <span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: .\source\classes\<span style="color: #0000ff;">DIALOG</span>.PRG => TDIALOG:<span style="color: #000000;">INITIATE</span><span style="color: #000000;">(</span> <span style="color: #000000;">805</span> <span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: .\source\classes\<span style="color: #0000ff;">DIALOG</span>.PRG => TDIALOG:<span style="color: #0000ff;">ACTIVATE</span><span style="color: #000000;">(</span> <span style="color: #000000;">330</span> <span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: .\source\classes\TFOLDEX.PRG => TFOLDEREX:<span style="color: #00C800;">DEFAULT</span><span style="color: #000000;">(</span> <span style="color: #000000;">849</span> <span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: .\source\classes\TFOLDEX.PRG => TFOLDEREX:<span style="color: #000000;">INITIATE</span><span style="color: #000000;">(</span> <span style="color: #000000;">1047</span> <span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: => __OBJSENDMSG<span style="color: #000000;">(</span> <span style="color: #000000;">0</span> <span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: .\source\<span style="color: #00C800;">function</span>\HARBOUR.PRG => OSEND<span style="color: #000000;">(</span> <span style="color: #000000;">291</span> <span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: .\source\<span style="color: #00C800;">function</span>\HARBOUR.PRG => ASEND<span style="color: #000000;">(</span> <span style="color: #000000;">259</span> <span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: .\source\classes\<span style="color: #0000ff;">DIALOG</span>.PRG => TDIALOG:<span style="color: #000000;">INITIATE</span><span style="color: #000000;">(</span> <span style="color: #000000;">805</span> <span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: .\source\classes\<span style="color: #0000ff;">DIALOG</span>.PRG => TDIALOG:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">(</span> <span style="color: #000000;">1120</span> <span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: => DIALOGBOXINDIRECTW<span style="color: #000000;">(</span> <span style="color: #000000;">0</span> <span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: .\source\classes\<span style="color: #0000ff;">DIALOG</span>.PRG => TDIALOG:<span style="color: #0000ff;">ACTIVATE</span><span style="color: #000000;">(</span> <span style="color: #000000;">304</span> <span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: .\TOb_Browse1_SQL.prg => TYK_DETAY_SQL:<span style="color: #0000ff;">ACTIVATE</span><span style="color: #000000;">(</span> <span style="color: #000000;">1844</span> <span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: .\TOb_Browse2_SQL.prg => TYK_DLIST_SQL:<span style="color: #000000;">GO_DDETAYS_EKLE</span><span style="color: #000000;">(</span> <span style="color: #000000;">710</span> <span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: .\TOb_Browse2_SQL.prg => <span style="color: #000000;">(</span>b<span style="color: #000000;">)</span>TYK_DLIST_SQL_GO_DDETAY_EKLE<span style="color: #000000;">(</span> <span style="color: #000000;">657</span> <span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: .\source\classes\DATAROW.PRG => TDATAROW:<span style="color: #00C800;">EDIT</span><span style="color: #000000;">(</span> <span style="color: #000000;">1886</span> <span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: .\source\internal\FWMARIA.PRG => FWMARIAROWSET:<span style="color: #000000;">EDITBASERECORD</span><span style="color: #000000;">(</span> <span style="color: #000000;">4919</span> <span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: .\TOb_Browse2_SQL.prg => TYK_DLIST_SQL:<span style="color: #000000;">GO_DDETAY_EKLE</span><span style="color: #000000;">(</span> <span style="color: #000000;">657</span> <span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: .\TOb_Browse2_SQL.prg => <span style="color: #000000;">(</span>b<span style="color: #000000;">)</span>TYK_DLIST_SQL_NEW<span style="color: #000000;">(</span> <span style="color: #000000;">490</span> <span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: .\source\classes\<span style="color: #0000ff;">BTNBMP</span>.PRG => TBTNBMP:<span style="color: #0000ff;">CLICK</span><span style="color: #000000;">(</span> <span style="color: #000000;">705</span> <span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: .\source\classes\<span style="color: #0000ff;">BTNBMP</span>.PRG => TBTNBMP:<span style="color: #000000;">LBUTTONUP</span><span style="color: #000000;">(</span> <span style="color: #000000;">991</span> <span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: .\source\classes\CONTROL.PRG => TCONTROL:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">(</span> <span style="color: #000000;">1817</span> <span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: .\source\classes\<span style="color: #0000ff;">BTNBMP</span>.PRG => TBTNBMP:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">(</span> <span style="color: #000000;">2043</span> <span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: .\source\classes\<span style="color: #0000ff;">WINDOW</span>.PRG => _FWH<span style="color: #000000;">(</span> <span style="color: #000000;">3559</span> <span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: => DIALOGBOXINDIRECTW<span style="color: #000000;">(</span> <span style="color: #000000;">0</span> <span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: .\source\classes\<span style="color: #0000ff;">DIALOG</span>.PRG => TDIALOG:<span style="color: #0000ff;">ACTIVATE</span><span style="color: #000000;">(</span> <span style="color: #000000;">304</span> <span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: .\TOb_Browse1_SQL.prg => TYK_DETAY_SQL:<span style="color: #0000ff;">ACTIVATE</span><span style="color: #000000;">(</span> <span style="color: #000000;">1844</span> <span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: .\TOb_Browse1_SQL.prg => TYK_LIST_SQL:<span style="color: #000000;">GO_DETAYS</span><span style="color: #000000;">(</span> <span style="color: #000000;">914</span> <span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: .\TOb_Browse1_SQL.prg => <span style="color: #000000;">(</span>b<span style="color: #000000;">)</span>TYK_LIST_SQL_GO_DETAY<span style="color: #000000;">(</span> <span style="color: #000000;">876</span> <span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: .\source\classes\DATAROW.PRG => TDATAROW:<span style="color: #00C800;">EDIT</span><span style="color: #000000;">(</span> <span style="color: #000000;">1886</span> <span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: .\source\internal\FWMARIA.PRG => FWMARIAROWSET:<span style="color: #000000;">EDITBASERECORD</span><span style="color: #000000;">(</span> <span style="color: #000000;">4919</span> <span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: .\TOb_Browse1_SQL.prg => TYK_LIST_SQL:<span style="color: #000000;">GO_DETAY</span><span style="color: #000000;">(</span> <span style="color: #000000;">876</span> <span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: .\TOb_Browse1_SQL.prg => <span style="color: #000000;">(</span>b<span style="color: #000000;">)</span>TYK_LIST_SQL_NEW<span style="color: #000000;">(</span> <span style="color: #000000;">494</span> <span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: .\source\classes\<span style="color: #0000ff;">BTNBMP</span>.PRG => TBTNBMP:<span style="color: #0000ff;">CLICK</span><span style="color: #000000;">(</span> <span style="color: #000000;">705</span> <span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: .\source\classes\<span style="color: #0000ff;">BTNBMP</span>.PRG => TBTNBMP:<span style="color: #000000;">LBUTTONUP</span><span style="color: #000000;">(</span> <span style="color: #000000;">991</span> <span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: .\source\classes\CONTROL.PRG => TCONTROL:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">(</span> <span style="color: #000000;">1817</span> <span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: .\source\classes\<span style="color: #0000ff;">BTNBMP</span>.PRG => TBTNBMP:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">(</span> <span style="color: #000000;">2043</span> <span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: .\source\classes\<span style="color: #0000ff;">WINDOW</span>.PRG => _FWH<span style="color: #000000;">(</span> <span style="color: #000000;">3559</span> <span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: => DIALOGBOXINDIRECTW<span style="color: #000000;">(</span> <span style="color: #000000;">0</span> <span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: .\source\classes\<span style="color: #0000ff;">DIALOG</span>.PRG => TDIALOG:<span style="color: #0000ff;">ACTIVATE</span><span style="color: #000000;">(</span> <span style="color: #000000;">304</span> <span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: .\TOb_Browse1_SQL.prg => TYK_LIST_SQL:<span style="color: #00C800;">NEW</span><span style="color: #000000;">(</span> <span style="color: #000000;">552</span> <span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: .\IcraKart.prg => ICRAKART<span style="color: #000000;">(</span> <span style="color: #000000;">156</span> <span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: .\Master.prg => <span style="color: #000000;">(</span>b<span style="color: #000000;">)</span>DEFINE_RIBBON<span style="color: #000000;">(</span> <span style="color: #000000;">2096</span> <span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: .\source\classes\TRBTN.PRG => TRBTN:<span style="color: #0000ff;">CLICK</span><span style="color: #000000;">(</span> <span style="color: #000000;">717</span> <span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: .\source\classes\TRBTN.PRG => TRBTN:<span style="color: #000000;">LBUTTONUP</span><span style="color: #000000;">(</span> <span style="color: #000000;">920</span> <span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: .\source\classes\CONTROL.PRG => TCONTROL:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">(</span> <span style="color: #000000;">1817</span> <span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: .\source\classes\TRBTN.PRG => TRBTN:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">(</span> <span style="color: #000000;">1578</span> <span style="color: #000000;">)</span><br /> Called <span style="color: #0000ff;">from</span>: .\source\classes\<span style="color: #0000ff;">WINDOW</span>.PRG => _FWH<span style="color: #000000;">(</span> <span style="color: #000000;">3559</span> <span style="color: #000000;">)</span><br /><br />System<br />======<br /> CPU type: <span style="color: #000000;">Intel</span><span style="color: #000000;">(</span>R<span style="color: #000000;">)</span> Core<span style="color: #000000;">(</span>TM<span style="color: #000000;">)</span> i7-8750H CPU @ <span style="color: #000000;">2</span>.20GHz <span style="color: #000000;">2208</span> Mhz<br /> Hardware memory: <span style="color: #000000;">16268</span> megs<br /><br /> Free System resources: <span style="color: #000000;">90</span> %<br /> GDI resources: <span style="color: #000000;">90</span> %<br /> User resources: <span style="color: #000000;">90</span> %<br /><br /> Windows total applications running: <span style="color: #000000;">4</span><br /> <span style="color: #000000;">1</span> , C:\PrgW_SQL\Icra\IcraW.exe <br /> <span style="color: #000000;">2</span> GDI+ <span style="color: #0000ff;">Window</span> <span style="color: #000000;">(</span>IcraW.exe<span style="color: #000000;">)</span>, C:\WINDOWS\WinSxS\x86_microsoft.windows.gdiplus_6595b64144ccf1df_1<span style="color: #000000;">.1</span><span style="color: #000000;">.19041</span>.264_none_4298d4188a939fa <br /> <span style="color: #000000;">3</span> HideForm, C:\PrgW_SQL\Icra\FrSystH.dll <br /> <span style="color: #000000;">4</span> LOGI_RAWINPUT_WND, <br /><br />Variables in use<br />================<br /> Procedure Type Value<br /> ==========================<br /> __ERRRT_SBASE<br /> Param <span style="color: #000000;">1</span>: O <span style="color: #00C800;">Class</span>: <span style="color: #000000;">ERROR</span><br /> TDATAROW:<span style="color: #000000;">ERROR</span><br /> Param <span style="color: #000000;">1</span>: N <span style="color: #000000;">13</span><br /> Param <span style="color: #000000;">2</span>: N <span style="color: #000000;">39</span><br /> Param <span style="color: #000000;">3</span>: C <span style="color: #ff0000;">"Write not allowed"</span><br /> Param <span style="color: #000000;">4</span>: C <span style="color: #ff0000;">"TDATAROW:KRM_TIP"</span><br /> Param <span style="color: #000000;">5</span>: N <span style="color: #000000;">1</span><br /> Param <span style="color: #000000;">6</span>: O <span style="color: #00C800;">Class</span>: <span style="color: #000000;">TDATAROW</span><br /> <span style="color: #00C800;">Local</span> <span style="color: #000000;">1</span>: U <br /> <span style="color: #00C800;">Local</span> <span style="color: #000000;">2</span>: U <br /> TDATAROW:<span style="color: #000000;">FIELDPUT</span><br /> Param <span style="color: #000000;">1</span>: C <span style="color: #ff0000;">"Write not allowed"</span><br /> Param <span style="color: #000000;">2</span>: C <span style="color: #ff0000;">"TDATAROW"</span><br /> Param <span style="color: #000000;">3</span>: C <span style="color: #ff0000;">"KRM_TIP"</span><br /> Param <span style="color: #000000;">4</span>: N <span style="color: #000000;">39</span><br /> Param <span style="color: #000000;">5</span>: A Len: <span style="color: #000000;">1</span><br /> TDATAROW:_KRM_TIP<br /> Param <span style="color: #000000;">1</span>: N <span style="color: #000000;">80</span><br /> Param <span style="color: #000000;">2</span>: C <span style="color: #ff0000;">"S"</span><br /> <span style="color: #00C800;">Local</span> <span style="color: #000000;">1</span>: N <span style="color: #000000;">80</span><br /> <span style="color: #00C800;">Local</span> <span style="color: #000000;">2</span>: U <br /> <span style="color: #00C800;">Local</span> <span style="color: #000000;">3</span>: U <br /> <span style="color: #000000;">(</span>b<span style="color: #000000;">)</span>GET_BORC<br /> Param <span style="color: #000000;">1</span>: C <span style="color: #ff0000;">"S"</span><br /> <span style="color: #00C800;">Local</span> <span style="color: #000000;">1</span>: L .T.<br /> <span style="color: #00C800;">Local</span> <span style="color: #000000;">2</span>: L .F.<br /> <span style="color: #00C800;">Local</span> <span style="color: #000000;">3</span>: N <span style="color: #000000;">80</span><br /> <span style="color: #00C800;">Local</span> <span style="color: #000000;">4</span>: C <span style="color: #ff0000;">"S"</span><br /> <span style="color: #00C800;">Local</span> <span style="color: #000000;">5</span>: S <br /> TDBCOMBO:<span style="color: #000000;">LOSTFOCUS</span><br /> Param <span style="color: #000000;">1</span>: C <span style="color: #ff0000;">"S"</span><br /> TDBCOMBO:<span style="color: #000000;">KILLFOCUS</span><br /> Param <span style="color: #000000;">1</span>: N <span style="color: #000000;">267836</span><br /> <span style="color: #00C800;">Local</span> <span style="color: #000000;">1</span>: S <br /> TCONTROL:<span style="color: #000000;">HANDLEEVENT</span><br /> Param <span style="color: #000000;">1</span>: N <span style="color: #000000;">267836</span><br /> <span style="color: #00C800;">Local</span> <span style="color: #000000;">1</span>: U <br /> TDBCOMBO:<span style="color: #000000;">HANDLEEVENT</span><br /> Param <span style="color: #000000;">1</span>: N <span style="color: #000000;">8</span><br /> Param <span style="color: #000000;">2</span>: N <span style="color: #000000;">267836</span><br /> Param <span style="color: #000000;">3</span>: N <span style="color: #000000;">0</span><br /> <span style="color: #00C800;">Local</span> <span style="color: #000000;">1</span>: U <br /> _FWH<br /> Param <span style="color: #000000;">1</span>: N <span style="color: #000000;">8</span><br /> Param <span style="color: #000000;">2</span>: N <span style="color: #000000;">267836</span><br /> Param <span style="color: #000000;">3</span>: N <span style="color: #000000;">0</span><br /> DIALOGBOXINDIRECTW<br /> Param <span style="color: #000000;">1</span>: N <span style="color: #000000;">0</span><br /> Param <span style="color: #000000;">2</span>: N <span style="color: #000000;">8</span><br /> Param <span style="color: #000000;">3</span>: N <span style="color: #000000;">267836</span><br /> Param <span style="color: #000000;">4</span>: N <span style="color: #000000;">0</span><br /> Param <span style="color: #000000;">5</span>: N <span style="color: #000000;">1050</span><br /> <span style="color: #00C800;">Local</span> <span style="color: #000000;">1</span>: O <span style="color: #00C800;">Class</span>: <span style="color: #000000;">TDBCOMBO</span><br /> TDIALOG:<span style="color: #0000ff;">ACTIVATE</span><br /> Param <span style="color: #000000;">1</span>: N <span style="color: #000000;">655360</span><br /> Param <span style="color: #000000;">2</span>: C <span style="color: #ff0000;">"€ È€ ¾ÿâ ° F i v e W i n f o r H a r b o u r P 4 u µS T A T I C E r r o r d e s c r i p t i o n : E r r o r B A S E / 3 9 W r i t e n o t a l l o w e d : T D A T A R O W : U Y _ 8 <br /> <br /> P H ¶S T A T I C & S t a c k L i s t ¡P ! Ü { ·L I S T B O X P a ? ¸B U T T O N & Q u i t P ¯ / ¹B U T T O N S e e e r r o r . l o g f i l e "</span><br /> Param <span style="color: #000000;">3</span>: N <span style="color: #000000;">398206</span><br /> Param <span style="color: #000000;">4</span>: O <span style="color: #00C800;">Class</span>: <span style="color: #000000;">TDIALOG</span><br /> ERRORDIALOG<br /> Param <span style="color: #000000;">1</span>: U <br /> Param <span style="color: #000000;">2</span>: U <br /> Param <span style="color: #000000;">3</span>: B <span style="color: #000000;">{</span>|| ... <span style="color: #000000;">}</span><br /> Param <span style="color: #000000;">4</span>: L .T.<br /> Param <span style="color: #000000;">5</span>: U <br /> Param <span style="color: #000000;">6</span>: L .T.<br /> Param <span style="color: #000000;">7</span>: U <br /> Param <span style="color: #000000;">8</span>: U <br /> Param <span style="color: #000000;">9</span>: U <br /> Param <span style="color: #000000;">10</span>: U <br /> Param <span style="color: #000000;">11</span>: U <br /> Param <span style="color: #000000;">12</span>: L .F.<br /> Param <span style="color: #000000;">13</span>: O <span style="color: #00C800;">Class</span>: <span style="color: #000000;">TDIALOG</span><br /> Param <span style="color: #000000;">14</span>: U <br /> <span style="color: #00C800;">Local</span> <span style="color: #000000;">1</span>: N <span style="color: #000000;">398206</span><br /> <span style="color: #00C800;">Local</span> <span style="color: #000000;">2</span>: S <br /> <span style="color: #00C800;">Local</span> <span style="color: #000000;">3</span>: O <span style="color: #00C800;">Class</span>: <span style="color: #000000;">TDIALOG</span><br /> <span style="color: #000000;">(</span>b<span style="color: #000000;">)</span>ERRORSYS<br /> Param <span style="color: #000000;">1</span>: O <span style="color: #00C800;">Class</span>: <span style="color: #000000;">ERROR</span><br /> <span style="color: #00C800;">Local</span> <span style="color: #000000;">1</span>: O <span style="color: #00C800;">Class</span>: <span style="color: #000000;">TDIALOG</span><br /> <span style="color: #00C800;">Local</span> <span style="color: #000000;">2</span>: O <span style="color: #00C800;">Class</span>: <span style="color: #000000;">TLISTBOX</span><br /> <span style="color: #00C800;">Local</span> <span style="color: #000000;">3</span>: U <br /> <span style="color: #00C800;">Local</span> <span style="color: #000000;">4</span>: U <br /> <span style="color: #00C800;">Local</span> <span style="color: #000000;">5</span>: C <span style="color: #ff0000;">" Called from: => __ERRRT_SBASE( 0 )"</span><br /> <span style="color: #00C800;">Local</span> <span style="color: #000000;">6</span>: N <span style="color: #000000;">9</span><br /> <span style="color: #00C800;">Local</span> <span style="color: #000000;">7</span>: C <span style="color: #ff0000;">" Error description: Error BASE/39 Write not allowed: TDATAROW:UY_8<br />"</span><br /> <span style="color: #00C800;">Local</span> <span style="color: #000000;">8</span>: A Len: <span style="color: #000000;">62</span><br /> <span style="color: #00C800;">Local</span> <span style="color: #000000;">9</span>: O <span style="color: #00C800;">Class</span>: <span style="color: #000000;">TSAY</span><br /> <span style="color: #00C800;">Local</span> <span style="color: #000000;">10</span>: N <span style="color: #000000;">402987703</span><br /> <span style="color: #00C800;">Local</span> <span style="color: #000000;">11</span>: N <span style="color: #000000;">1</span><br /> <span style="color: #00C800;">Local</span> <span style="color: #000000;">12</span>: C <span style="color: #ff0000;">"Application</span></div>[/code:2nnaedol]
|
BASE/39 Write not allowed in MariaDB
|
I will check this.
|
BASE/39 Write not allowed in MariaDB
|
waiting ...
|
BASE/39 Write not allowed in MariaDB
|
Syntax for SetDefault in TDataRow class
[code=fw:2y9id1h8]<div class="fw" id="{CB}" style="font-family: monospace;">SetDefault<span style="color: #000000;">(</span> ncField, uDefault, lCanModify <span style="color: #000000;">)</span></div>[/code:2y9id1h8]
If the 3rd parameter is true, then user can modify.
It is false then user can not modify.
|
BASE/39 Write not allowed in MariaDB
|
[quote="nageswaragunupudi":35aw6vzz]Syntax for SetDefault in TDataRow class
[code=fw:35aw6vzz]<div class="fw" id="{CB}" style="font-family: monospace;">SetDefault<span style="color: #000000;">(</span> ncField, uDefault, lCanModify <span style="color: #000000;">)</span></div>[/code:35aw6vzz]
If the 3rd parameter is true, then user can modify.
It is false then user can not modify.[/quote:35aw6vzz]
So you say the opposite is working with rowset.
|
BASE/39 Write not allowed in MariaDB
|
[quote:3usi1yws]So you say the opposite is working with rowset.
[/quote:3usi1yws]
Yes.
|
BASE/39 Write not allowed in MariaDB
|
Buenas noches
Tengo una tabla con la siguiente estructura en un campo:
[code=fw:1h8ywu33]<div class="fw" id="{CB}" style="font-family: monospace;">id_categ TINYINT<span style="color: #000000;">(</span><span style="color: #000000;">2</span><span style="color: #000000;">)</span> UNSIGNED ZEROFILL NOT <span style="color: #00C800;">NULL</span></div>[/code:1h8ywu33]
He importado datos desde una hoja Excel y guardado los valores correspondientes, a este y otros campos, sin problemas.
Proceso que hago mediante oCn:Execute(...)
Ahora bien cuando Edito un registro mediante TDataRow() donde previo a modficarlo hago:
[code=fw:1h8ywu33]<div class="fw" id="{CB}" style="font-family: monospace;">oPlayer:<span style="color: #000000;">SetDefault</span><span style="color: #000000;">(</span> <span style="color: #000000;">3</span>, <span style="color: #000000;">0</span>, <span style="color: #00C800;">TRUE</span> <span style="color: #000000;">)</span><br />? <span style="color: #ff0000;">"Prueba"</span>, oPlayer:<span style="color: #000000;">id_categ</span>:= <span style="color: #000000;">22</span></div>[/code:1h8ywu33]
Entonces recibo el siguiente error
[quote:1h8ywu33] Error occurred at: 17/09/2020, 22:33:01
Error description: Error BASE/39 Escritura no autorizada: TDATAROW:id_categ
Args:
[ 1] = O TDATAROW
[/quote:1h8ywu33]
Cual es el problema?
|
BASE/39 Write not allowed in MariaDB
|
Por favor!
Como lo soluciono?... no puedo avanzar!
muchas gracias
|
BASE/39 Write not allowed in MariaDB
|
[quote="Horizon":2iav08gv]Hi,
I think I found my mistake.
in oTb_YAPILAN:D_BOS(YENIKAYIT)
[code=fw:2iav08gv]<div class="fw" id="{CB}" style="font-family: monospace;"> oRec:<span style="color: #000000;">SetDefault</span><span style="color: #000000;">(</span><span style="color: #ff0000;">"YPL_BNK1"</span>, <span style="color: #000000;">3</span><span style="color: #000000;">)</span><br /> </div>[/code:2iav08gv]
This procedure set my default variables to table fieldnames. I thought SetDefault is valid for FWMARIAROWSET like TDATAROW.
SetDefault also sets the fieldname as a readonly variable in FWMARIAROWSET Class.
Mr Rao. Can you confirm me? If it is I should change lots of lines in my application.
Edit :
[code=fw:2iav08gv]<div class="fw" id="{CB}" style="font-family: monospace;"> oRec:<span style="color: #000000;">SetDefault</span><span style="color: #000000;">(</span><span style="color: #ff0000;">"YPL_BNK1"</span>, <span style="color: #000000;">3</span>, .F.<span style="color: #000000;">)</span></div>[/code:2iav08gv]
I have changed to SetDefault like above and problem is solved. Mr. Rao, Can you confirm it?
Thanks.[/quote:2iav08gv]
Hello
I've the same problem!
is it the same coincidense? My field is in de 3rd position too
This is
[quote:2iav08gv]id_categ TINYINT(2) UNSIGNED ZEROFILL NOT NULL[/quote:2iav08gv]
I do this, before Edit, but the error repeat:
[code=fw:2iav08gv]<div class="fw" id="{CB}" style="font-family: monospace;">oQryPly:<span style="color: #000000;">SetDefault</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"id_categ"</span>, <span style="color: #000000;">3</span>, <span style="color: #00C800;">FALSE</span> <span style="color: #000000;">)</span>, ;<br />oPlayer := TDataRow<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">(</span> oQryPly <span style="color: #000000;">)</span>, ::<span style="color: #000000;">AgrEditaPlayer</span><span style="color: #000000;">(</span> oPlayer, oBrw, nPosFld, oQryPly</div>[/code:2iav08gv]
Please, what can a I do? I Can't continius
many thanks
|
BAT de compilação para FWH + HARBOUR + MSVC
|
Olá Antonio,
Você teria o fluxo para gerar a lib do fivewin usando FWH + HARBOUR + MSVC ?
|
BAT de compilação para FWH + HARBOUR + MSVC
|
Rossine,
Puedes modificar este simple BAT para que use MSVC:
[code=fw:2f436l34]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">for</span> %%f in <span style="color: #000000;">(</span>*.prg<span style="color: #000000;">)</span> <span style="color: #00C800;">do</span> c:\harbour\bin\harbour %%f /n /ic:\fwh\include;c:\harbour\include <br /><span style="color: #00C800;">for</span> %%f in <span style="color: #000000;">(</span>*.c<span style="color: #000000;">)</span> <span style="color: #00C800;">do</span> c:\bcc55\bin\bcc32 -c -Ic:\bcc55\include;c:\harbour\include %%f <br /><span style="color: #00C800;">for</span> %%f in <span style="color: #000000;">(</span>*.obj<span style="color: #000000;">)</span> <span style="color: #00C800;">do</span> c:\bcc55\bin\tlib fiveh.lib -+ %%f /<span style="color: #000000;">0</span> /P32,,<br /> </div>[/code:2f436l34]
y ejecutarlo desde FWH\source\classes, FWH\source\function y FWH\source\winapi
|
BAT de compilação para FWH + HARBOUR + MSVC
|
Rossine,
Mira como Kleyber esta modificando el BAT:
<!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=6&t=14669&p=76500#p76499">viewtopic.php?f=6&t=14669&p=76500#p76499</a><!-- l -->
|
BAT para Recompilar FWH802 com xHB1.21
|
Sr. Antonio,
Gostariamos de recompilar fwh8.02 com o novo xharbour 1.2.1, seria possível o Sr, informar a melhor maneira de faze-lo.
Ou seja, é possível o Senhor fornecer um BAT de Compilação?
Muito obrigado
|
BAT para Recompilar FWH802 com xHB1.21
|
Puedes usar HARB2LIB.EXE <!-- m --><a class="postlink" href="http://www.fivewin.com.br/exibedicas.asp?id=582">http://www.fivewin.com.br/exibedicas.asp?id=582</a><!-- m -->
Muchos saludos!
|
BAT para Recompilar FWH802 com xHB1.21
|
Alejandro, obrigado por responder.
Eu já utilizo o harb2lib, mais minha pergunta é, o mesmo já não esta desatualizado?
|
BAT para Recompilar FWH802 com xHB1.21
|
Yo utilice el HARB2LIB.EXE para compilar la FWH 9.04 con la version xHarbour 1.1.0 de abril del 2008 (por usar libs de terceros que no funcionan con las versiones posteriores de xHarbour).
Las aplicaicones me funcionan estables.
Saludos
|
BBCode para Edit - Memo
|
Hola foro,
Me preguntaba... Hay alguna forma de rellenar un EDIT o MEMO con información con BBCode (<b></b> para negrita, <u></u> para subrayado, etc...)?
O de cambiar interactivamente ciertas cosas dentro de un get multilinea?
El usuario final no va a modificar NADA, es solamente para mostrar un conjunto de mensajes. Osea que usar "<b>"+field->nombre+"</b> <i>escribio hace <u>"+ field->horas +"horas:</u> </i>"
Resultado esperado:
[b:213ptfph]Nicolás [/b:213ptfph] [size=50:213ptfph]nuevo[/size:213ptfph] [i:213ptfph]escribio hace [u:213ptfph]3 horas:[/u:213ptfph][/i:213ptfph]
¡Hola Mundo! Este es mi ejemplo
----------------------------------------------------------------------------------------
[b:213ptfph]Pedro[/b:213ptfph] [size=50:213ptfph]nuevo[/size:213ptfph] [i:213ptfph]escribio hace [u:213ptfph]1 hora:[/u:213ptfph][/i:213ptfph]
¡Hola! ¿Como estas?
----------------------------------------------------------------------------------------
|
BBCode para Edit - Memo
|
Puedes plantearte usar un control RICHEDIT, aunque evidentemente tendrías que realizar en la cadena del mensaje un STRTRAN de los tags que te vienen del BBCODE a los tags que utiliza el RICHEDIT.
|
BBCode para Edit - Memo
|
An easy way is the save it as a temporary HTML file and view it as HTML.
Example:
[code=fw:11u812q2]<div class="fw" id="{CB}" style="font-family: monospace;"> <span style="color: #00C800;">local</span> cText := <span style="color: #ff0000;">"Normal <b>Bold text</b> <i>this is italics</i> again normal"</span><br /> <span style="color: #00C800;">local</span> oDlg, oActivex<br /><br /> HB_MEMOWRIT<span style="color: #000000;">(</span> <span style="color: #ff0000;">"temp.html"</span>, <span style="color: #ff0000;">"<html><body>"</span> + cText + <span style="color: #ff0000;">"</body></html>"</span> <span style="color: #000000;">)</span><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;">300</span>,<span style="color: #000000;">300</span> <span style="color: #0000ff;">PIXEL</span> TRUEPIXEL<br /><br /> @ <span style="color: #000000;">20</span>,<span style="color: #000000;">20</span> ACTIVEX oActivex PROGID <span style="color: #ff0000;">"Shell.Explorer.2"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">260</span>,<span style="color: #000000;">260</span> <span style="color: #0000ff;">OF</span> oDlg<br /><br /> oDlg:<span style="color: #000000;">bInit</span> := <span style="color: #000000;">{</span> || oActivex&#<span style="color: #000000;">058</span>;Navigate2<span style="color: #000000;">(</span> TrueName<span style="color: #000000;">(</span> <span style="color: #ff0000;">"temp.html"</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span> <span style="color: #000000;">}</span><br /><br /> <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span><br /> </div>[/code:11u812q2]
[url=https://imageshack.com/i/ponNE29np:11u812q2][img:11u812q2]https://imagizer.imageshack.com/v2/xq90/924/nNE29n.png[/img:11u812q2][/url:11u812q2]
oDlg:bInit := { || oActivex:Navigate2( TrueName( "temp.html" ) ) }
|
BBCode para Edit - Memo
|
Mr Rao.,
Thanks a lot, it's what I'm looking for!
|
BBDD en mysql
|
Estoy pasando una aplicación con bases distribuidas a MySql. Esta aplicación es para la liquidación de sueldos. Cada vez que termina un periodo de liquidación genero un nuevo directorio donde guardo el periodo ya liquidado ( esto es en Dbf´s). Así una empresa al correr del año genera unos 12 directorios. Mi pregunta es la siguiente: Cuantas bases de datos puede soportar el motor ya que tendrìa que crear 12 BBDD por cada año. El programa administra alrededor de 300 empresas, es decir que por año generaria 3600 BBDD en el motor. Esto es posible o es una mala estrategia. Desde ya muchas gracias
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.