logo
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Print LOGic version in a report
K8ZM
#1 Posted : Tuesday, July 21, 2026 11:42:28 AM(UTC)
bwilliams

Rank: Advanced Member

Groups: Registered
Posts: 614
Location: Mentor, OH

Thanks: 148 times
Was thanked: 235 time(s) in 212 post(s)
I want to be able to add a statement to some of my reports to print the current version number. Something like v10.00.34 or similar. Is this possible ??

Thanks,
Brad K8ZM
1 user thanked K8ZM for this useful post.
WN4AZY on 7/26/2026(UTC)
Sponsor
Note: We receive a commission from Amazon when you purchase via this link. It does not affect your cost. Thank you!
WN4AZY
#2 Posted : Sunday, July 26, 2026 4:58:42 PM(UTC)
admin

Rank: Administration

Groups: Administrators, Beta Testers
Posts: 3,234
Man
Location: Auburn, GA

Thanks: 1125 times
Was thanked: 546 time(s) in 456 post(s)
Good idea. Will do it. Will be in the next update 10.0.35. Will be a few days.

This is the expression you will use:

GetVersion(4)

Tnx & 73,

Dennis WN4AZY
1 user thanked WN4AZY for this useful post.
K8ZM on 7/27/2026(UTC)
K8ZM
#3 Posted : Friday, July 31, 2026 3:03:39 PM(UTC)
bwilliams

Rank: Advanced Member

Groups: Registered
Posts: 614
Location: Mentor, OH

Thanks: 148 times
Was thanked: 235 time(s) in 212 post(s)
Hi Dennis,

Tried using this but get "can't find GetVersion(4)". Does it need a table reference like Global or Report ?? I found Version in the Reports table but it only returns the 1st number of the last 2 numbers in the version, i.e., if version was 10.0.35, its returning 3 but not 5. It looks like its only a 2-character field but not sure why it would'nt return 35. Don't know if or where this Version variable is used but since it partially works is it possible to make it 8 characters, i.e. 10.00.35?? GetVersion(4) I guess is supposed to return the last 4 characters of the version number??

Sorry, I'm missing something......surprised??

Thanks,
Brad, K8ZM
WN4AZY
#4 Posted : Friday, July 31, 2026 3:56:32 PM(UTC)
admin

Rank: Administration

Groups: Administrators, Beta Testers
Posts: 3,234
Man
Location: Auburn, GA

Thanks: 1125 times
Was thanked: 546 time(s) in 456 post(s)
Not sure what is going on. Same old story, it works here. You don't have to do anything to set up for it. Just add the expression to the report.

First check Help/About and make sure you really have version 10.0.35.

Then go to tools/advanced/database commands. Type

? getversion(4)

followed by {Enter}. It should display 10.0.35.

I admit I never actually tested it in the report writer. But it works. See the attached example. I added getversion(4) to the northwest corner of the page. Uncompress into the REPORT folder inside where LOGic is installed.

Let me know!
File Attachment(s):
log_getversion().zip (7kb) downloaded 4 time(s).
1 user thanked WN4AZY for this useful post.
K8ZM on 7/31/2026(UTC)
K8ZM
#5 Posted : Friday, July 31, 2026 9:36:31 PM(UTC)
bwilliams

Rank: Advanced Member

Groups: Registered
Posts: 614
Location: Mentor, OH

Thanks: 148 times
Was thanked: 235 time(s) in 212 post(s)
It "always" works over there !!! BigGrin

So, why I "thought" it didnt work is because I added it to a report, then in the expression builder clicked on "Verify" and it reported "Invalid subscript reference". So just assumed it would'nt work.....BUT....as usual, I went back and added it anyways, ran the report and like MAGIC....there it is !

Sorry, but I did mention "I must be missing something" Confused

As Usual......Thanks Dennis !!

Brad, K8ZM
File Attachment(s):
1 user thanked K8ZM for this useful post.
WN4AZY on 8/3/2026(UTC)
WN4AZY
#6 Posted : Monday, August 3, 2026 9:33:30 AM(UTC)
admin

Rank: Administration

Groups: Administrators, Beta Testers
Posts: 3,234
Man
Location: Auburn, GA

Thanks: 1125 times
Was thanked: 546 time(s) in 456 post(s)
Not sure why Verify doesn't see it. Will play around when I get a chance.
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF 1.9.5.5 | YAF © 2003-2011, Yet Another Forum.NET
This page was generated in 0.037 seconds.