Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Directly Editing SCT Files
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00252826
Message ID:
00252936
Views:
14
Dear Paul:

The help screen for CursorSource says that it is read-write at runtime and read only at development time. I need to be able to change it both in testing and in run time. I was going to edit the property directly at runtime and edit the memo field in development time.

I have two simple FoxPro 2.6 for Windows applications that I want to run under VFP and I have got to get the forms looking better as the FoxPro 2.6 SAY GET screens look really terrible under NT. There will be no more major modifications to these applications so I don't see any payback in converting them fully to an object oriented application.

I looked at the SCX file and found that this property is in the PROPERTIES memo field. Didn't see it before. It would be safer to change the SCX file directly.

Isn't there a function that I can use to sense whether I am in runtime or development mode?

Thanks
Bruce


>You can try it! :)
>
>No, I don't believe it is safe to do it in this way. The fact is that using low level functions you may damage the entire sct file, so, your form.
>
>If you use the scx as a dbf, you risk only one/several memo fields.
>
>BTW, why do you need to change the cursor in this way?
>
>Vlad
>
>>It would still be easier programmatically to change the cursor properties in the SCT file directly as it occupies a line to itself. Taking a quick peek at the file it looks like I could change the length of the text lines without damaging the integrity of the files, but then this is something I haven't tried. Do you think it is safe to change the SCT file programmatically if it is opened as a low-level file?
>>
>>Bruce
>>
>>
>>>The sct file is, in fact, a memo file and it's linked to a scx file, which is, in fact, a dbf.
>>>
>>>So, if you want to play with it outside the Form Designer, open the scx file as a dbf. The sct will be opened automatically as the corresponding memo file. Just be sure to make a backup before you do any changes...
>>>
>>>Vlad
>>>
>>>>It appears that the CursorSource is imbedded in the SCT file. Why not just open this file as a low-level file and change the subdirectory and database name to whatever I want it to be?
>>>>
>>>>Any hidden dangers with this approach?
>>>>
>>>>
>>>>Bruce
Bruce Strom

Prayer of St Ephrem:
O Lord and Master of My Life,
Take from me the spirit of sloth, meddling, ambition and vain talk.
But give me a spirit of prudence, humility, patience and love.
Yes Lord and King grant me to see my own sins and faults
and not judge my brother.
For You are Blessed Forever and Ever. Amen.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform