Karen, Code in SYS_REPORTS3 and SYS_LABELS3 to the best of my knowledge doesn't allow an option for storing the code compressed as you do for SYS_FORM3. In addition, the code is not stored as just plain text as an uncompressed form of the form code. It is a combination of plain text keywords with the keyword values stored as "encoded" values. Also, the length of the keyword Name is stored/embeded the the code stream.
Having studied the code in hopes of de-cyphering it. I have deternied that you would have to process the code character by character. Once pass a brief header you would have 1) size of keyword in 1 char binary 2) the keyword in plain text 3) the encoded value for the keyword 4) size of next keyword ... repeat steps 1-3 until end of code Sticking point is for each keyword is you need a table documenting how values for the keyword is encoded so you could acquie the correct number of bytes and decode it. Then you would have to reencode the corrected value. I don't know if header contains some field that contains overall size of Report/Label code. All in all uncompressed Form code is way more human readable friendly and changeable by a knowledgeable person. Jim Bentley American Celiac Society [email protected] tel: 1-504-737-3293 ________________________________ From: "[email protected]" <[email protected]> To: RBASE-L Mailing List <[email protected]> Sent: Tuesday, April 28, 2009 12:42:52 PM Subject: [RBASE-L] - Re: Report will not open Duh, you're right Mike. I forgot we were talking about reports (hint for next time: look at the email subject). Since both forms and reports are stored in the .rb4 file, I wonder why reports are different? I'm assuming reports are stored "compressed" like the option we have in forms? Boy, I would sure love to have the same option for reports Karen Except it won't work on Reports... ----- Original Message ----- From: <[email protected]> To: "RBASE-L Mailing List" <[email protected]> Sent: Tuesday, April 28, 2009 10:00 AM Subject: [RBASE-L] - Re: Report will not open >Tom: Glad my suggestion prompted your solution! But I just tried >something >else here. I created a temp table, created a form based on it, and in >the >"on >before design eep", I dropped the temp table then put the temp table >definition >in there. Saved the form. Then I went into the "on before design" and >purposely >made a change to the table definition that would make the table not work >(left off a datatype). Tried to bring up the form and of course it >wouldn't come up. >I did an "edit all from sys_forms3", edited sys_data and easily found the >code >at the beginning. Changed the code to make it correct, saved it, and now >the >form comes up. So in your case you didn't need to bother adding in the >old >names; >you could have gone into sys_forms3 and just modify the code. > >Karen > >

