Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Feature not available
Message
De
16/04/2003 09:08:21
 
 
À
16/04/2003 04:09:01
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00778045
Message ID:
00778277
Vues:
24
>>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform