in

C1 Community

ComponentOne Community is a free source for developers and help authors to collaborate and communicate.

Newbie: Behaviour of CustomFormat and EditMask different from TDBInput 8.0

Last post 05-19-2008 9:00 AM by ufpgmbh. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 05-15-2008 9:46 AM

    Newbie: Behaviour of CustomFormat and EditMask different from TDBInput 8.0

     Hi,

    Considering myself as an experienced user of C1 for ActiveX I'm totally puzzled by C1NumericEdit's (2.0.20073.33104) behaviour in unbound mode.

    I'm trying to create an input mask for say numbers from 0 to 999.99. So I've set the DateType to 'decimal' , FormatType to 'CustomFormat', CustomFormat to '##0.00', the EditMask to '##0.00' and the value to 0.

    After doing so, I'm not allowed to enter numbers < 100, eg. 23.34. Instead I'm always forced to enter 3 digits before and 2 digits behind the decimal point.

    In TDBInput there were two options: Format and DisplayFormat. Settings Format to '##0.00' and DisplayFormat to '##0.00;;Null' displayed the initial value as '0.00' and I could enter a number say '23.34' and everything was fine.

    In C1NumberEdit that initial value is being display like '__0.00" and, like I said before, I'm forced to enter 3 leading digits. Furthermore, afterwards the value property is still 'null' as the text property contains the entered number.

    I hope, I made myself clear. Can anyone help, please ?

    Thanks in advance,

    Stephan
     

     

     

     

     

  • 05-15-2008 1:55 PM In reply to

    Re: Newbie: Behaviour of CustomFormat and EditMask different from TDBInput 8.0

    Hello Stephan,
     
    Instead of setting the 'EditMask' property, please try the given code snippet.
     
        Me.C1NumericEdit1.EditFormat.CustomFormat = "##0.00"

        Me.C1NumericEdit1.ValueChangedBehavior = C1.Win.C1Input.ValueChangedBehaviorEnum.FireOnAnyChange

    This should take care of both the issues, you have mentioned. I hope this will help.

    Regards,

    Allen Smith

    <ufpgmbh> wrote in message news:204884@10.0.1.98...

     Hi,

    Considering myself as an experienced user of C1 for ActiveX I'm totally puzzled by C1NumericEdit's (2.0.20073.33104) behaviour in unbound mode.

    I'm trying to create an input mask for say numbers from 0 to 999.99. So I've set the DateType to 'decimal' , FormatType to 'CustomFormat', CustomFormat to '##0.00', the EditMask to '##0.00' and the value to 0.

    After doing so, I'm not allowed to enter numbers < 100, eg. 23.34. Instead I'm always forced to enter 3 digits before and 2 digits behind the decimal point.

    In TDBInput there were two options: Format and DisplayFormat. Settings Format to '##0.00' and DisplayFormat to '##0.00;;Null' displayed the initial value as '0.00' and I could enter a number say '23.34' and everything was fine.

    In C1NumberEdit that initial value is being display like '__0.00" and, like I said before, I'm forced to enter 3 leading digits. Furthermore, afterwards the value property is still 'null' as the text property contains the entered number.

    I hope, I made myself clear. Can anyone help, please ?

    Thanks in advance,

    Stephan
     

     

     

     

     



    http://helpcentral.componentone.com/cs/forums/p/75255/204884.aspx#204884

  • 05-19-2008 9:00 AM In reply to

    Re: Newbie: Behaviour of CustomFormat and EditMask different from TDBInput 8.0

    Hello Allen,

    Thanks very much for your quick help. I really appreciate it.

    Regards,

    Stephan 

     

     

     

Page 1 of 1 (3 items)
Contact ComponentOne: 1.800.858.2739 ©1987-2008 ComponentOne LLC All Rights Reserved.