PC SOFT

PROFESSIONAL NEWSGROUPS
WINDEVWEBDEV and WINDEV Mobile

Home → WINDEV 25 → WX - Alias de tabela
WX - Alias de tabela
Started by BOLLER, Sep., 22 2017 6:15 PM - 1 reply
Registered member
3,657 messages
Popularité : +175 (223 votes)
Posted on September, 22 2017 - 6:15 PM
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/
Registered member
3,657 messages
Popularité : +175 (223 votes)
Posted on September, 23 2017 - 3:27 AM
// 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/