>>>I'd like to add check boxes to a form based upon the number of records in a table (listing individuals who may or may not receive an auto email). I did this before on a previous job, so I know it's not a difficult job, but I was unable to take my code with me to use for examples, and three years later cannot recall the technique.
>>>
>>>Can anyone out there help?
>>
>>select myTable
>>lnI = 0
>>scan
>> lnI = m.lnI + 1
>> thisform.NewObject('chk' + transform(m.lnI), 'myCheckBoxClass','myClasslib')
>> with evaluate('thisform.chk' + transform(m.lnI))
>> .top =
>> .left =
>> .visible = .t.
>> endwith
>>endscan
>>
>>From the top of my head.
>
>That's what I was looking for. Thanks so much.
You're welcome.
If it's not broken, fix it until it is.
My Blog