Go Back  DVD Talk Forum > General Discussions > Tech Talk
Reload this Page >

Anyone know Progress (4GL) programming?

Tech Talk Discuss PC Hardware, Software, Internet and Other Technology

Anyone know Progress (4GL) programming?

Old 07-26-05, 05:30 PM
  #1  
DVD Talk Hero
Thread Starter
 
Join Date: Jan 2000
Location: Montreal, Canada
Posts: 30,125
Received 6 Likes on 4 Posts
Anyone know Progress (4GL) programming?

Argh... I'm pretty new at this stuff so here's a question. I have to convert files from one system to another and here's the correspondence for a specific field:

From - To
---- ----
C P = 2
O = 0
C = 1
CPP = 5
CRP = 5

My code looks like this:

ASSIGN table.field1 = IF status = "C P" THEN 2
ELSE IF status = "O" THEN 0
ELSE IF status = "C" THEN 1
ELSE IF status = "CPP" THEN 5
ELSE IF status = "CRP" THEN 5 ELSE well nothing...

I don't want the last ELSE since I don't want to load anything but if I don't include it I get a syntax error. Is there a way around this or a better way to do this? This isn't bad since there's only 5 possible choices, but I've got other fields which have over 100...

Thanks.

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Thread Tools
Search this Thread

Archive - Advertising - Cookie Policy - Privacy Statement - Terms of Service - Do Not Sell My Personal Information

Copyright 2018 MH Sub I, LLC dba Internet Brands. All rights reserved. Use of this site indicates your consent to the Terms of Use.