![]() |
Numbers xtpEditStyleNumber |
Post Reply
|
| Author | |
markmark
Senior Member
Joined: 30 November 2007 Status: Offline Points: 142 |
Post Options
Thanks(0)
Quote Reply
Topic: Numbers xtpEditStyleNumberPosted: 15 April 2010 at 8:45am |
|
Hi
I am using this code
Set Item = rRecord.AddItem("")
Item.CreateEditOptions Item.EditOptions.EditControlStyle = xtpEditStyleNumber This allows only numbers, but I would like to be able to enter values with a decimal point ie 12.123
But it only allows whole numbers, is there away to do this?
Thanks
Mark
|
|
|
Product: Xtreme SuitePro (ActiveX) version 13.0.0
Platform: Windows XP (32bit) - SP 2 Language: Visual Basic 6.0 |
|
![]() |
|
jpbro
Senior Member
Joined: 12 January 2007 Status: Offline Points: 1357 |
Post Options
Thanks(0)
Quote Reply
Posted: 15 April 2010 at 10:11am |
|
You can use the InplaceEditChanging event along the lines of this:
Although that would allow currency symbols as well (and negative values). You can expand your testing as required if you don't want to allow such values. |
|
|
Product: Xtreme SuitePro (ActiveX) version 16.2.6
Platform: Windows XP - SP3 Language: Visual Basic 6.0 SP6 |
|
![]() |
|
markmark
Senior Member
Joined: 30 November 2007 Status: Offline Points: 142 |
Post Options
Thanks(0)
Quote Reply
Posted: 15 April 2010 at 10:59am |
|
Thanks jpbro that works for me.
Cheers
|
|
|
Product: Xtreme SuitePro (ActiveX) version 13.0.0
Platform: Windows XP (32bit) - SP 2 Language: Visual Basic 6.0 |
|
![]() |
|
jpbro
Senior Member
Joined: 12 January 2007 Status: Offline Points: 1357 |
Post Options
Thanks(0)
Quote Reply
Posted: 15 April 2010 at 1:35pm |
|
Glad to help!
|
|
|
Product: Xtreme SuitePro (ActiveX) version 16.2.6
Platform: Windows XP - SP3 Language: Visual Basic 6.0 SP6 |
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |