FORUMS PROFESSIONNELS
WINDEV
,
WEBDEV
et
WINDEV Mobile
Accueil
|
Messages récents
|
Connexion
|
Déconnexion
|
Français
Accueil
→
WEBDEV 2024
→
get the ??? of the ???_WEB directory at runtime (server)
get the ??? of the ???_WEB directory at runtime (server)
Débuté par meikl, 31 aoû. 2016 13:21 - 3 réponses
Connectez-vous…
meikl
#1
Membre enregistré
118 messages
Posté le 31 août 2016 - 13:21
Hi members,
at the deployment you can change the "site" name in the field "Deployment name of the Site".
How to get the name at Runtime at serverCode?
thanks
meikl
Signaler
0
0
Michael George
#2
Posté le 09 septembre 2016 - 10:56
Our team was unable to find a function that specifically supplied the site name so instead we opted to use the fCurrentDir() command. This will return where your website currently exists on the server during runtime. If you always have a set of predefined names for your site then you can use a switch statement to do a comparison to determine what your current site name is. For example:
sMyDir is string = fCurrentDir()
SWITCH True
CASE Contains(sMyDir,"SiteA",IgnoreCase)
INFO("Site A")
CASE Contains(sMyDir,"SiteB",IgnoreCase)
INFO("Site B")
END
Signaler
0
0
meikl
#3
Membre enregistré
118 messages
Posté le 09 septembre 2016 - 13:14
Thanks Michael,
will try
regrads
meikl
Signaler
0
0
Fabrice Harari
#4
Posté le 09 septembre 2016 - 13:45
Hi
you can get that information from the curent URL.
Best regards
--
Fabrice Harari
International WinDev, WebDev and WinDev mobile Consulting
Ready for you: WXShowroom.com, WXReplication (open source) and now WXEDM
(open source)
More information on
http://www.fabriceharari.com
Le 9/9/2016 à 2:56 AM, Michael George a écrit :
Our team was unable to find a function that specifically supplied the
site name so instead we opted to use the fCurrentDir() command. This
will return where your website currently exists on the server during
runtime. If you always have a set of predefined names for your site
then you can use a switch statement to do a comparison to determine what
your current site name is. For example:
sMyDir is string = fCurrentDir()
SWITCH True
CASE Contains(sMyDir,"SiteA",IgnoreCase)
INFO("Site A")
CASE Contains(sMyDir,"SiteB",IgnoreCase)
INFO("Site B")
END
Signaler
0
0
→ Revenir à WEBDEV 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