Search found 61 matches: ctempfile

Return to advanced search

... as 4 Gb. You will not have any problems managing strings below that limit. > it writes to a diferent file each time You can use FWH function cTempFile( cPath, cExtension ) --> cUniqueFileName
by Antonio Linares
Fri Aug 24, 2007 7:32 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Errsysw
Replies: 8
Views: 1684

Marc,

You have an example of its use at source\classes\printer.prg:

AAdd( ::aMeta, ::cDir + cTempFile( "\", "emf" ) )
::hDCOut := CreateEnhMetaFile( ::hDC, ATail( ::aMeta ), ::cDocument )
by Antonio Linares
Fri Aug 10, 2007 11:56 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: oMeta difference FW & FWH?
Replies: 24
Views: 4634

In source\function\filename.prg change function cTempFile() to return this:

return LFN2SFN( cFileName )


Pardon me if I make the wrong conclusion here, but wouldn't placing lfn2sfn() here would result in cTempfile() to always return a null string since cFileName is yet to be created?
by hua
Wed Jul 18, 2007 4:09 am
 
Forum: FiveWin for CA-Clipper
Topic: TEMP variable
Replies: 13
Views: 5499

In source\function\filename.prg change function cTempFile() to return this:

return LFN2SFN( cFileName )
by Antonio Linares
Tue Jul 17, 2007 6:38 am
 
Forum: FiveWin for CA-Clipper
Topic: TEMP variable
Replies: 13
Views: 5499

George,
yo he probado asi y me funciona

cFile := cTempFile()+"bmp"
IF oGraph:nType == 3 .OR. ( oGraph:nType == 2 .AND. !oGraph:l3D )
oGraph:Save2Bmp(cFile,0)
nOpt := 0
ENDIF

probe con barras,lineas,puntos y pie
salu2
paco
by Francisco Horta
Fri Jun 15, 2007 8:25 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Clase tGraph
Replies: 10
Views: 2117

Otto,

You can use:

AAdd( ::aMeta, ::cDir + cTempFile( "\", "wmf" ) )
by Antonio Linares
Mon Mar 12, 2007 8:39 pm
 
Forum: FiveWin for CA-Clipper
Topic: PREVIEW PROBLEM
Replies: 5
Views: 2182

Yes, you are right. It should be for the FW forum. I had a look into FWH code and I saw that FWH does it with cTempFile(). So the problem does not exist anymore. AAdd( ::aMeta, ::cDir + cTempFile( "\", "wmf" ) ) It is time for me to say goodby to clipper - as I still use 1.9 (rock ...
by Otto
Sat Jan 06, 2007 4:17 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: PRINTER CLASS
Replies: 3
Views: 924

Gale, >So the mods to filename.prg could be made without the static but handle the issues concerning cTempFile and numeric filename and/or cNewFileName() and paths.< Agreed. I have been using my own tempfile() function for many years. It has leading characters in the ...
by James Bott
Wed May 31, 2006 6:27 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: cTempFile() -> bad alias
Replies: 4
Views: 1375

... use cNewFileName() but it does not handle paths. So the mods to filename.prg could be made without the static but handle the issues concerning cTempFile and numeric filename and/or cNewFileName() and paths. Thanks, Gale
by Gale FORd
Wed May 31, 2006 6:12 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: cTempFile() -> bad alias
Replies: 4
Views: 1375

... open 3 or more you still have the same problem. I think it is best to open each file before getting a new filename. I suppose you could force the cTempFile() to wait one second at the end. This way you couldn't get the same filename for another 24hrs. Or, you could just wait one second between ...
by James Bott
Wed May 31, 2006 4:41 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: cTempFile() -> bad alias
Replies: 4
Views: 1375

cTempFile() -> bad alias

if you use cTempFile( cPath, 'DBF') to create temporary dbf file then the all numeric tempfile will cause an "illegal characters in alias" error when used. I would use cNewFileName() but I need to create temp file using path. Also ...
by Gale FORd
Wed May 31, 2006 3:59 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: cTempFile() -> bad alias
Replies: 4
Views: 1375

... de ayuda "?" cuando hacemos: ACTIVATE DIALOG oDlg ON INIT oDlg:lHelpIcon := .f. * Mejora: Se ha mejorado muchísimo la velocidad de la función cTempFile(). Esta función se usa ahora desde la previsualización de la impresión, así que la construcción de las páginas es mucho más rápida ahora. ...
by Antonio Linares
Sun May 21, 2006 8:15 am
 
Forum: WhatsNew / Novedades
Topic: FTDN new May 2006 build / nuevo build de Mayo 2006
Replies: 1
Views: 2801

FTDN new May 2006 build / nuevo build de Mayo 2006

... fix on Class TDialog to avoid to show the "?" help button when doing: ACTIVATE DIALOG oDlg ON INIT oDlg:lHelpIcon := .f. * Enhancement: function cTempFile() has been greatly improved in speed. This function is now used from the printing preview, so building the pages is much faster now. * Enhancement: ...
by Antonio Linares
Fri May 19, 2006 11:41 am
 
Forum: WhatsNew / Novedades
Topic: FTDN new May 2006 build / nuevo build de Mayo 2006
Replies: 1
Views: 2801

Evans, Please change cTempFile() function source code as explained here: http://fivetechsoft.com/forums/viewtopic.php?t=2596&highlight=ctempfile Antonio, Thanks for the advise, which is excellent, however, I have already developed ...
by E. Bartzokas
Mon May 01, 2006 9:57 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Delay in PREVIEW dialog in REPORT.PRG
Replies: 5
Views: 1179

Evans,

Please change cTempFile() function source code as explained here:
http://fivetechsoft.com/forums/viewtopi ... =ctempfile
by Antonio Linares
Mon May 01, 2006 7:56 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Delay in PREVIEW dialog in REPORT.PRG
Replies: 5
Views: 1179
PreviousNext

Return to advanced search