Search found 377 matches: erase

Return to advanced search

Re: erase files

I made Cancella_Archivi(".\data\")  // on Main.prg...return nil Function Cancella_Archivi(cDir)      local adir := DIRECTORY(cDir+ "*.*", "D" )      local i,cFile              FOR i = 1 to LEN( aDir )                    cFILE := ALLTRIM( aDIR[i][1] )                ...
by Silvio.Falconi
Thu Jan 25, 2024 8:51 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: erase files - Resolved!!
Replies: 20
Views: 1545

Re: erase files

In ct lib from harbour exist the function filedelete (you pass file name or File Mask) to delete, example: *.dbf
FileDelete(<cFileMask>,[<nAttributes>])->lDeleted
by carlos vargas
Wed Jan 24, 2024 8:11 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: erase files - Resolved!!
Replies: 20
Views: 1545

Re: erase files

Silvo I create a local folder on the C: drive called c:\dbtmp and that is where I write all my temp files .. when the application starts it creates the folder c:\dbtmp if not alreacy exist then uses aDIr to create an array of all files in c:\dbtmp and I just use a For\Next loop of aDir and ferace th...
by Rick Lipkin
Wed Jan 24, 2024 7:37 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: erase files - Resolved!!
Replies: 20
Views: 1545

Re: erase files

carlos vargas wrote:Recordar que existe una función llamada hb_dbdrop la cual elimina la tabla y sus archivos de índices y memo fil asociados.

gracias, tienes las características y parámetros de esta función? sin embargo ahora parece estar bien con "ferase"
by Silvio.Falconi
Wed Jan 24, 2024 7:04 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: erase files - Resolved!!
Replies: 20
Views: 1545

Re: erase files

Recordar que existe una función llamada hb_dbdrop la cual elimina la tabla y sus archivos de índices y memo file asociados.
hb_dbDrop([<cTable>],[<cIndex>])->Nil
by carlos vargas
Wed Jan 24, 2024 5:30 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: erase files - Resolved!!
Replies: 20
Views: 1545

Re: erase files

Very good mister Nages. Thanks. // C:\FWH\SAMPLES\SILVERA2.PRG#include "FiveWin.ch"#include "fileio.ch"FUNCTION Main()   IF FErase( "test.txt" ) != F_ERROR      ? "File successfully erased"   ELSE   ...
by karinha
Wed Jan 24, 2024 3:04 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: erase files - Resolved!!
Replies: 20
Views: 1545

Re: erase files

The command ERASE <cfile> is preprocessed as FERASE( <cfile> ). This command or function should work (and it works for me) if the file exists and is not in use and can be deleted. If the ERASE command does not really ...
by nageswaragunupudi
Wed Jan 24, 2024 2:44 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: erase files - Resolved!!
Replies: 20
Views: 1545

Re: erase files

FUNCTION Main()    LOCAL DEL_INDICE    //-> Ideia original By Kleyber Derick    DEL_INDICE := DIRECTORY( "*.CDX" )    FOR I = 1 TO LEN( Del_Indice )       FERASE( DEL_INDICE[I][1] &#...
by karinha
Wed Jan 24, 2024 2:26 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: erase files - Resolved!!
Replies: 20
Views: 1545

Re: erase files

// C:\FWH\SAMPLES\SILVERAS.PRG#Include "Fivewin.Ch"#Include "Directry.ch"FUNCTION Main()   LOCAL cDir   cDir := GETCURDIR()   IF SUBS( cDir, LEN( ALLTRIM(cDir ) ) , 1 ) = "\"      cDir...
by karinha
Wed Jan 24, 2024 1:50 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: erase files - Resolved!!
Replies: 20
Views: 1545

erase files - Resolved!!

Each time I open a Exe I Must erase some files I tried with if File( cdir+"cust1.dbf" )      erase cdir+"cust1.dbf"      erase cdir+"cust2.dbf"      erase cdir+"cust3.dbf"      erase cdir+"cust4.dbf"  ...
by Silvio.Falconi
Wed Jan 24, 2024 1:12 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: erase files - Resolved!!
Replies: 20
Views: 1545

Problem with tget numeric

... where I must insert the measure on cm but each time I have problem because the user wrong the digit and must i use the mouse to return on get and erase the data probably picture variable is not set to the best on the dbf I have { "Top", "N", 6, 2 },; { "Left", "N", ...
by Silvio.Falconi
Tue Jan 16, 2024 8:53 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Problem with tget numeric
Replies: 16
Views: 1433

Re: erase a datarow entirely with a single command ?

Thank you Master !
Maurizio Menabue
by mauri.menabue
Fri Jun 02, 2023 11:33 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: erase a datarow entirely with a single command ?
Replies: 2
Views: 221

Re: erase a datarow entirely with a single command ?

Either
Code: Select all  Expand view
::oRsDel:gotop()
  do while .not. ::oRsDel:eof()
      ::oRsDel:delete()
//      ::oRsDel:skip() // remove this line
 enddo
 


OR this is better
Code: Select all  Expand view
oCn:Execute( "DELETE FROM <table> WHERE <cond>" )
by nageswaragunupudi
Fri Jun 02, 2023 4:06 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: erase a datarow entirely with a single command ?
Replies: 2
Views: 221

erase a datarow entirely with a single command ?

hi all is it possible to completely delete a datarow with a single command if so which one?    LOCAL oRsDel AS OBJECT   LOCAL cSql    AS CHARCTER       cSql := ""   cSql += "SELECT *" + " "    cSql +=...
by mauri.menabue
Thu Jun 01, 2023 11:26 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: erase a datarow entirely with a single command ?
Replies: 2
Views: 221

Re: SkinButton() Problem

hi, thx for your Work i have erase these line   C:\PECOMPACT\PEC2 /NB /EMP:Y /TM:Y /CR:Y /MC JIMMYSKI.Exe   C:\XHBBCC74\Lib\png.Lib        + and modify Path than i try HB.BAT and got c:\fwh\0\SKIN2>Set GT=gtgui c:\fwh\0\SKIN2>Set ...
by Jimmy
Tue Apr 18, 2023 12:06 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: SkinButton() Problem
Replies: 19
Views: 961
PreviousNext

Return to advanced search