Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Equal
Message
 
To
31/03/2005 06:40:20
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Re: Equal
Environment versions
Visual FoxPro:
VFP 7
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01000221
Message ID:
01000227
Views:
23
>hi,
>syntax error
>>>hi all,
>>>i try via procedure valid to do this statment to get 1,2 ...11,12....
>>>if i press at number 1 at mykeybord i see at my textbox and mylist number 10, but i need to see number 1 as example
>>>this the statment i try
>>>
>>>thisform.text1.Value=val(this.value)&& i try == i get error mesaage
>>>
>>>thanks.

>>

Mohammed, try this
thisform.text1.Value=IIF(VARTYPE(this.value)="C",val(this.value),This.Value)
First time the value is Char but next time the value is alawys N
_______________________________________________________________
Testing displays the presence, not the absence of bugs.
If a software application has to be designed, it has to be designed correctly!
_______________________________________________________________
Vladimir Zografski
Systems Analyst
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform