Error Msg : error occured when setting ..proerty

|
|
|
EnigmaVariation
|
Objective : copy/paste code from an ActionEvent in 1 form to perform same task in another.
I have an old form created in P5 (or possibly in P7) that synchronises a line object placed in a table frame to the record that has focus. (to open this old form I had to ugrade 3 LU tables to P7 format).
Initially the line did not synchronise, however it does now. Whilst the line will move with the record at each move I get the following error msg "An error occured when setting the property named 'position' of the object named 'MainRecord' of type 'Record' " with sub msg "You do not have write access to this property It is read only. It cannot be modified" Whilst the properties panel gives the apparent value options of true or false it will not allow me to select False for {Read only}.
I notice that in the property box on the old form the 'Read only' property is absent.
I am running P9 on Win XP installed on VirtualBox mounted on Vista host (I also use the same setup on Mac OS host and am thinking of migrating to Linux on the same basis.
The code used with highlighted text being the variation from original form in the Event {Action} is
method action(var eventInfo ActionEvent)
var ptRecordPos, ptMarkerPos, ptRecordSize point eventID smallInt liRecordHeight longInt uiRecordBox, uiMarker, uiTableFrame, uiContainer uiObject endvar
eventID = eventInfo.id()
switch case (eventID = DataArriverecord) or (eventID = DataRefresh): doDefault
uiTableFrame.attach(self.container) uiContainer.attach(uiTableframe.container) uiMarker.attach(LineMainCat) uiRecordBox.attach(BOOKC1LU.MainCategory) ptrecordSize = self.size liRecordHeight = ptRecordSize.y()
ptRecordPos = self.position uiTableFrame.convertPointWithRespectTo(uiContainer, ptRecordPos, ptRecordPos)
ptMarkerPos = uiMarker.position ptMarkerPos.setY(ptRecordPos.y() + liRecordHeight) uiMarker.position = ptMarkerPos
ptMarkerPos = uiRecordBox.position ptMarkerPos.setY(ptRecordPos.y() + liRecordHeight) uiRecordBox.position = ptMarkerPos
endSwitch
endMethod
|
|
Posted 6 years ago (Thread Starter)
|
|
| About EnigmaVariation |
|
Approved member.
Member subscribes to this thread with a verified email.
Post ID #18239, 3 replies
Thread Started 11/12/2020 3:05:09 AM
View Counter=685
Last Reply Posted 11/13/2020 7:12:59 AM)
|
|
|
|
Location=Gomer, -- FR
|
|
| |
|
|
| Moderator |
|
Steven.G
|
it DOES sync, but the ReadOnly says it didn't?
is there a higher-level "position" property that needs to be changed first, to change this? like a "max size" property that keeps you from changing a regular "size" property?
Steven Green Senior Software Engineer Paradox Support Specialist DOS/WIN
Prestwood IT Solutions 8421 Auburn Blvd, Suite 256, Citrus Heights, CA 95610 Office: 916-726-5675 | Fax: 916-726-5676 | http://www.prestwood.com
|
|
Posted 6 years ago
|
|
| About Steven.G |
|
Approved member.
Member subscribes to this thread with a verified email.
|
Old Account!
If this is your account, sign in to activate web presence data (sign in quarterly to keep active). Alternatively, you can subscribe to our monthly eMag with a valid email address.
|
|
Web Presence Hidden.
Once above is taken care of, full Profile content will display including back links, about me, my message, custom Profile html,
social networking links, message board signature, company profile, etc.
|
Post ID #18240 (Level 2)
and Parent is 18239
Reply Posted 11/12/2020 5:57:46 AM
|
|
|
|
Location=Myrtle Beach, SC USA
|
|
| |
|
|
|
EnigmaVariation
|
"it DOES sync, but the ReadOnly says it didn't?"
Correct in that is does sync but the ReadOnly does not provide me with any understandable information as I am not trying to edit anything, only move from one record to another in a table frame within a form.
I am not a programmer so my coding knowledge is limited as is my understanding of the deeper working of Pdox. As a result, I fail to see the connection between {position} & {size}. Size of what? I am simply trying to change focus and drag a reluctant line with me !!
The form itself is simple as it is a classification lookup for the main DB. There are only 6 objects in total, 3 table frames (2 linked), the line, a text box and a field box that currently performs the same function as the line. (I tried to attach a screen shot but your system wiped out my 1st edit!!)
|
|
Posted 6 years ago (Thread Starter)
|
|
| About EnigmaVariation |
|
Approved member.
Member subscribes to this thread with a verified email.
Post ID #18242 (Level 3)
and Parent is 18239
Reply Posted 11/13/2020 2:16:46 AM
|
|
|
|
Location=Gomer, -- FR
|
|
| |
Most Recent Post
|
|
| Moderator |
|
Steven.G
|
let me see if I understand the context, first.. you're using a form to display a lookup table, instead of using the built-in lookup help, and move to the appropriate lookup record, as you move thru the main table.. yes?
Steven Green Senior Software Engineer Paradox Support Specialist DOS/WIN
Prestwood IT Solutions 8421 Auburn Blvd, Suite 256, Citrus Heights, CA 95610 Office: 916-726-5675 | Fax: 916-726-5676 | http://www.prestwood.com
|
|
Posted 6 years ago
|
|
| About Steven.G |
|
Approved member.
Member subscribes to this thread with a verified email.
|
Old Account!
If this is your account, sign in to activate web presence data (sign in quarterly to keep active). Alternatively, you can subscribe to our monthly eMag with a valid email address.
|
|
Web Presence Hidden.
Once above is taken care of, full Profile content will display including back links, about me, my message, custom Profile html,
social networking links, message board signature, company profile, etc.
|
Post ID #18243 (Level 4)
and Parent is 18239
Reply Posted 11/13/2020 7:09:34 AM
|
|
|
|
Location=Myrtle Beach, SC USA
|
|
Revive Thread!
Add a comment to revive this old thread and make this archived thread more useful.
| Thread #18239 Counter |
| 685 |
|
Since 11/12/2020
|
|
|