PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

Accueil → WINDEV 25 → WX - Alias de tabela
WX - Alias de tabela
Débuté par BOLLER, 22 sep. 2017 18:15 - 1 réponse
Membre enregistré
3 655 messages
Popularité : +175 (223 votes)
Posté le 22 septembre 2017 - 18:15
Olá

Fui consultado sobre Alias de tabela, segue aqui o link sobre o assunto

http://doc.windev.com/?3044176&name=halias_function


:merci:

--
Adriano José Boller
______________________________________________
Consultor e Representante Oficial da
PcSoft no Brasil
+55 (41) 99949 1800
adrianoboller@gmail.com
skype: adrianoboller
http://wxinformatica.com.br/
Membre enregistré
3 655 messages
Popularité : +175 (223 votes)
Posté le 23 septembre 2017 - 03:27
// Data Source variable to handle the alias after its creation
OrderCheck is Data Source <Description=Order>
// New feature of version 19:
// <description=Order> is used to get the code completion
// for the items found in the Order file

// Create an alias for the "Order" file
IF HAlias(Order, OrderCheck) = True THEN
// "OrderCheck" can now be used in processes.
// It behaves like the "Order" file described in the analysis.
// By default, the name of the associated physical file corresponds to
// the name of the data source, therfore "OrderCheck" in this case
// To handle the same physical file as the initial one, the name must be modified:
HChangeName(OrderCheck, Order..PhysicalName)
// To use a file on another database or in another directory,
// you must use HChangeConnection or HChangeDir
ELSE
Error("Failure creating the alias", HErrorInfo())
RETURN
END


--
Adriano José Boller
______________________________________________
Consultor e Representante Oficial da
PcSoft no Brasil
+55 (41) 99949 1800
adrianoboller@gmail.com
skype: adrianoboller
http://wxinformatica.com.br/