Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Big bad silly bug
Message
De
10/07/2002 13:58:08
Jorge Haro
Independent Consultant
Juarez, Mexique
 
 
À
10/07/2002 04:42:09
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00676954
Message ID:
00677183
Vues:
32
What I do in this situations is add a property to the form set it to "" or just (None) in design mode and bind the textbox to it, in code I reference the property not the textbox, works for me.

Also make sure the Value property for the textbox is not set to something that's not a character expression.

>Hi All,
> Something really silly, probably have to do with type casting( which I dont know how to do in foxpro). I have put the follwing code in my init script of a form, but when it executes this script, it errors me on 9, which is datafield miss match, I cannot string it or type cast it... Can someone help me out?
>
>***************************************************************************************
>local superid, act
>act = 'search'
>superid = 'IW/NP/MR 2002/7 '
>
>if act = 'search'
> locate for alltrim(thisform.text1.value) = alltrim(superid)
>endif
>
>
>if act = 'search'
> locate for alltrim(casema.caseid) = alltrim(superid)
>endif
>***************************************************************************************
>
>Thx
>
>Tom
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform