>Im having a little problem. I've created a new property in a form and called it OLDRECORD. in a Find button click event I have coded the following:
>
>thisform.oldrecord.value=recno()
>ON key label enter keyboard chr(23)
>ON key label rightmouse keyboard chr(23)
>BROWSE nomodify noappend
>ON key label enter
>ON key label rightmouse
>IF lastkey() =27
> GO(thisform.oldrecord)
>ENDIF
>thisform.show
>thisform.buttons
>
>when I run the form I get an error "UNKNOWN Member OLDRECORD"
>I run it in the debuger and it blows out at the first line of the click method what am i doing wrong? Please Help
>
>Bill
Bill,
"oldrecord" is a property not an object, so it doesn't have a "value" property. As already mentioned just removing ".value" (as in go ..) would cease your problem. However if this property is only used here locally, you don't need to create a property at all :
lnOldRecord=recno()
ON key label enter keyboard "{Ctrl+W}"
ON key label rightmouse keyboard "{Ctrl+W}"
BROWSE nomodify noappend
ON key label enter
ON key label rightmouse
IF lastkey() =27
GO lnOldRecord
ENDIF
thisform.buttons()
Cetin