topic stringlengths 1 63 | text stringlengths 1 577k ⌀ |
|---|---|
CREATE CLASS... | #include "c:\harbour\include\hbclass.ch"
#include "c:\harbour\include\hboo.ch" |
CREATEOBJECT ERRORES | AMIGOS LLAMO A UN OBJETO COM
FUNC SUBIRXML
LOCAL t1
LOCAL objCom := CreateObject( "nsigad_export.CatlTransaction" )
objCom:SetPathApplication("C:\CPSADUAN\NSIGAD")
objCom:SetRuc( "20100009804" )
objCom:SetUsuario( "MODDATOS")
objCom:SetPassword( "moddatos" )
objCom:SetCodigoEnvio( "540D3D995F25" )
strParam5:= "1" ... |
CREATEOBJECT ERRORES | Vladimir,
La clase de objetos OLE "nsigad_export.CatlTransaction" no está instalada ó registrada (regsvr32.exe) en el ordenador
Ese es el error que te está reportando xHarbour |
CREATEOBJECT ERRORES | Me sale el siguiengte error
FIVEWIN FOR HARBOUR GPF ERROR
OLEINVOKE(0)
TOLEAUTO:INVOKE(317)
TOLEAUTO:SETPATHAPPLICATION(613)
BUENO EL ERROR PARTE DE EL LLAMADO AL METODO SetPathApplication POR QUE VOTA GPF
FUNC PRUXML
LOCAL t1
LOCAL objCom := CreateObject( "nsigad_export.CatlTransaction" )
objCom:SetPathApplicati... |
CREATEOBJECT ERRORES | Vladimir,
Probablemente necesitas usar una versión más reciente de xHarbour |
CREATEOBJECT( ""Excel.Application"" ) No Cierra el EXCEL.EXE | Saludos al Forum
Tengo este codigo para generar a excl un DBF, pero al terminar no cierra el EXCEL.EXE que da en el Admon de Taresas
CREATEOBJECT( "Excel.Application" )
Uso xHarbour 1.2.1 Rev 9411 y Bcc582
Estoy compiland un viejo codigo de Clipper.
Si me genera el Archivo en Excel sin ningn problema el unico detalle... |
CREATEOBJECT( ""Excel.Application"" ) No Cierra el EXCEL.EXE | ruben,
yo lo tengo asi:
...
oWorkBooks:= oExcel:WorkBooks
oWorkBooks:Close()
oWorkBooks:= NIL
oExcel:Quit()
oExcel:= NIL
Hb_GCall(.t.)
... |
CREATEOBJECT( ""Excel.Application"" ) No Cierra el EXCEL.EXE | Gracias Compañero Funciono. |
CREAZIONE RADAR PER RALLY | Cari amici fwuser,
devo creare un editor per creare un Radar ..
Se nessuno ha im mente che cosa è un radar ve lo spiego :
In realtà il radar è un Roadbook dove sono segnati tutti i percorsi che un pilota di Rally deve eseguire
ogni riga del roadbook è divisa minimo in tre parti :
Km totali e Parziali
Percorso ( con f... |
CREAZIONE RADAR PER RALLY | proprio non c'è nessuno che mi puo' aiutare ?
avete capito il problema ? |
CREAZIONE RADAR PER RALLY | [quote="Silvio":10baz5w0]il problema a mio avviso è come fare visualizzare i simboli e le frecce ( percorsi)
qualcuno ha qualche idea ?[/quote:10baz5w0]
In generale per visualizzare delle immagini basta avere le relative bitmaps ed utilizzare la funzione PalBmpDraw().
EMG |
CREAZIONE RADAR PER RALLY | scusa ma questo non è il problema
Mi spiego
nella prima colonna ci sono due get numerici e vanno bene !!
nella seconda colonna c'è un grafico :
nel grafico devo avere la possibilità di inserire piu di un disegno cioè devo per esempio raffigurare la strada ( il percorso da seguire) questo generalemnte è formato da ... |
CREAZIONE RADAR PER RALLY | Devi disegnare i bitmaps all'interno delle coordinate della cella, coordinate che puoi tranquillamente ricavare come fa il metodo oBrw:lEditCol().
Per disegnare un bitmap sull'altro basta che li disegni in modo trasparente.
EMG |
CREAZIONE RADAR PER RALLY | sto iniziando a creare qualcosa :
a sinistra della finestra volevo mettere una barra bottoni oppure usare la classe outlook ma come fare per visualizzare i bottoni corrispondenti alle figure che ho in una cartella ?
Questi poi diventeranno dei pulsanti da fare cliccarci sopra e inserire nel bitmap come hai detto tu sop... |
CREAZIONE RADAR PER RALLY | Il comando DEFINE BITMAP OF OUTLOOK supporta la clausola BITMAP che ti consente di specificare il file BMP da visualizzare sul pulsante.
Altrimenti puoi utilizzare dei BTNBMP con la clausola FILE.
EMG |
CREAZIONE RADAR PER RALLY | ecco perchè non mi funzionava io ho tuttii simboli in gif o png |
CREAZIONE RADAR PER RALLY | per la parte grafica ho fatto una prova
adesso posso inserire un disegno in una bitmap e lo posso postare con la clausola DESIGN
Adesso però dovrei salvare tutto tenendo presente anche i simboli inseriti nella bitmap come devo fare?
cioè come si fa a salvare una bitmap
e poi mi conviene salvare il tutto in un f... |
CREAZIONE RADAR PER RALLY | Io direi la seconda, che non è affatto arcaica ma l'unica possibile, secondo me.
EMG |
CREAZIONE RADAR PER RALLY | il problema è che in ogni grafico l'utente mette anche fino a 5 /6 simboli
e secondo te dove li salvo le coordinate intendo?
prevedo una marea di campi in archivio cosi si ingrossa l'archivio ?
Num ( numero di linea)
Parziale (km)
Totale(km)
Note1
Note2
Note3
per ogni simbolo tre campi ( nome del BMP, x e y)
Non l... |
CREAZIONE RADAR PER RALLY | [quote="Silvio":3b3o1wtv]il problema è che in ogni grafico l'utente mette anche fino a 5 /6 simboli
e secondo te dove li salvo le coordinate intendo?[/quote:3b3o1wtv]
In una tabella così fatta:
- Codice grafico
- Codice simbolo
- Coordinata X
- Coordinata Y
E quando devi disegnare un grafico non fai altro che uno sc... |
CREAZIONE RADAR PER RALLY | Ma scusa ti rendi conto che noi stiamo parlando di un grafico per una soa linea mentre in un road book ci sono centinaia e centinaia di linee ?
Lo hai visto mai un roadbook ? |
CREAZIONE RADAR PER RALLY | Guarda che con la tecnica di cui sopra puoi disegnare quante immagini vuoi.
EMG |
CREAZIONE RADAR PER RALLY | si ci avevo già pensato di faren altro archivio dove inserire indicizzati i simboli per ogni immagini ma credo che se calcoliamo un normale numero di 5 simbolini per ogni grafico il dbf si svilupperà moltissimo :
per esempio ho contato un piccolo roadbook per una sezione :
Varano( località di partenza) = 557 linee v... |
CREAZIONE RADAR PER RALLY | Quantità di record intorno ai 10000 sono assolutamente tranquilli per un DBF. Ma anche con 100000 non avresti problemi. C'è gente che usa DBF con milioni di record senza alcun problema.
EMG |
CREAZIONE RADAR PER RALLY | OK
Rritornando alle linee del roadbook vorrei sapere come posso disegnare
un BMP ad una certa posizione cioè se guardi questa figura puoi capire
[url=http://img118.imageshack.us/my.php?image=provarb8rs.jpg:1uhznzow][img:1uhznzow]http://img118.imageshack.us/img118/7703/provarb8rs.th... |
CREAZIONE RADAR PER RALLY | Ti posso aiutare solo se:
1. Mi sottoponi un problema alla volta e me lo descrivi in modo sintetico e preciso.
2. Prepari un esempio minimale che lo mostri e che io possa poi restituirti corretto e funzionante.
EMG |
CREAZIONE RADAR PER RALLY | ok te lo preparo dopo xchè adesso sono a scuola.
poi lo metto qui il test ? |
CREAZIONE RADAR PER RALLY | Sì (oppure lo mandi direttamente alla mia email, come ti pare), ma è essernziale che sia piccolo e compilabile altrimenti non credo che potrò dedicarmici. Sei tu che devi fare lo sforzo iniziale per ridurlo ai minimi termini.
EMG |
CREAZIONE RADAR PER RALLY | MA LA CLASSE :TMetaFile() COME SI USA ?
cioè io voglio creare un BMP oBMP con la metafile alla linea 14,30 e la dimensione deve essere 200x100
Non so mi crea un immagine grandiisima...
vabbe faccio il test intanto |
CREAZIONE RADAR PER RALLY | Forse intendevi dire la classe TBitmap? Comunque ti sconsiglio di utilizzare classi per questo lavoro di "rendering" dei bitmap. Semplicemente disegnali alle giuste coordinate usando la funzione PalBmpDraw() all'interno dell'evento ON PAINT.
EMG |
CREAZIONE RADAR PER RALLY | si ma Linares mi ha detto di creare un user control
Anche a me mi sembra la soluzione giusta
Linares inoltre mi ha detto di iniziare a disegnare una linea del roadbook prendendo in esame il paint della classe Ttabs come riferimento
cioè dovrei disegnare questo inizialmente
[url=http://imageshack.us:1c2s2v... |
CREAZIONE RADAR PER RALLY | [quote="Silvio":26q4lrts]si ma Linares mi ha detto di creare un user control
Anche a me mi sembra la soluzione giusta[/quote:26q4lrts]
Non mi sono spiegato bene: intendevo dire di non utilizzare oggetti per disegnare i bitmaps ma farlo direttamente con la funzione PalBmpDraw() nell'evento ON PAINT di una finestra o d... |
CREAZIONE RADAR PER RALLY | Ora l'immagine la vedo.
EMG |
CREAZIONE RADAR PER RALLY | bene mi sono creato una funzione per disegnare le linee
[code:1p1yvf13]
Function DrawLine( hDC, x, y , high, widht, color)
LOCAL n, hPen, hOldPen
hPen := CreatePen( 0, 2, color )
hOldPen := SelectObject( hDc, hPen )
MoveTo( hDC, y, x )
LineTo( hDC, widht, hig... |
CREAZIONE RADAR PER RALLY | hO CREATO IL RETTANGOLO CON TUTTI GLI INTRAMEZZI
PERO ADESSO IL CONTROLLO ME LO CREA CON UNO SPAZIO SOPRA CHE NON RIESCO A TOGLIERE
HO SEGNATO DI ROSSO LO SPAZIO DA TOGLIERE
[url=http://img98.imageshack.us/my.php?image=lineamia1hd.jpg:32inlht2][img:32inlht2]http://img98.imageshack.us... |
CREAZIONE RADAR PER RALLY | [quote="Silvio":36zezhd5]con questo metodo sarebbe più facile a disegnare ste linee
DrawLine( hDC, 0, 0 , 0,100,CLR_BLACK) peresempio[/quote:36zezhd5]
Cosa ti impedisce di creartelo?
[quote="Silvio":36zezhd5]Adesso però ho un problema
per intenderci la classe tab disegna il suo controllo in fondo mentre io voglio... |
CREAZIONE RADAR PER RALLY | [quote="Silvio":1m9geilw]HAI RICEVUTO I FILES ?[/quote:1m9geilw]
Sì, ma non sono l'esempio minimale del problema che ti avevo chiesto. Mi dispiace ma non posso fare il lavoro al posto tuo.
EMG |
CREAZIONE RADAR PER RALLY | ok
ho trovato l'errore c'era scritto ownd:bottom() o qualcosa di simile e quindi adesso va ok
ho inserito anche la bitmap al centro : se vedi il metodo new per intenderci
Quindi adesso la classe disegna la linea bene o male e cmq fno a qui ci siamo ( poi la potrei modificare alla fine)
io la richiamo semplicemente... |
CREAZIONE RADAR PER RALLY | poi un altra cosa
io ho i simbolini in una directory
Ho fatto una buton bar a sinistra
come fare per creare dei btnbmp allineati per tre o 4 automaticamente
così l'utente premendo un pulsante prende il simbolino che si posiziona subito ( e solo) sul bitmap della linea cosi uno poi puo' spostare ...
cioè
[code:2tg... |
CREAZIONE RADAR PER RALLY | cioè volevo fare una cosa così se era possibile
[url=http://imageshack.us:3ifdbyhz][img:3ifdbyhz]http://img476.imageshack.us/img476/451/predefiniti5me.png[/img:3ifdbyhz][/url:3ifdbyhz]
ma mi da errore di un metodo che non esiste getbtn... |
CREAZIONE RADAR PER RALLY | Ovviamente non li puoi mettere nell'evento paint.
Parlo delle GET.
EMG |
CREAZIONE RADAR PER RALLY | No questi pulsanti sono nella window child che creo quando apro un nuovo roadbook
aaaah tu ti riferivi ai get ???
non li posso mettere e come posso fare per...cavolo lo sapevo che non si poteva fare ....mi sono illuso di poterlo fare con fw |
CREAZIONE RADAR PER RALLY | [quote="Silvio":34bzmjby]aaaah tu ti riferivi ai get ???
non li posso mettere e come posso fare per...cavolo lo sapevo che non si poteva fare ....mi sono illuso di poterlo fare con fw[/quote:34bzmjby]
Non è questione di FW. E' che, semplicemente, non puoi ricreare le GET ad ogni ridisegno della finestra, non ti pare? ... |
CREAZIONE RADAR PER RALLY | SCUSAMI PER IL MIO SFOGO ....
SI OK ADESSO LE HO MESSE NEL METODO NEW E PARE CHE FUNZIONICCHANO MA NON RIESCO A FARE DUE COSE :
[code:1ron0lf6]
DEFINE FONT oFont2 NAME "Ms Sans Serif" SIZE 10, 8
DEFINE FONT oFont3 NAME "Arial" SIZE 20, 20
@ 0,2 say "KM TOTALI" OF Self Font oFont2 size 80,50
@ 2,2 Get :... |
CREAZIONE RADAR PER RALLY | ECCOLO !!!!!!!!!!
[code:j6uv7ps5]
#include "FIVEWIN.CH"
fUNCTION mAIN()
lOCAL OgET1,OGET2,OFONT1,OFONT3
lOCAL OWND
DEFINE FONT oFont2 NAME "Ms Sans Serif" SIZE 10, 8
DEFINE FONT oFont3 NAME "Arial" SIZE 20, 20
DEFINE WINDOW oWnd COLOR "N/W" ;
title "Nuovo RoadBook"
@ 0,2 say "KM T... |
CREAZIONE RADAR PER RALLY | Mancano le variabili delle GET.
EMG |
CREAZIONE RADAR PER RALLY | E mancano le PICTURE, obbligatorie dato che trattasi di variabili numeriche.
EMG |
CREAZIONE RADAR PER RALLY | ooppss...
calma calma mi sono sfuggite...
il problema è che ogni 5 minuti mi telefonano....
sorry... |
CREAZIONE RADAR PER RALLY | Scusami eccolo
ho corretto ma non funziona cioè adesso le get funzionano ma
io volevo che scrivessero i font grandi e che le get erano trasparenti
[code:39enb9b9] #include "FIVEWIN.CH"
FUNCTION Main()
lOCAL oGET1,oGET2
LOCAL OFONT1,OFONT3
LOCAL KMTOT:=0
LOCAL KMpARZ:=0
Local OWND... |
CREAZIONE RADAR PER RALLY | A me i font delle GET risultano grandi. E non ho capito cosa intendi con "trasparenti". Se vuoi che lo sfondo delle GET sia uguale a quello della finestra basta che usi in entrambi (finestra e GET) la stessa clausola COLOR.
EMG |
CREAZIONE RADAR PER RALLY | A me no
allora ho problemi di grafica... |
CREAZIONE RADAR PER RALLY | Vabbe poi lo risolvo
c'è una cosa che ti volevo chiederti :
Quando chiamo la classe la procedura costruisce una riga e lo fa bene
ma se è la prima riga cioè se sto iniziando a creare la prima riga la procedura mi deve disegnare la testata ....
dove la metto la testata nel mtetodo paint ?
io la devo disegnare solo u... |
CREAZIONE RADAR PER RALLY | Il discorso della programmazione Windows è questo:
1. Ogni elemento presente sulla dialog deve sapersi ridisegnare all'occorrenza (e questo lo sanno fare i controlli tipo TSay, TGet, TCombobox, TWBrowse, etc. grazie al fatto che sono controlli standard oppure grazie al loro metodo Paint()).
2. Gli elementi che non fa... |
CREAZIONE RADAR PER RALLY | ok ho risolto almeno credo ho aggiunto un parametro alla classe LTestata
se c'è lo aggiunge altrimenti no
ho un altro problema da chiederti
Nella mia famosa linea ho inserito la bitmap:
[code:3hq9477b]
@ 0,15 BITMAP ::oBmp SIZE 360,200 OF Self ;
ON CLICK DrawSections( ::oBmp,.t. ... |
CREAZIONE RADAR PER RALLY | Prova con un Refresh() prima di disegnare la seconda linea. Dovrebbe cancellare tutto quello che è stato disegnato direttamente.
EMG |
CREAZIONE RADAR PER RALLY | no niente da fare
ma forse non mi sono spiegato cerco di spiegartelo meglio...
io creo ad esempio un controllo rbook:
@ 2,0 rbook oRb
e poi un altro
@15,0 rbook orb2
poi clicco sul bitmap del primo controllo e mi crea la cornice
poi clicco sul bitmap del secondo controllo e mi crea la cornice ma non mi tog... |
CREAZIONE RADAR PER RALLY | [quote="Silvio":1e0ul9b0]poi clicco sul bitmap del primo controllo e mi crea la cornice
poi clicco sul bitmap del secondo controllo e mi crea la cornice ma non mi toglie la cornice al primo controllo[/quote:1e0ul9b0]
Quindi stai parlando dell'indicatore di focus. Devi disegnarlo nell'evento bGotFocus e cancellarlo n... |
CREAZIONE RADAR PER RALLY | grazie era quello che cercavo |
CREAZIONE RADAR PER RALLY | scusami sono tornato solo oggi dal wrc mondiale di Rally in sardegna.
per il focus intendi di crear eun nuovo metodo e ridisegnare il controllo e richiamre il metodo paint ?
poi per il checkdots non ho trovato niente o meglio volevo solo togliere i puntini per non far allargare l'immagine ...ma poi ho la possibilit... |
CRM | Hola compañeros del foro,Me encuentro ahora desarrollando con Xharbour y tengo desarrollados ya varios modulos con esta poderosa herramienta, ahora estoy en un ambicioso proyecto para desarrollar un pequeño crm.Para lo cual necesito, algunas cositas que no tengo ni la menor idea de como hacerlas y quizas algunos de ust... |
CRM | Julio,>necesitaria programar un boton que la momento de presionar me saque para escribir comentarios >Revisa el código de FWH\samples\TestMemo.prg> y al mismo tiempo me saque la llamada al telefono principal del clienteTe refieres a que marque el número de teléfono automaticamente ? Revisa el ejemplo FWH\samples\Phone.... |
CRUD and viewer | Hello friends,
I use Tinymce HTML editor to input and edit the textarea field.
Data is stored into memofield of a DBF file.
Now I made a little program to view the DATA.
[img:1obfubx7]https://mybergland.com/fwforum/viewmemofield.jpg[/img:1obfubx7]
Best regards,
Otto
[img:1obfubx7]https://mybergland... |
CRYSTAL REPORT (Sel. Impresoras y guardar como HTML PDF) | Hola a todos
Con Ayuda de Tosko he podido ir avanzando en el uso de la clase de TOM GROEGER (TCRW) y reportes dieñados con Crystal 9, y ahora acudo a preguntarles como lograr seleccionar la impresora a la cual deseo derivar el reporte, pues el crystal solo muestra la predeterminada.
Lo segundo es como guradar un repor... |
CRYSTAL REPORT XI print to printer | Dear All,
I try this code for Preview and Export to file, it's work well but print to printer doesn't work and got an error.
[color=#BF0000:1phuommr][b:1phuommr] oRpt:SelectPrinter( cPrinter ) // Error missing method
oRpt:PrintOut("False",nCopy) // Error missing method[/b:1phuommr]
[/color:1phuommr]
Thanks in a... |
CRYSTAL REPORT XI print to printer | Dutch,
Just an idea:
[code=fw:11hsa8de]<div class="fw" id="{CB}" style="font-family: monospace;"><br />PrinterSetup<span style="color: #000000;">(</span><span style="color: #000000;">)</span>,;<br />oReport:<span style="color: #000000;">SelectPrinter</span><span style="color: #000000;">(</span>PrnGetDrive... |
CRYSTAL REPORT XI print to printer | I've got it.
Thank Antonio, |
CRYSTAL REPORT need help (Passing parameter) | Dear All,
I need to use CRYSTAL REPORT XI but I cannot run the sample program from Fernando González Diez's sample. I occur an error as picture.
I use xHB, FWH1612, BCC7 and CR XI.
[url=https://postimg.org/image/5lptoy1ql/:6hgfk266][img:6hgfk266]https://s14.postimg.org/46o9080nl/CR11error.png... |
CRYSTAL REPORT need help (Passing parameter) | Dutch,
Just as a guide line.
[code=fw:2nm2jxk2]<div class="fw" id="{CB}" style="font-family: monospace;"><br /> oCrystal := CreateObject<span style="color: #000000;">(</span><span style="color: #ff0000;">"CrystalRuntime.Application.11"</span> <span style="color: #000000;">)</span><br /> oReport &n... |
CRYSTAL REPORT need help (Passing parameter) | Dear Antonio,
Thank you so much, I can do it now. |
CSS Variables | CSS Advanced
Advantages of using var() are:
makes the code easier to read (more understandable)
makes it much easier to change the color values
[url:e1cfcyl0]https://mybergland.com/fwforum/cssvar.html[/url:e1cfcyl0] |
CSS Variables | Dear Otto,
very good!
many thanks for sharing it |
CSV TO DBF | I must convert this into dbf
[code=fw:6md9po56]<div class="fw" id="{CB}" style="font-family: monospace;">CodUM,DescrUM,Molt,NumDec,Tipo,CodDescrUM<br />CF10,Confezione <span style="color: #000000;">10</span> pezzi,<span style="color: #000000;">10</span>,<span style="color: #000000;">0</span>,Numero,CF10 - Confezione ... |
CSV TO DBF | Here an example that you can modify.
[code=fw:37xggbrs]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"fivewin.ch"</span><br /><span style="color: #00C800;">Function</span> Main<span style="color: #000000;">(</span><span style="c... |
CSV TO DBF | APPEND FROM <sourcefile> DELIMITED WITH ","
You still need to deal with removing the first row of the csv which has the field names, which is simple enough. |
CSV TO DBF | [quote="FranciscoA":3sas5obz]Here an example that you can modify.
[code=fw:3sas5obz]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"fivewin.ch"</span><br /><span style="color: #00C800;">Function</span> Main<span style="color: #000000... |
CSV TO DBF | You can use field types, if you want it.
In the following example all fields are character type
[code=fw:3s6tfk46]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"fivewin.ch"</span><br /><br /><span style="color: #00C800;">Function</... |
CSV to DBF | Hi!
My name is Aljoscha. I'm starting to Programming FiveWin. I have a question to you. I have a CSV file and I would like create a Programm that read this file and save this to a DB.
I think this is not to difficult but I have no idea. So I hope someone can help me.
Best Regards
Aljoscha |
CSV to DBF | Hello Aljoscha,
You can use the code below to append your CSV file to your DBF.
It's not necesary to read the CSV, as doing this is very slow.
[code=fw:2r931hrr]<div class="fw" id="{CB}" style="font-family: monospace;">USE <span style="color: #000000;">(</span><span style="color: #ff0000;">"YOUR_DBF_TABLE"</span>... |
CSV to DBF | Hi George! Thank you for your quick answer. Is it possible that this works also with xlsx files?
Best Regards
Aljoscha |
CSV to DBF | [quote="ali":2guczurs]Hi George! Thank you for your quick answer. Is it possible that this works also with xlsx files?
Best Regards
Aljoscha[/quote:2guczurs]
Chose file save as to DBF file ... ->( Excel application
regards
fafi |
CSV to DBF | I think .xlsx files are Excel 2007 or later. That version does not save to .dbf files anymore. |
CSV to DBF | [quote="Gale FORd":19q30f10]I think .xlsx files are Excel 2007 or later. That version does not save to .dbf files anymore.[/quote:19q30f10]
Yes. In that case, save as CVS and APPEND FROM CVS. |
CSV to DBF | Hi !
I have used the code you have written but it don't works. There is my code and a sample of the CSV
[code=fw:15g8eums]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br /><span style="color: #00C800;">function</span> mkdbf<span style="color: #000000;">(</span><span style="color: #000000;">... |
CSV to DBF | Hi Aljoscha
A CSV file is separated by commas not semi colons as in your data. I know that you set the DELIMITED option to a semi colon but the delimiter character is the character that encloses character fields. The character fields in your data are enclosed with double quotation marks which is the default.
A chec... |
CSV to DBF | Thank you for your fantastic answer. It works. |
CSV to DBF | Hello!
BTW, does APPEND FROM .csv support multiline strings (CRLFs between quatition marks)?
Thanks, Roman |
CSV to DBF | Hi Roman
The best way is to try it and see. It isn't specified as far as I can see in the documentation and it would depend how it was implemented. You could try to follow the source code but testing would be simpler.
If it doesn't work you might need a workaround. If you read your csv file into a single (large?) ... |
CSV to DBF | Someone have a function to convert a file csv ( with [b:1ei2swtt];[/b:1ei2swtt] separator) into dbf ?
thanks |
CSV to DBF | Hola, a ver si te sirve
[url:13vxmwxx]http://forums.fivetechsupport.com/viewtopic.php?f=3&t=18285&start=0&hilit=append+from+delimiter[/url:13vxmwxx] |
CSV to DBF | Hi
I use this function for inserting data from .csv or .unl files in to sql table
You can change INSERT INTO statement with Dbeplace or change separator or what else you need
[code=fw:33j2xh6l]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #B900B9;">//-----------------------------... |
CSV to DBF | Assuming that the CSV file's structure and datatypes correctly match the DBF file, I could think of small 5 lines function to do the job.
[code=fw:3bx85rqb]<div class="fw" id="{CB}" style="font-family: monospace;">cText := StrTran<span style="color: #000000;">(</span> MemoRead<span style="color: #000000;">(</sp... |
CSV to DBF | Nages,
I have this error ...perhaps I make an mistake ...
I insert here the test.prg to converte csv to dbf
and some lines of the file lotto.csv
on this csv file On first line there are the fields declared
[b:n86sc8do]the error[/b:n86sc8do]
[code=fw:n86sc8do]<div class="fw" id="{CB}" style="font-family: monospace... |
CSV to DBF | It looks like you are having a date format problem. The first record imported the date and the next three were blank. Here are the values in the original file:
07/01/1939
14/01/1939
21/01/1939
28/01/1939
Note that the last three dates have as the first value number greater than 12 so it appears that the import routin... |
CSV to DBF | Silvio
Mr James is right. We should ourselves take care of date formatting issues when we deal with dates. Our settings should match the data.
#1. As Mr James Bott advised, please SET DATE BRITISH and SET CENTURY ON at the beginning of the program. You can change the setting, if you want, only after FW_ArrayToDBF().
... |
CSV to DBF | Silvio
Revised code adopting the above recommendataions.
I have also added browse of array and dbf.
I have used your Create_db() function and did not repeat it here.
[code=fw:23sck1em]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"... |
CSV to DBF | Thanks,
It run also with xharbour ? |
CSV to DBF | [quote="Silvio.Falconi":1gzh7g8k]Thanks,
It run also with xharbour ?[/quote:1gzh7g8k]
Yes.
Keep the include "hbcompat.ch" always |
CSV to DBF | Nages,
perhpas there isanother error
now I tried load the new file from internet and I tried to converrte it into dbf
<!-- m --><a class="postlink" href="http://www.estrazionidellotto.com/estrazionidellotto.csv">http://www.estrazionidellotto.com/estra ... llotto.csv</a><!-- m -->
I saw the csv file have a line empt... |
CSV to DBF | As I said before, the logic works correctly if the data in the CSV file exactly matches the DBF structure and the data is valid.
If we need to handle in-disciplined data, you need to first validate the data and used rectified data as input. What checks you need to make depends on how unreliable the data source is. P... |
CSV to DBF | Mr Nages,
Now I have another file but with no ";" delimiter and I not Know how I can make to converte this txt into dbf
the file can be download from <!-- m --><a class="postlink" href="http://sys.sistemiwinforlife.it/estrazioniwinforlife41bzh1n.txtv">http://sys.sistemiwinforlife.it/estrazi ... bzh1n.txtv</a><!-- m -... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.