Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What Column am I In?
Message
From
24/08/2000 14:46:12
Cheryl Qualset
Qualset Computer Consulting
Davis, California, United States
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00406230
Message ID:
00408925
Views:
54
>It almost worked....
>
>Here's what I tried:
>
>I put colrule(varread()) in the Field Validation Rule of column ADDRESS_LINE_ONE_TX, and colrule.prg looks like this:
>
>  parameter cColName
>  cValue = proper(eval(cColName))
>  do case
>    case cColName = 'ADDRESS_LINE_ONE_TX'
>    ? 'Column Name - ' + proper(cColName)
>    ? 'Column Value - ' + cValue
>    replace &cColName with cValue
>  endcase
>return .t.
>
>When I make a change in the column, I now get an endless loop. I think VFP is constantly replacing the field. Can you think of a way to make it just replace once?
>
>Thanks more!

You might add a test to see if eval(cColName) is already equal to cValue and not replace it if it is the same.

Cheryl
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform