Questions tagged as 'advpl'

1
answer

How to analyze performance impact of a code snippet in ADVPL?

I have the following code in ADVPL: Static Function linhaJson(cTabela, cChave, lVerificaExclusao) local cTipo local xResult local cJson := "{" dbSelectArea("ZX1") ZX1->(dbSetOrder(1)) ZX1->(dbGoTop()) ZX1->...
asked by 19.11.2018 / 19:22
2
answers

Removal of excess white space

How to remove white space within a string ? It would be to remove spaces from a text string, except for simple spaces between words. Like the "tidy up" function in Excel.     
asked by 02.10.2017 / 20:23
2
answers

How to create an optional parameter in ADVPL?

In several functions documented by Totvs there are optional parameters. I would like to create an optional parameter in my function, how to do it? I want to make the updEnvio function get a vector (of recno s) as an optional par...
asked by 14.11.2018 / 15:40
1
answer

How to change the URL in the Microsiga Totvs application browser

The default Microsiga Totvs page has its own default browser, what are the settings to allow the user to change the URL? Only the default browser home page for the machine you are using appears,     
asked by 18.04.2014 / 19:13
2
answers

Array copy in ADVPL

In ADVPL what's the difference: aArray1 := {"A", "B", "C"} aArray2 := aArray1 or aArray2 := aClone(aArray1)     
asked by 18.08.2016 / 22:02
2
answers

Generating reports using Top Connect in Advpl

When creating reports, using the Advpl language, the most practical is to select this data via Top Connect which is a software interface between the application and the DBMS. You create a query that is processed and the Top returns a temporary f...
asked by 04.06.2015 / 19:27
2
answers

Is there anything in ADVPL equivalent to the lambda function of Java?

I'm servicing an ADVPL project. In it, I have some source files. Among these sources, I have an information miner in the GEO1 file and a communicator of the information mined in the GEO3 file. In the initial operation, the loads were low and...
asked by 16.11.2018 / 15:41
1
answer

Read a DBMS Procedure in ADVPL

Is it possible to read a DBMS Procedure in ADVPL (TOTVS language) handling the return of a Cursor? Is there an object? The bank in question is Oracle. create or replace PACKAGE abc IS TYPE abcCursor IS REF CURSOR; END; create or repl...
asked by 06.10.2017 / 23:57
1
answer

How do you read the ADVPL profiler report?

Recently I asked a question about how to analyze the impact of a code snippet in ADVPL. The big @ follow0984 gave a great answer , and even with my little intimacy with Protheus I was able to link the profiler and get a report. However, I ha...
asked by 29.11.2018 / 22:07
1
answer

How to concatenate one vector in another elegantly in ADVPL?

I have two vectors of numbers, aBuffer and aCandidato . Depending on a condition (external to the vector), I need to have aBuffer receive the contents of aCandidato to work on it later. aBuffer will be used by...
asked by 07.12.2018 / 02:35