Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Bug: Class Designer and textbox's value currency
Message
De
17/02/2005 03:31:54
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9
Divers
Thread ID:
00987458
Message ID:
00987793
Vues:
39
Hi David,

try Fabio's description in message#987591 and you will see that the vartype in deed shows as C.

>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform