module/library version string? - Printable Version +- QB64 Phoenix Edition (https://qb64phoenix.com/forum) +-- Forum: QB64 Rising (https://qb64phoenix.com/forum/forumdisplay.php?fid=1) +--- Forum: Code and Stuff (https://qb64phoenix.com/forum/forumdisplay.php?fid=3) +---- Forum: Help Me! (https://qb64phoenix.com/forum/forumdisplay.php?fid=10) +---- Thread: module/library version string? (/showthread.php?tid=1692) |
module/library version string? - thesolarcode - 05-17-2023 Trying to implement version string per library. I don't want to have for each library a separate CONST or SUB/FUNCTION with different name just to get it's version string. I also don't want to hardcode the library names and versions in a single place. DATA / READ / RESTORE doesn't work, because RESTORE doesn't accept a variable. Any ideas how I could implement this? RE: module/library version string? - Petr - 05-17-2023 Hi, Restore need label name, not variable: Code: (Select All) For t = 1 To 4 RE: module/library version string? - RhoSigma - 05-17-2023 (05-17-2023, 08:11 PM)thesolarcode Wrote: Trying to implement version string per library. Here's a solution which I use for my libraries and tools. Although you still need a CONST, FUNCTION or similar (somehow you must define the version strings), you don't need to call each of the FUNCTIONs or examining each CONST just to get all version strings. There's just one FUNCTION SearchVers$(file$), which can examine e.g. the compiled EXE file of your program to identify all version strings in it. See here: https://qb64phoenix.com/forum/showthread.php?tid=2220 RE: module/library version string? - DSMan195276 - 05-18-2023 (05-17-2023, 08:11 PM)thesolarcode Wrote: I don't want to have for each library a separate CONST or SUB/FUNCTION with different name just to get it's version string. Can you clarify why you don't want to do this? What exactly is the goal? |