From: Stefan Wuebbe
To: vaishali maske
Visual FoxPro 8
Errors & Debugging
Friday, December 26, 2008 1:11:25 PM
This message was rated by:
> I write code for displaying telephone no.,fax no,emailid,website of
display correctly but when I type any new client name then it displays error data type mismatch.can you send me iif()code.I want to use iif condition in following
arrayperson if there is noone person name then it taks .f.
> my current coding is:-
> replace manu.person WITH arrayperson
> replace manu.telno WITH arraytele
> replace manu.faxno WITH arrayfaxno
> replace manu.emailid WITH arrayemailid
> replace manu.website WITH arrayweb
> replace manu.ADDRESS WITH arrayADD
Probably a debugging issue - "arrayperson" and the others are probably array variables, right? If so, why do you want to replace content of a single field with an entire array, would a single array element, like arrayperson match better?
In addition, a new, empty array contains boolean .F. in each element, so perhaps either asigning the desired type after dimensioning the arrays or using EVL() might work for you?
Posted by vaishali maske @ 12/26/2008 12:15:02 PM
Posted by Jonel Villanueva @ 12/26/2008 1:10:55 PM
Posted by Stefan Wuebbe @ 12/26/2008 1:11:25 PM
Posted by tushar @ 12/26/2008 1:23:01 PM