Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Property Error
Message
From
23/10/1998 09:54:00
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
23/10/1998 00:38:39
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
00149713
Message ID:
00149815
Views:
16
>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}"  && Just for readability
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
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform