Search found 97 matches: cdir

Return to advanced search

Re: erase files

ecco dov'era l'errore il parametro D static Function Cancella_Archivi(cDir) local adir := DIRECTORY(cDir+ "*.*" ) local i,cFile FOR i = 1 to LEN( aDir ) cFILE := ALLTRIM( aDIR[i][1] ) IF FErase(cDir+cFile ) != 0 Msginfo( FERROR() ,cfile) endif NEXT ...
by Silvio.Falconi
Fri Jan 26, 2024 11:13 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: erase files - Resolved!!
Replies: 20
Views: 1517

Re: erase files

la sintassi : aDir := DIRECTORY(cDir+ "*.*", "D" ) include nell'array anche i "." e ".." aDIR[1,1] = "." aDIR[2,1] = ".." se usi : aDir := DIRECTORY(cDir+ "*.*" ) , non ...
by solving
Fri Jan 26, 2024 10:42 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: erase files - Resolved!!
Replies: 20
Views: 1517

Re: Function Hb_DirExists() no permite File() ubique los archivo

... consola y si ubica el archivo dentro de la carpeta de samples #include "fileio.ch" #define CRLF Chr(13)+Chr(10) FUNCTION Main() LOCAL cDir := "C:\Program Files" IF HB_DirExists(cDir) ?cDir + CRLF + CRLF + If(IsDirWritable(cDir), "You can write in this directory.", ...
by CARLOS ATUNCAR
Thu Nov 02, 2023 3:45 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Function Hb_DirExists() no permite File() ubique los archivo
Replies: 14
Views: 675

Re: Problems with Preview

Hi Antonio, Both the TEMP and TMP variables were a strange folder that doesn't even exist and that was also the oprinter:cdir folder. So I created my own temp folder and changed oprinter:cdir to that folder. When running your sample code 2 emf files appeared in that folder, but when ...
by dtussman
Sat Nov 12, 2022 1:39 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Problems with Preview
Replies: 14
Views: 810

Re: Problems with Preview

... check these values remotely: MsgInfo( GetEnv( "TEMP" ) ) MsgInfo( GetEnv( "TMP" ) ) MsgInfo( GetWinDir() ) MsgInfo( oPrinter:cDir ) will tell you which one is in use as this is the code where the preview sets the temporary folder:      ::cDir   = GetEnv( "TEMP" ...
by Antonio Linares
Fri Nov 11, 2022 8:22 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Problems with Preview
Replies: 14
Views: 810

Re: Copy structure or create new file dbf

YesterDay I made as I made on Clipper Before i create two Database Create_VirtualeDb(cdir) Create_IntegraleDb(cDir) then oLotto:=TDatabase():Open( , cDir+"lotto", "DBFCDX", .T. ) oLotto:setorder(1) oLotto:Exec( <|| SET FILTER TO ( dFirst <= ...
by Silvio.Falconi
Thu Jun 09, 2022 7:42 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Copy structure or create new file dbf
Replies: 8
Views: 599

Copy structure or create new file dbf

... to create another smaller archive maybe if I had a smaller database the procedures could work better and faster i tried inTdatabase oLotto:CopyTo( cDir+"Integrale") oLotto:CopyTo( cDir+"Virtuale") but this makes a physical copy of the dbf, instead I wanted to create at least ...
by Silvio.Falconi
Tue Jun 07, 2022 11:33 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Copy structure or create new file dbf
Replies: 8
Views: 599

Strange array/ oDbf

... with those created by the dbf and now my statistics functions work the same but I certainly did not understand why oDbf:=TDatabase():Open( , cDir+"lotto", "DBFCDX", .T. ) oDbf:setorder(1) oDbf:gobottom() aData1 := aData1_array() aData2 := aData2_array() ...... ACTIVATE ...
by Silvio.Falconi
Mon May 30, 2022 11:01 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Strange array/ oDbf
Replies: 0
Views: 128

Re: Help with ascan

Function test()   local oDbf   local cDir := ".\data\"   local aData   oDbf:= TDatabase():Open( ,cDir+"demo", "DBFCDX", .T. )   aData := oDbf:DbfToArray()      ? freq(oDbf, 34, 1 ) // Frequency of number 34 ...
by Silvio.Falconi
Fri May 13, 2022 6:51 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Help with ascan
Replies: 16
Views: 914

Re: Help for scrollBar

Found the error oDbf:=TDatabase():Open( , cDir+"dbf", "DBFCDX", .T. ) oDbf:setorder(1) oDbf:gobottom() nFine:= oDbf:recno() oScrollDbf:bPOS = { | nPos | (oDbf:GoTo( nPos ),; oScrollDbf:SetPos( nPos ),; oScrollDbf:refresh(),; ...
by Silvio.Falconi
Mon Apr 18, 2022 3:59 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Help for scrollBar - Resolved -
Replies: 10
Views: 530

Re: duplicate record (tdatarow)

Nages, do you think it is right ? oElementi:= TDatabase():Open( , cDir+"Elementi", "DBFCDX", .T. ) oElementi:setorder(1) oElementi:gotop() //sample for duplicate oElemento:=Editsetup(oElementi,3,oElemento) Function Editsetup(oDbf,nMode,oRec)  ...
by Silvio.Falconi
Sun Jun 06, 2021 7:57 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: duplicate record (tdatarow)
Replies: 3
Views: 552

Problem to save record from array (ArrayToDBF)

... by Nages in yunus.prg even if I didn't understand why it doesn't work and gives me an error I use tdatabase oReservation:=TDatabase():Open( , cDir+"Reserva", "DBFCDX", .T. ) oReservation:setorder(1) oReservation:gotop() oPartres:=TDatabase():Open( , cDir+"ResItems", ...
by Silvio.Falconi
Thu Apr 29, 2021 8:55 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Problem to save record from array (ArrayToDBF)
Replies: 0
Views: 343

Re: perhaps error on tdatabase

::oRooms := TDatabase():Open( nil, cDir+"ROOMS", "DBFCDX", .t. ) ::oRooms:SetOrder( "rooms_id" ) ::oRooms:GoTop() ::oReserva := TDatabase():Open( nil, cDir+"RESERVA", "DBFCDX", .t. ) ::oReserva:SetOrder( ...
by Silvio.Falconi
Mon Apr 05, 2021 1:01 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: perhaps error on tdatabase - resolved
Replies: 5
Views: 692

Re: COMBOBOX HEIGHTGET is not working?

... ] ; [ SELHEIGHT <nSelHt> ] ; [ ITEMHEIGHT <nItmHt> ] ; [ <lw: LISTWIDTH, DROPWIDTH> <nDropW> ] ; [ DIRECTORY <cDir> [ATTRIB <attr>] [SAYDIR <oSayDir> ] ] ; [ OWNERDRAW <uOwnerDraw> ];
by carlos vargas
Tue May 19, 2020 9:08 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: COMBOBOX HEIGHTGET is not working? *Solved*
Replies: 11
Views: 1560

cGetFile

... un fichero de un directorio y no todos los fichero. Estoy intentándolo de la siguiente manera: cGetFile( cNomFich, "Elija el fichero.",1,cDir,.F.,.T.) donde cNomFich es el nombre del fichero completo (incluida extensión) y cDir es el path. En el diálogo me muestra todos los ficheros con ...
by Manuel Valdenebro
Mon Sep 30, 2019 4:45 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: cGetFile
Replies: 4
Views: 578
Next

Return to advanced search