English
Forum

ListViewToDBF - Feldgröße(n)

 
Hello Frank,

I try straight one Prg. To write, with the I DBF-Files modify can:
1. DB reading
2. boxes (Split) Remove / add
3. as new DB abspeichern

1. and 2. klappen well.
If I The geänderte DB with ListViewToDBF abspeichere, lose I almost any Feldbeschreibungen:
Feldname - ok
Feldtyp - C,n etc. ok
Feldlänge - mere random ( 1 - 59... yet)
Anz.Dezimalstellen with n-Feldern isn't To settle, therefore always 0 - pity, no Centbeträge More
have You a idea, How to the settle can?

thanks
ThomasP
 
11/09/04  
 



Hi Thomas,

in the guide is under ListviewToDbf() an example posted. Klappt it lest ?

bytes&=GetNeededMemory(listview&,2)
Dim area#,bytes&

bytes&=ListviewToDbf(listview&,area#,bytes&,0)
Char area#,43=N
Char area#,(43+32)=C really unnecessary, contains already C
Char area#,(43+64)=C really unnecessary, contains already C
Char area#,(43+96)=N
Char area#,(43+128)=N

Text$=Datei.dbf
WriteFileQuick(addr(Text$),area#,0,bytes&)

Dispose area#

Greeting, Frank
 
11/09/04  
 



Hello Frank,

the example works correct:
> Feldtyp - C,n etc. ok

what I do not knows, is How one The Feldparameter Feldlänge and amount Dezimalstellen einstellt.
in example
Feldname: MeinGeld
Feldtyp: Numerisch
Feldlänge : 11 (one is Optimist!)
Dezimalstellen: 2

yields 12345678.90

mfG
ThomasP
 
11/09/04  
 



Hi,

I seh me the into next Meet on.
today have I unfortunately no Time.

Greeting, Frank
 
11/09/04  
 



Hi,

the Feldtyp ought to Yes clear his (Offset 43):

Char area#,43=N

and for each slot 32 add

Char area#,(43+32)=C
Char area#,(43+64)=C
Char area#,(43+96)=N

The Feldlänge (one byte !) has whom Offset 48.
The Dezimalstellen (too one byte !) whom Offset 49.

for example:

byte area#,48=11
byte area#,49=2

so can you Yes test times and message say, whether You so zurecht come or whether I the in the Dll solid anchoring ought to.

Greeting, Frank
 
11/09/04  
 



Hello Frank,

Have unfortunately z.Zt. VERY little Time.

will be but your suggestion soon try and you then telling for.

fundamentally would find I it well, if it solid into DLL installed would.

Greeting
ThomasP
 
11/09/04  
 



Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

3.438 Views

Untitledvor 0 min.
Michael W.07/04/16
Pauli05/17/13
Uwe Lang01/31/13
Peter Max Müller01/27/12
More...

Themeninformationen

this Topic has 1 subscriber:

unbekannt (6x)


Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie