Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Willem-Jan van Ede
  Where is Willem-Jan van Ede?
 Zeist
 Netherlands
 Willem-Jan van Ede
 Tags
Subject: macro substitution with form properties
Thread ID: 34081 Message ID: 34081 # Views: 2 # Ratings: 0
Version: Visual FoxPro 7 Category: Forms
Date: Monday, December 08, 2003 5:38:26 PM         
   


Hi there,

I have some problems with macro substitution with form properties and i did some testing in a brand new form:
in the init i run this code:
thisform.AddProperty('ctest')
thisform.ctest = "'xxx','yyy','zzz'"

MESSAGEBOX(INLIST('xxx', thisform.ctest ))

When i run the form the messagebox gives me ".f.".

Instead of using the form property i save the value to a variable:
thisform.AddProperty('ctest')
thisform.ctest = "'xxx','yyy','zzz'"
lctest=thisform.ctest

MESSAGEBOX(INLIST('xxx', &lctest ))

Now when i run the form the messagebox gives me ".t."!!!

Can you tell me how to make the first example work, WITHOUT using variables?

T.i.a.

Willem-Jan van Ede

Vektis BV
The Netherlands

"I still have more questions than answers..."

ENTIRE THREAD

macro substitution with form properties Posted by Willem-Jan van Ede @ 12/8/2003 5:38:26 PM
RE: macro substitution with form properties Posted by Ken Blum @ 12/8/2003 8:19:35 PM
RE: macro substitution with form properties Posted by Willem-Jan van Ede @ 12/9/2003 8:45:19 AM