Recent

Author Topic: MyEditDB Vers. 0.97 ** Upgrade Last Post Vers. 1.00 **  (Read 8623 times)

laguna

  • Sr. Member
  • ****
  • Posts: 325
MyEditDB Vers. 0.97 ** Upgrade Last Post Vers. 1.00 **
« on: September 04, 2009, 02:12:29 pm »
MyEditDB Vers. 0.97
   
New Dial DataField descended from TEdit.
Formatted numbers, EditMode Ad DisplayMode
Right Align

http://www.scozzaro.it/index.php?option=com_docman&task=doc_details&gid=13&Itemid=41
« Last Edit: September 04, 2009, 09:07:17 pm by laguna »

freddynerk

  • Jr. Member
  • **
  • Posts: 96
Re: MyEditDB Vers. 0.97
« Reply #1 on: September 04, 2009, 03:14:55 pm »
Hi Laguna,

Nice idea.

Can this be used as a currency edit DB aware component?

Tom

laguna

  • Sr. Member
  • ****
  • Posts: 325
Re: MyEditDB Vers. 0.97
« Reply #2 on: September 04, 2009, 03:31:48 pm »
Yes, View this propertis NumFormatEdit ad NumFormatDisplay


laguna

  • Sr. Member
  • ****
  • Posts: 325
Re: MyEditDB Vers. 0.97
« Reply #3 on: September 04, 2009, 09:06:55 pm »
Upgade Vers. 1.00

+ KeyPress Event
+ Controll Key Numeric
+ Controll Decimal Numeric
+ FieldType Controll

http://www.scozzaro.it/index.php?option=com_docman&task=doc_details&gid=13&Itemid=41

laguna

  • Sr. Member
  • ****
  • Posts: 325
Re: MyEditDB Vers. 0.97 ** Upgrade Last Post Vers. 1.00 **
« Reply #4 on: September 09, 2009, 06:33:15 am »
Help Me

Format  ('%12.2n', [1234.56]) in Linux GTK2 not correct output, show value 1.

Note:
Format console is ok.


Test my component please.

Thanks

theo

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1930
Re: MyEditDB Vers. 0.97 ** Upgrade Last Post Vers. 1.00 **
« Reply #5 on: September 09, 2009, 10:29:07 am »
I don't think it's the format function that fails.

This:
Code: [Select]
const NumFormatDisplay='%12.2n';
begin
Edit1.Text:=Format(NumFormatDisplay,[1234.56]);
Writeln(Format(NumFormatDisplay,[1234.56]));

Shows correct (afaik) and identical values.
Must be something else in your code.

laguna

  • Sr. Member
  • ****
  • Posts: 325
Re: MyEditDB Vers. 0.97 ** Upgrade Last Post Vers. 1.00 **
« Reply #6 on: September 09, 2009, 08:46:54 pm »
   
The problem occurs after I add the form LazReport, only linux

   
So, before putting on the form frReport1 the conversion is done correctly.
After the addition of control frReport 1 and (uses lazreport on project and  LR_DBSet,  >:(LR_Class >:(, LR_Desgn on unit1;) as a value from 1, not 1,234.56


unit LR_Class;

interface

{$I LR_Vers.inc}

uses
  SysUtils, Classes, Controls, FileUtil,
  Forms, ComCtrls, Dialogs, Menus,
  Variants, DB,Graphics,Printers,osPrinters,XMLConf,
  
  LCLType,LCLIntf,TypInfo,LCLProc,
   //:DSysUtilsAdds, >:D   //  <------   :)remove this unit Format correct outpu :)t
  LR_View, LR_Pars, LR_Intrp, LR_DSet, LR_DBSet, LR_DBRel, LR_Const;    
« Last Edit: September 10, 2009, 04:45:21 am by laguna »

 

TinyPortal © 2005-2018