Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Feature not available
Message
De
16/04/2003 04:09:01
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
15/04/2003 16:33:31
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00778045
Message ID:
00778223
Vues:
20
This message has been marked as the solution to the initial question of the thread.
>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
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform