Hi Klaus:sign0188:
Es klappt noch immer nicht!!
I am attaching a part of my code:
Sub ExportDesign
CreateTables(Job)
SaveDialog1.Filter = "CSV Files|*.csv"
SaveDialog1.Show
If SaveDialog1.File<>"" Then
Table2.Clear
If Checkbox1.Checked=True Then
SaveDialog1.File=SubString(SaveDialog1.File,0,StrLength(SaveDialog1.File)-4) & "1.csv"
Table2.Clear
cmd.CommandText = "Select * From HorPi "
cmd.ExecuteTable("table2",0)
Table2.SaveCSV (SaveDialog1.File, "," ,True)
End If
If Checkbox2.Checked=True Then
'Align Pts
SaveDialog1.File=SubString(SaveDialog1.File,0,StrLength(SaveDialog1.File)-4) & "2.csv"
Table2.Clear
cmd.CommandText = "Select * From Align "
cmd.ExecuteTable("table2",0)
Table2.SaveCSV(SaveDialog1.File, "," ,True)
End If
If Checkbox3.Checked=True Then
'Ver Pi's
SaveDialog1.File=SubString(SaveDialog1.File,0,StrLength(SaveDialog1.File)-4) & "3.csv"
Table2.Clear
cmd.CommandText = "Select * From VerPi "
cmd.ExecuteTable("table2",0)
Table2.SaveCSV (SaveDialog1.File, "," ,True)
End If
If Checkbox4.Checked=True Then
'Crossfalls
SaveDialog1.File=SubString(SaveDialog1.File,0,StrLength(SaveDialog1.File)-4) & "4.csv"
Table2.Clear
cmd.CommandText = "Select * From Crossfall "
cmd.ExecuteTable("table2",0)
Table2.SaveCSV (SaveDialog1.File, "," ,True)
End If
If Checkbox5.Checked=True Then
This is then what it gives me when I open it in "Notepad":
No,StartSv,YCoord,XCoord,Radius,Length,Code,Stake
1,0.000,"-40,082.690","385,083.320",0.000,0.000,0.000,0.000
2,0.000,"-44,995.990","382,877.007",0.000,0.000,0.000,"5,385.938"
3,0.000,"-45,228.949","382,747.253","-1,550.000",0.000,0.100,"5,652.926"
4,0.000,"-49,440.756","379,900.831",0.000,0.000,0.000,"10,736.373"
5,0.000,"-49,746.831","379,767.152",920.000,0.000,0.100,"11,072.228"
6,0.000,"-51,101.950","379,450.927",0.000,0.000,0.000,"12,463.755"
7,0.000,"-51,510.280","379,235.347",-910.000,0.000,0.100,"12,930.603"
8,0.000,"-54,400.511","376,584.240",0.000,0.000,0.000,"16,852.567"
9,0.000,"-54,550.433","376,425.099","-1,500.000",0.000,0.100,"17,071.398"
10,0.000,"-56,626.729","373,871.328",0.000,0.000,0.000,"20,362.713"
11,0.000,"-56,686.455","373,790.206","-1,050.000",0.000,0.100,"20,463.489"
12,0.000,"-59,268.767","369,905.438",0.000,0.000,0.000,"25,128.224"
13,0.000,"-59,339.582","369,807.680","1,500.000",0.000,0.100,"25,248.969"
14,0.000,"-61,061.104","367,621.994",0.000,0.000,0.000,"28,031.210"
15,0.000,"-61,296.386","367,383.055","1,520.000",0.000,0.100,"28,367.228"
16,0.000,"-64,274.008","364,962.455",0.000,0.000,0.000,"32,204.614"
17,0.000,"-64,571.398","364,522.596",-917.000,0.000,0.100,"32,743.285"
18,0.000,"-65,562.655","361,327.111",0.000,0.000,0.000,"36,088.985"
19,0.000,"-65,608.789","361,202.156","1,260.000",0.000,0.100,"36,222.247"
20,0.000,"-66,645.981","358,793.123",0.000,0.000,0.000,"38,845.071"
21,0.000,"-66,775.081","358,510.687","7,000.000",0.000,0.100,"39,155.640"
22,0.000,"-67,846.240","356,298.437",0.000,0.000,0.000,"41,613.572"
The above represents a horizontal alignment, which is stored in a SQLite database. If you look at the above, you will notice that as soon as the value is bigger than 999.99, it encapulates the number with ". Everything smaller than 1000 is OK.
Please help.:sign0085:
Regards
Michael