FORUMS PROFESSIONNELS
WINDEV
,
WEBDEV
et
WINDEV Mobile
Accueil
|
Messages récents
|
Connexion
|
Déconnexion
|
Français
Accueil
→
WINDEV 2024
→
Write to HFCS File outside project (not in analysis)
Write to HFCS File outside project (not in analysis)
Débuté par Joel, 16 avr. 2014 19:35 - 4 réponses
Connectez-vous…
Joel
#1
Posté le 16 avril 2014 - 19:35
Hi everyone -
Anyone have a nifty way to write data into a HFCS file if the analysis is not in the project?
Signaler
0
0
Allard
#2
Posté le 16 avril 2014 - 21:33
Hi
What do you want to do? With Hchangeconnection() you can define an other db.
regards
Allard
Signaler
0
0
Alexander Predl
#3
Posté le 16 avril 2014 - 21:34
Hi,
this one can be done, by hdescribefile, hchangeconnection aso.
You need to describe the structure of the external files, fields, keys. With hchangeconnection you open the connection only for that files, that you described. But if the external file is named equal to a existing file, you need to use halias.
But another way is, to open the external analysis, then hchangeconnection for the external files. After adding/changing external files, you need to reopen the project analysis.
yours
Alex
Signaler
0
0
Piet van Zanten
#4
Posté le 17 avril 2014 - 01:06
Hi Joel,
Using queries is very easy.
I'm using a WD16 program to read files from a WB18 analysis (which cannot be opened by WD16).
But using HDeclareExternal you can still read them.
First you describe the connection and open it.
Then you do something like:
dsMySource is data source HDeclareExternal("MyFile1.fic","MyFile1",ct_MyConnection) HDeclareExternal("MyFile2.fic","MyFile2",ct_MyConnection) sSQL=[ SELECT * FROM MyFile1 WHERE xxxxx ORDER BY xxxxx ] sSQL=StringBuild(sSQL,yourParams) HExecuteSQLQuery(dsMySource,hModifyFile,sSQL) You don't even need to describe the files, just know the item names and go.
Just search and modify the resulting records using h commands.
Regards,
Piet
Signaler
0
0
Joel
#5
Posté le 18 avril 2014 - 21:11
Awesome - Thanks Everyone!
J
Signaler
0
0
→ Revenir à WINDEV 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (précédentes versions)
Français
English
Español
Portuguesa
Fermer cette fenêtre
Type de recherche
Uniquement les sujets
Tous les messages
Période de recherche
Date indifférente
Moins d'une heure
Moins de 24 heures
Moins d'une semaine
Moins d'un mois
Moins d'un an
Annuler
Aperçu de votre message
Ajouter une image
Importer une image depuis une URL
Envoyer une image depuis un fichier de votre disque
Déposez ici un fichier ou cliquez sur "Parcourir..."
ou
Annuler
0%
WLangage
SQL
XML, HTML
JAVA, Javascript
Texte