Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Bug: Class Designer and textbox's value currency
Message
 
 
À
16/02/2005 10:51:59
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9
Divers
Thread ID:
00987458
Message ID:
00987761
Vues:
43
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform