dbTalk Databases Forums  

Re: Unlocking problem...

comp.databases.paradox comp.databases.paradox


Discuss Re: Unlocking problem... in the comp.databases.paradox forum.



Reply
 
Thread Tools Display Modes
  #21  
Old   
Liz McGuire
 
Posts: n/a

Default Re: Unlocking problem... - 04-10-2007 , 04:44 PM






Then it does it by luck - you should never have a variable with the same
name as an object. That's one reason we recommend prefixing variable
names - uioViewed instead of Viewed.

Liz


Kenneth wrote:
Quote:
Hi Liz,

I thank you for the information about the uiObject
declaration, but the code runs properly now with, or without
that entry.

All the best,

Reply With Quote
  #22  
Old   
Jim Moseley
 
Posts: n/a

Default Re: Unlocking problem... - 04-13-2007 , 11:36 AM







Jim,

Quote:
tc1 tCursor
PeopleKS form
Viewed uiObject
endVar

So Viewed is a uiObject variable as far as OPAL knows!

It's both a uiObject variable, and a field name. It all depends on your
scope.

If you use the var/endvar listed above, then in this method 'Viewed' is an
unassigned uiObject until you do something to it. Outside of this method,
'Viewed' would refer to the field name.

I think there have been a few comments on naming conventions. For a defined
uiObject, try to put 'ui' in its name, as in uiViewed.

HTH,
Jim Moseley


Reply With Quote
  #23  
Old   
Jim Moseley
 
Posts: n/a

Default Re: Unlocking problem... - 04-13-2007 , 11:37 AM




Sorry folks, I missed Liz's previous answer to this.

Jim Moseley

Reply With Quote
  #24  
Old   
Jim Hargan
 
Posts: n/a

Default Re: Unlocking problem... - 04-13-2007 , 01:01 PM



On 13 Apr 2007 12:36:06 -0400, Jim Moseley wrote:

Quote:
Jim,

tc1 tCursor
PeopleKS form
Viewed uiObject
endVar

So Viewed is a uiObject variable as far as OPAL knows!


It's both a uiObject variable, and a field name. It all depends on your
scope.

If you use the var/endvar listed above, then in this method 'Viewed' is an
unassigned uiObject until you do something to it. Outside of this method,
'Viewed' would refer to the field name.

I think there have been a few comments on naming conventions. For a defined
uiObject, try to put 'ui' in its name, as in uiViewed.

HTH,
Jim Moseley
That was my original point. If you looked at my earlier response, I
suggested removing the ambiguity by renaming the uiObject variable to
uiViewed. I did not realize that he had been trying to attach the uiObject
variable Viewed to the uiObject Viewed, but it scarcely matters. The error
was thrown because of an unassigned variable, not by naming a uiObject that
was out of view.

Jh


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.