View Issue Details

IDProjectCategoryView StatusLast Update
0020516FPCDatabasepublic2011-10-19 16:53
Reporterlingling Assigned ToJoost van der Sluis  
PrioritynormalSeverityminorReproducibilityhave not tried
Status resolvedResolutionno change required 
Platformwindows xp 
Product Version2.4.2 
Summary0020516: ftCurrency always show with a "?"
Descriptioni use this code,but the ftCurrency field always show a "?" in it ,my windows xp is chinese version,please see the result in the picture file,thank you.

procedure TForm1.Button2Click(Sender: TObject);
begin
BufDataSet1.Fields.Clear;
BufDataset1.FieldDefs.Add('Field1', ftString);
BufDataset1.FieldDefs.Add('Field2', ftBCD);
BufDataset1.FieldDefs.Add('Field3', ftCurrency);
BufDataset1.CreateDataset;
BufDataset1.Open;
Datasource1.DataSet:=BufDataset1;
DBGrid1.DataSource:=DataSource1;

BufDataset1.Append;
BufDataset1.FieldByName('Field1').Value:='1';
BufDataset1.FieldByName('Field2').Value:='89.5632';
BufDataset1.FieldByName('Field3').Value:= 89.1562 / -1;
BufDataset1.post;
end;
TagsNo tags attached.
Fixed in Revision
FPCOldBugId
FPCTarget
Attached Files

Activities

2011-10-19 14:51

 

screen.zip (15,518 bytes)

Ludo Brands

2011-10-19 15:33

developer   ~0053158

This is a problem with the currency symbol which is defined in XP using your system code page while lazarus assumes utf8.
Add
CurrencyString:='¥';
to your program ( or whatever symbol you like ) to your program.

Marco van de Voort

2011-10-19 16:53

manager   ~0053164

As far as there is a problem, it is not a FPC problem.

If you disagree, please reopen and submit a console example that demonstrates the bug.

Issue History

Date Modified Username Field Change
2011-10-19 14:51 lingling New Issue
2011-10-19 14:51 lingling Status new => assigned
2011-10-19 14:51 lingling Assigned To => Joost van der Sluis
2011-10-19 14:51 lingling File Added: screen.zip
2011-10-19 15:33 Ludo Brands Note Added: 0053158
2011-10-19 16:53 Marco van de Voort Status assigned => resolved
2011-10-19 16:53 Marco van de Voort Resolution open => no change required
2011-10-19 16:53 Marco van de Voort Note Added: 0053164