Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Feature not available
Message
From
16/04/2003 09:08:21
 
 
To
16/04/2003 04:09:01
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00778045
Message ID:
00778277
Views:
23
>>Hi all,
>>
>>I can run this piece of code from VFP IDE without problem. I have an error: "1001. Feature is not available" when ran from an EXE.
>>
>>close data all
>>open data (cStruDBC) && source of stored procedures
>>cStruTimeStamp = dbgetprop('strudbc','database','comment')
>>copy procedures to 'struprocs.txt'
>>close database all
>>open data (cDataDBC) && target database
>>set database to (cDataDBC)
>>=dbsetprop('datadbc','database','comment',cStruTimeStamp)
>>*-- check if the procedure is null or empty
>>struContents = filetostr('struprocs.txt')
>>if empty(struContents) or isnull(struContents)
>>else
>>   append procedures from 'struprocs.txt' overwrite && error occurs here!!!
>>endif
>>erase struprocs.txt
>>
>
>Ramil,
>Append procedures is not supported at runtime.
>However you can do it indirectly :) A DBC is just another table. Procedure code and its compiled form are kept in 2 records' 'code' field.
>Check what gendbc produces for you and I'm sure you'll get the idea at once.
>PS:Hack the DBC at your own risk:)
>Cetin

Hi Cetin,

This is one of the options we've identified so far. This seems the quickest solution to my problem. Have you tried this or encountered any gotchas?
ramil
~~ learning to stand still
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform