General information
Category:
Coding, syntax & commands
Sergey,
I took your last suggestion which worked fine when I deleted records
(Reserved2 field seems to hold No. of Cursor records + 1)
Now I am running into another problem.
I am adding programatically some 'Cursor' records to the SCX file.
When I change the reseved2 field to = No. of Cursor records + 1, it keeps coming up with an error when I try to MODI screen !!
I'm wondering must the 'Cursor' records be in any aprticular position on file. I just append them to the end of the file.
Thanks for your help,
Gerard
>Hi Gerrard,
>
>It looks like the number of DE records in SCX is stored in DE record in Reserved2 field. You'll have to ajust it after you delete/add DE records. Don't forget to pack SCX after that.
>
>>I have a requirement where I am programatically amending the SCX file.
>>I cannot understand the following behaviour:-
>>
>>1. I set up a brand new Form, with about 3 Text Boxes
>>2. In the Data Environment, I insert 3 tables
>>
>>This is fine and I can bring up the screen.
>>
>>3. I now Use the Scx file
>>4. I delete one of the Cursor records (i.e. Table in DE)
>>
>>I go back out and Modi Form again .. no problem ,and I can still see the Data Environment table I deleted..The form designer obviously ignores deleted records)
>>
>>5. I go out and PACK the scx table
>>6. I now try to MODI FORM and get :
>> Error loading File... Label2 (or one of its membere... Parent object calss is invalid....
>>
>>
>>I would have thought that by deleting one of the Tables from the DE (By using the .scx file) should not affect anything else
>>
>>I have tried this on a few different screens with different objects, but deleting a DE table record from the .SCX file always seems to cause a problem.
>>
>>Any help appreciated
>>
>>Regards,
>>
>>Gerard
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only