-Collapse +Expand
Paradox
Search Paradox Group:

Advanced
Paradox To/From
To/FromCODEGuides
Paradox Store
PRESTWOODSTORE

Prestwood eMagazine

April Edition
Subscribe now! It's Free!
Enter your email:

   ► MB LobbyCorel Paradox / ObjectPAL Coding BoardObjectPAL Topic   Print This     

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
Aireys Inlet AU

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)
Comment Quote
About PS_3060
Visit Profile
Membership pending.
Member subscribes to this thread with a verified email.
Member pending approval.
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 
Joined=6 years ago   MB Posts=19  
Moderator
Steven.G
Myrtle Beach, SC USA

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
Comment Quote
About Steven.G
Visit Profile
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 
Joined=10 years ago   MB Posts=463  
rum
Frankfort, KY USA

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
Comment Quote
About rum
Visit Profile
Membership pending.
Member subscribes to this thread with a verified email.
Member pending approval.
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 
Joined=9 years ago   MB Posts=128  
Most Recent Post
PS_3060
Altro Transformers
Aireys Inlet AU

Thanks, worked perfectly..

 Posted 6 years ago (Thread Starter)
Comment Quote
About PS_3060
Visit Profile
Membership pending.
Member subscribes to this thread with a verified email.
Member pending approval.
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 
Joined=6 years ago   MB Posts=19  

Revive Thread!

Add a comment to revive this old thread and make this archived thread more useful.

Write a Comment...
Full Editor
...
Sign in...

If you are a member, Sign In. Or, you can Create a Free account now.


Anonymous Post (text-only, no HTML):

Enter your name and security key.

Your Name:
Security key = P1213A1
Enter key:
Icon: A Post    Thread    Idea    Important!    Cool    Sad    No    Yes    Includes a Link...   
Thread #18229 Counter
788
Since 11/7/2020
Go ahead!   Use Us! Call: 916-726-5675  Or visit our new sales site: 
www.prestwood.com


©1995-2026 Prestwood IT Solutions.   [Security & Privacy]