Most voted "harbour" questions
8 questions
Sort by count of
-
4
votes2
answers106
viewsEquality comparison
I’m studying ADVPL and came across two ways to make the equality comparison. There are comparisons made with two signs of equal: if cVar == "Valor" endif But there are also a few cases that I found,…
-
3
votes3
answers460
viewsHow do I create a directory through the Harbour language?
How do I create a directory through the Harbour language? For example, I want to create a folder temp within the current directory from which the program is running.
-
3
votes1
answer224
viewsHow to implement unit tests for Clipper?
I have a legacy system developed in Clipper, an old programming language, similar to C and which had discontinued support for at least 20 years, being maintained until today by the project xHarbour,…
-
2
votes2
answers108
viewsDoes the use of the "alias-assignment" '->' operation interfere with the performance of the application?
In the descending languages of Clipper, there is an operator called "the alias. For example, I can take a field of one result set from that operator (example in ADVPL): cSQL += " SELECT " cSQL += "…
-
2
votes1
answer42
viewsHow to format a date in Harbour?
I’m learning the language Harbour. I’m seeing how this language works with dates. PROCEDURE MAIN() LOCAL date := Date() ? date RETURN This is returning me: 02/10/21 How could I do to format this…
harbourasked 3 years, 9 months ago Wallace Maxters 102,340 -
2
votes1
answer127
viewsLike reading a JSON on Harbour?
In PHP, to interpret a JSON file for the language, we can use the function json_decode. Already in Javascript, we can use JSON.parse. What about Harbour? Is there a role to interpret JSON? Example:…
-
1
votes0
answers33
viewsHow can I run Harbour on Apache?
For some languages to work in Apache, such as PERL or PHP, we can install the mod_perl or the mod_php. In PHP we still have the PHP FPM option. Already in the case of Python, we can use WSGI. What…
-
0
votes0
answers77
viewsWhat do those 3 initial bytes mean in the response read after Hbtip’s Open() Tipclienthttp() method?
When I call the Read() method, right after an Open() of the Tipclienthttp() class, I get a JSON string from a PHP page. However, I noticed that there are three bytes of strange characters that…