Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Stefan Wuebbe
  Where is Stefan Wuebbe?
 Hamburg
 Germany
 Stefan Wuebbe
 To: vaishali maske
  Where is vaishali maske?
 mumbai
 India
 vaishali maske
 Tags
Subject: RE: query
Thread ID: 209253 Message ID: 209262 # Views: 1 # Ratings: 0
Version: Visual FoxPro 8 Category: Errors & Debugging
Date: Friday, December 26, 2008 1:11:25 PM         
   


> Hi,
>
>
> I write code for displaying telephone no.,fax no,emailid,website of clients.it 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 coding.In 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[1] 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?


hth
-Stefan

ENTIRE THREAD

query Posted by vaishali maske @ 12/26/2008 12:15:02 PM
RE: query Posted by Jonel Villanueva @ 12/26/2008 1:10:55 PM
RE: query Posted by Stefan Wuebbe @ 12/26/2008 1:11:25 PM
RE: query Posted by tushar @ 12/26/2008 1:23:01 PM