Here is a routine I have to attempt to "FREEZE" (only allow editing) in fields numbered 3 to highest field number in a table I want to BROWSE. As the number of fields is changeable I tried substuting as below for the "FREEZE" statement, but it doesn't work ? Is there a way around this that anyone used? (VFP8)
*-------------
LOCAL lcFreezeString
lcFreezeString = ""
SELECT prices
FOR i = 3 to FCOUNT()
lcFreezeString = lcFreezeString +(field(i))+", "
ENDFOR
lcFreezeString = LEFT(lcFreezeString,LEN(ALLTRIM(lcFreezeString))-1) && to remove trailing comma
BROWSE NODELETE NOAPPEND FREEZE (lcFreezeString)
*-------------