Yes, I solved it wth this
with adotable1 do
begin
TFloatField(FieldByName('fname')).DisplayFormat:='######.00';
end;
Thanks for pointing me in the right direction,
I am connecting to an access database at runtime, not design time so I cant use the ide to set column parameters. This works ok, but there is no formatting on the numeric fields. How can I set it in code,
TIA,
Lenny
Im actually trying to add a module to a project. In vb6 you could add an existing module to a number of projects and they all used the same copy of the module. Thats what Im trying to do, but vb.Net seems to create a new copy of the module for each project.
I am trying to have a global module I can use in several projects. I have created it but when I add it to a project as a new item it creates a completely new copy of the module instead of using the existing one. Have I missed something ?
Thanks,
Len
Just learning Delphi, I have a button and a text box on a form,
in the button click procedure this works ok,
edit1.Text := '123456';
but i want to put it in a procedure to call from other places, but
procedure tempit();
begin
Form1.edit1.Text := '123456';
end;
in the same unit doesn't work.
Why...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.