Hi All, I'm trying to chang

|
Hi All, I'm trying to chang in ObjectPAL topic (part of our Corel Paradox / ObjectPAL Coding group).
Quick Search:
Hi All
Hi All m
trying chang
|
|
|
|
PS_3060
Altro Transformers
|
Hi All, I‘m trying to change the first field in a table which has copied data from another table.
I have tried using the following code but it does not change the last record. I have tried this code as a stand alone bit of code on another button on the form and it works. The variable as can be viewed and are correct
Paradox 11 is the version.
if not tc2.open(":caliachData:CopyWindingData.DB") then
errorshow() else
while tc2.eot() = false tc2.edit()
if tc2.fldTrfWdgPartNum = oldpno then
tc2.fldTrfWdgPartNum = cpno
tc2.nextrecord()
Endif endwhile Endif
Thanking yo in advance
Cheers
Bill
|
|
Posted 6 years ago (Thread Starter)
|
|
| About PS_3060 |
|
Membership pending.
Member subscribes to this thread with a verified email.
|
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 #18229, 3 replies
Thread Started 11/7/2020 6:15:35 PM
View Counter=788
Last Reply Posted 11/11/2020 9:54:29 PM)
|
|
|
|
Location=Aireys Inlet AU
|
|
| |
|
|
| Moderator |
|
Steven.G
|
yes, that should work, unless you have a postrecord failure, invalid lookup value, etc
but you can also
scan tc2:
endscan
and the edit/endedit goes outside the while or the scan
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 #18230 (Level 2)
and Parent is 18229
Reply Posted 11/9/2020 5:46:35 AM
|
|
|
|
Location=Myrtle Beach, SC USA
|
|
| |
|
|
|
rum
|
I have found that when I use that TC.EOT() = False format for my loop,
If I fail to to properly close my tcursor, then the last record change will fail to post.
I think you need to add these lines after the endWhile
tc2.EndEdit() txc2.Close()
|
|
Posted 6 years ago
|
|
| About rum |
|
Membership pending.
Member subscribes to this thread with a verified email.
|
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 #18231 (Level 3)
and Parent is 18229
Reply Posted 11/9/2020 6:17:36 AM
|
|
|
|
Location=Frankfort, KY USA
|
|
 |
Most Recent Post
|
|
|
PS_3060
Altro Transformers
|
Thanks, worked perfectly..
|
|
Posted 6 years ago (Thread Starter)
|
|
| About PS_3060 |
|
Membership pending.
Member subscribes to this thread with a verified email.
|
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 #18238 (Level 1.1)
Reply to 18231
and Parent is 18229
Thread Started 11/11/2020 9:53:37 PM
|
|
|
|
Location=Aireys Inlet AU
|
|
Revive Thread!
Add a comment to revive this old thread and make this archived thread more useful.
| Thread #18229 Counter |
| 788 |
|
Since 11/7/2020
|
|
|