Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Bug: Class Designer and textbox's value currency
Message
 
 
To
16/02/2005 10:51:59
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
00987458
Message ID:
00987761
Views:
45
Fabio,

I don't see the problem.
public oForm
oForm = createobject( "form1" )
oForm.Visible = .t.

DEFINE CLASS form1 AS form

   DoCreate = .T.
   Caption = "Form1"
   Name = "Form1"

   ADD OBJECT text1 AS textbox WITH ;
      Alignment = 3, ;
      Value = $0.0000, ;
      Height = 23, ;
      Left = 45, ;
      Top = 46, ;
      Width = 100, ;
      Name = "Text1"

   ADD OBJECT text2 AS textbox WITH ;
      Height = 23, ;
      Left = 81, ;
      Top = 102, ;
      Width = 100, ;
      Name = "Text2"

   PROCEDURE Load
      activate window "debug output"
   ENDPROC

   PROCEDURE text1.GotFocus
      debugout type( "this.value" )
      debugout vartype( this.Value )
   ENDPROC

ENDDEFINE
As I tab beween the controls both type() and vartype() output Y

For me the property sheet respects the current SET POINT in effect when the property value was set. So you may have done some "invalid" set point which caused VFP to need to change the value stored in the properties memo from a currency value like $0.0000 to a string like "$0?0000".

>1. SET POINT TO '?'
>2. open Class Designer, with a textbox
>3. put $0 into Value.
>4. look Value="$0?0000" Expected $0.0000
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform