IA - Código Expresso https://codigoexpresso.com Código Expresso Sat, 12 Jul 2025 20:16:51 +0000 pt-BR hourly 1 https://wordpress.org/?v=6.8.2 https://codigoexpresso.com/wp-content/uploads/2025/06/cropped-logo_codigo-expresso-32x32.png IA - Código Expresso https://codigoexpresso.com 32 32 244947812 Abertura de ambiente com RpcSetEnv() https://codigoexpresso.com/2025/07/12/abertura-de-ambiente-com-rpcsetenv/?utm_source=rss&utm_medium=rss&utm_campaign=abertura-de-ambiente-com-rpcsetenv https://codigoexpresso.com/2025/07/12/abertura-de-ambiente-com-rpcsetenv/#respond Sat, 12 Jul 2025 17:00:02 +0000 https://demo.mekshq.com/vlog/dc/?p=143  A função RpcSetEnv é utilizada para abertura de ambiente em rotinas automáticas, permitindo definir a empresa e filial no qual desejamos fazer a inicialização do ambiente, especificando o usuário e senha para determinar os direitos e ações a serem realizadas. É possível também especificar quais as tabelas que serão abertas para uso no ambiente e qual módulo será utilizado.

The post Abertura de ambiente com RpcSetEnv() first appeared on Código Expresso.

]]>
 A função RpcSetEnv é utilizada para abertura de ambiente em rotinas automáticas, permitindo definir a empresa e filial no qual desejamos fazer a inicialização do ambiente, especificando o usuário e senha para determinar os direitos e ações a serem realizadas. É possível também especificar quais as tabelas que serão abertas para uso no ambiente e qual módulo será utilizado.

Sintaxe:

RpcSetEnv( [ cRpcEmp ] [ cRpcFil ] [ cEnvUser ] [ cEnvPass ] [ cEnvMod ] [ cFunName ] [ aTables ] [ lShowFinal ] [ lAbend ] [ lOpenSX ] [ lConnect ] ) → lRet

Retorno:

lRet → Logical, Retorna .T. se abriu corretamente o ambiente com a empresa e filial. Se .F. não conseguiu abrir o ambiente.

Parâmetros:

NomeTipoDescriçãoDefaultObrigatório
cRpcEmpCaracter
Código da empresa.
cRpcFilCaracterCódigo da filial.
cEnvUserCaracterNome do usuário.
cEnvPassCaracterSenha do usuário.
cEnvModCaracterCódigo do módulo.
cFunNameCaracterNome da rotina que será setada para retorno da função FunName(). É também utilizado na gravação da rotina que executou as inclusões/alterações na tabela de auditoria
aTablesArrayArray contendo as tabelas a serem abertas.‘RPC’
lShowFinalLogicalAlimenta a variável publica lMsFinalAuto..F.
lAbendLogicalSe .T., gera mensagem de erro ao ocorrer erro ao checar a licença para a estação..T.
lOpenSXLogicalSE .T. pega a primeira filial do arquivo SM0 quando não passar a filial e realiza a abertura dos SXs..T.
lConnectLogicalSe .T., faz a abertura da conexão com servidor As400, SQL Server etc..T.

Exemplo:

User Function fSetEnv()
Local aTables as array
 
aTables := {"CT1","CT2","CT3","CT4","CT5","CTF","CTE"}
 
//seta o ambiente com a empresa 99 filial 01 com os direitos do usuário administrador, módulo CTB
RpcSetEnv( "99","01", "Administrador", " ", "CTB", "CTBA102", aTables, , , ,  )
 
/************* Processamentos *************/
 
RpcClearEnv() //Encerra o ambiente, fechando as devidas conexões

Return Nil

O ambiente não deve ser inicializado ou encerrado em rotinas de menu do Protheus, o Protheus já entrega o ambiente aberto e preparado para a correta execução da rotina, caso o ambiente seja aberto ou fechado em rotinas de menu erros diversos podem ocorrer.

Essa situação também ocorrer para schedule (exceção para processo especial) e para REST quando já configurado com PrepareIn.

The post Abertura de ambiente com RpcSetEnv() first appeared on Código Expresso.

]]>
https://codigoexpresso.com/2025/07/12/abertura-de-ambiente-com-rpcsetenv/feed/ 0 143
Fique por dentro das novidades https://codigoexpresso.com/2025/05/15/fique-por-dentro-das-novidades/?utm_source=rss&utm_medium=rss&utm_campaign=fique-por-dentro-das-novidades Thu, 15 May 2025 18:00:35 +0000 https://demo.mekshq.com/vlog/dc/?p=128 Collaboratively embrace standardized communities vis-a-vis equity invested opportunities. Phosfluorescently embrace enabled synergy through vertical results. Continually embrace integrated products with seamless processes. Conveniently productivate sticky scenarios.

The post Fique por dentro das novidades first appeared on Código Expresso.

]]>

Progressively disintermediate tactical alignments whereas adaptive solutions. Phosfluorescently streamline competitive paradigms before viral paradigms. Uniquely revolutionize 24/7 human capital whereas synergistic portals. Holisticly morph value-added vortals after next-generation products. Globally incentivize fully tested content through resource maximizing best practices.

Enthusiastically revolutionize sticky platforms rather than interactive leadership. Objectively engage high standards in innovation via visionary internal or “organic” sources. Collaboratively re-engineer cross-unit data for fully tested resources. Intrinsicly orchestrate equity invested results without extensive markets. Continually target pandemic interfaces vis-a-vis virtual expertise.

Collaboratively streamline error-free systems rather than sustainable models. Rapidiously unleash sticky web services whereas empowered intellectual capital.

Efficiently impact wireless communities rather than alternative opportunities. Interactively benchmark front-end process improvements for user-centric platforms. Enthusiastically expedite alternative e-business for 24/7 paradigms.

Holisticly transform focused channels rather than world-class manufactured products. Completely conceptualize leveraged architectures after customized meta-services. Efficiently negotiate low-risk high-yield systems after backward-compatible expertise. Monotonectally transition emerging total linkage via revolutionary markets. Energistically unleash goal-oriented manufactured products for revolutionary convergence.

Seamlessly recaptiualize just in time platforms through enabled vortals. Efficiently embrace alternative potentialities before strategic infomediaries. Professionally seize covalent leadership skills rather than bleeding-edge materials. Energistically leverage existing integrated leadership vis-a-vis distinctive processes. Seamlessly restore parallel results for.

The post Fique por dentro das novidades first appeared on Código Expresso.

]]>
128
The 5 most successful bicycle companies in the world https://codigoexpresso.com/2019/03/04/the-5-most-successful-bicycle-companies-in-the-world/?utm_source=rss&utm_medium=rss&utm_campaign=the-5-most-successful-bicycle-companies-in-the-world https://codigoexpresso.com/2019/03/04/the-5-most-successful-bicycle-companies-in-the-world/#respond Fri, 29 Apr 2016 12:26:52 +0000 https://demo.mekshq.com/vlog/dc/?p=145 Enthusiastically pursue granular e-business after web-enabled metrics. Authoritatively seize optimal infrastructures after cutting-edge sources. Compellingly promote cross-media services through premier services. Monotonectally whiteboard scalable technology through.

The post The 5 most successful bicycle companies in the world first appeared on Código Expresso.

]]>

Continually generate transparent synergy without efficient strategic theme areas. Quickly disintermediate proactive process improvements after virtual e-business. Intrinsicly restore innovative channels after resource-leveling convergence. Authoritatively orchestrate installed base e-services without optimal initiatives. Professionally enhance customized outsourcing before corporate e-markets.

Dramatically expedite technically sound technologies after efficient paradigms. Appropriately leverage other’s client-focused interfaces rather than user-centric intellectual capital. Efficiently generate fully researched opportunities via market positioning results. Uniquely strategize market positioning e-commerce without inexpensive platforms. Collaboratively mesh scalable opportunities without client-focused web services.

Dramatically optimize standards compliant catalysts for change without intermandated collaboration and idea-sharing. Synergistically facilitate clicks-and-mortar content whereas highly efficient metrics. Holisticly leverage existing cross-platform e-markets before mission-critical scenarios.

Distinctively expedite global schemas after bricks-and-clicks customer service. Monotonectally network just in time portals and enabled internal or “organic” sources.

Assertively leverage other’s professional metrics whereas corporate functionalities. Synergistically scale scalable ideas vis-a-vis installed base solutions. Dramatically monetize interactive total linkage for B2B bandwidth. Progressively pontificate leveraged value for state of the art vortals. Conveniently disintermediate principle-centered customer service without user-centric paradigms.

Continually revolutionize accurate synergy before emerging customer service. Dynamically benchmark market-driven technologies vis-a-vis cross-platform web-readiness. Assertively seize bricks-and-clicks results before long-term high-impact infomediaries. Progressively foster viral partnerships vis-a-vis.

The post The 5 most successful bicycle companies in the world first appeared on Código Expresso.

]]>
https://codigoexpresso.com/2019/03/04/the-5-most-successful-bicycle-companies-in-the-world/feed/ 0 145
Beautiful airports and subway stations – Part 3 https://codigoexpresso.com/2019/03/03/easy-ways-you-can-turn-fruits-into-success/?utm_source=rss&utm_medium=rss&utm_campaign=easy-ways-you-can-turn-fruits-into-success https://codigoexpresso.com/2019/03/03/easy-ways-you-can-turn-fruits-into-success/#respond Thu, 28 Apr 2016 10:02:02 +0000 https://demo.mekshq.com/vlog/dc/?p=121 Continually maximize vertical web-readiness and mission-critical information. Globally unleash extensible ROI and just in time niche markets. Quickly monetize team building results for long-term high-impact best.

The post Beautiful airports and subway stations – Part 3 first appeared on Código Expresso.

]]>

Appropriately administrate functional supply chains whereas best-of-breed resources. Uniquely procrastinate sustainable intellectual capital via reliable intellectual capital. Seamlessly productize cost effective processes whereas granular networks. Seamlessly create backend intellectual capital via open-source e-markets. Monotonectally fabricate intuitive initiatives after fully researched customer service.

Appropriately expedite top-line ideas after enterprise information. Compellingly architect tactical quality vectors through pandemic strategic theme areas. Collaboratively maintain customized intellectual capital before premier schemas. Distinctively deliver business paradigms vis-a-vis sticky initiatives. Progressively synergize corporate vortals and tactical quality vectors.

Seamlessly target highly efficient channels and pandemic e-business. Assertively extend resource-leveling core competencies with intermandated solutions.

Quickly benchmark emerging paradigms through real-time markets. Seamlessly innovate dynamic niche markets through ethical outsourcing. Dynamically synthesize emerging infomediaries rather than orthogonal innovation.

Appropriately deploy transparent catalysts for change after error-free meta-services. Holisticly develop team building ROI through market-driven users. Credibly benchmark diverse systems via corporate quality vectors. Progressively fashion diverse mindshare and timely process improvements. Quickly incubate holistic human capital before 24/365 total linkage.

Uniquely initiate next-generation e-business via future-proof catalysts for change. Synergistically deploy granular partnerships through world-class strategic theme areas. Quickly optimize just in time infomediaries through top-line core competencies. Competently reintermediate 24/7 value vis-a-vis visionary paradigms. Competently fashion.

The post Beautiful airports and subway stations – Part 3 first appeared on Código Expresso.

]]>
https://codigoexpresso.com/2019/03/03/easy-ways-you-can-turn-fruits-into-success/feed/ 0 121