# \#code

**URL:** https://clarionhub.com/tag/code/143.md

[Latest](https://clarionhub.com/latest.md) · [Categories](https://clarionhub.com/categories.md) · [Tags](https://clarionhub.com/tags.md)

---

## [\`RECORDS\` on \`VIEW\` with \`FILTER\` always returns \`-1\` even when there are results](https://clarionhub.com/t/records-on-view-with-filter-always-returns-1-even-when-there-are-results/8585)

<div class="topic-metadata">

**Author:** [@ThaDaSoft](https://clarionhub.com/u/ThaDaSoft)\
**Replies:** 11\
**Last updated:** [July 1, 2026, 1:51am UTC](https://clarionhub.com/t/records-on-view-with-filter-always-returns-1-even-when-there-are-results/8585 "2026-07-01T01:51:38Z")

</div>

I am trying to get the amount of records found by a view with a filter - but RECORDS always returns -1 if the VIEW contains a filter - if I remove the filter it returns the correct count but this will be unfiltered. So …

---

## [A cryptographic version of RANDOM()](https://clarionhub.com/t/a-cryptographic-version-of-random/8300)

<div class="topic-metadata">

**Author:** [@CarlosGtrz](https://clarionhub.com/u/CarlosGtrz)\
**Replies:** 0\
**Last updated:** [June 17, 2025, 5:32am UTC](https://clarionhub.com/t/a-cryptographic-version-of-random/8300 "2025-06-17T05:32:54Z")

</div>

While fixing MakeSGuid I tested BCryptGenRandom and found it’s straightforward to use in Clarion for generating cryptographically secure random numbers. Clarion’s built-in RANDOM function uses a simple pseudo-random alg…

---

## [Another lexicographically sortable unique id generator](https://clarionhub.com/t/another-lexicographically-sortable-unique-id-generator/7503)

<div class="topic-metadata">

**Author:** [@CarlosGtrz](https://clarionhub.com/u/CarlosGtrz)\
**Replies:** 8\
**Last updated:** [June 17, 2025, 12:50pm UTC](https://clarionhub.com/t/another-lexicographically-sortable-unique-id-generator/7503 "2025-06-17T12:50:39Z")

</div>

Using randomly generated unique ids has a lot of advantages over table based autonumbered fields. The most common option is to use UUIDs/GUIDs, which are 128 bits long but commonly stored as a 36 bytes string. Another …

---

## [MiniAppFrame: A class for calling MDI processes from programs without an APPLICATION frame, for example, from Nettalk Web Services](https://clarionhub.com/t/miniappframe-a-class-for-calling-mdi-processes-from-programs-without-an-application-frame-for-example-from-nettalk-web-services/4567)

<div class="topic-metadata">

**Author:** [@CarlosGtrz](https://clarionhub.com/u/CarlosGtrz)\
**Replies:** 0\
**Last updated:** [October 31, 2021, 8:45pm UTC](https://clarionhub.com/t/miniappframe-a-class-for-calling-mdi-processes-from-programs-without-an-application-frame-for-example-from-nettalk-web-services/4567 "2021-10-31T20:45:27Z")

</div>

Some months ago, I had to publish data generated by our accounting system as Web Services. Nettalk has a very well-designed solution for this, and the existing process and reports already created tabular data that could …

---

## [Using WTSQuerySessionInformation to get client computer name when running in a remote session](https://clarionhub.com/t/using-wtsquerysessioninformation-to-get-client-computer-name-when-running-in-a-remote-session/4441)

<div class="topic-metadata">

**Author:** [@Rick\_UpperPark](https://clarionhub.com/u/Rick_UpperPark)\
**Replies:** 8\
**Last updated:** [September 4, 2021, 5:15pm UTC](https://clarionhub.com/t/using-wtsquerysessioninformation-to-get-client-computer-name-when-running-in-a-remote-session/4441 "2021-09-04T17:15:33Z")

</div>

If you’re application is running in a remote session (Terminal Services or RDP) and you need to get the name of the remote client you can use the attached class to call WTSQuerySessionInformation to get the information. …

---

## [Reset QBE from code? how to?](https://clarionhub.com/t/reset-qbe-from-code-how-to/3978)

<div class="topic-metadata">

**Author:** [@Clarion\_clarion](https://clarionhub.com/u/Clarion_clarion)\
**Replies:** 1\
**Last updated:** [March 23, 2021, 12:11pm UTC](https://clarionhub.com/t/reset-qbe-from-code-how-to/3978 "2021-03-23T12:11:33Z")

</div>

I am using the standard QBE button. What I need is to reset the QBE search from the code (not by clicking on the QBE button and click on Clear). Tried QBEx.Reset() but it reset query search string but browse still searc…
