This is the second time I get wrong results with the construct below:
If PM_Type.Text = "gif" Then
// Do something
ElseIf …
etc.
If I had an Else (default) clause, it is always executed regarless of the PopupMenu value.
Fr the first time, I do not know what I have done to make it work, but later that day, something changed and it started to work as it should.
Minutes ago, I started to port that change to another portion of the project (similar feature, but different enough to must be in a different PushButton).
And I get the same wrong behavior: nothing worked. Then, because some days ellapsed snce the first one was written, I set a variable and store the PopupMenu value in it. The new construct that now works is:
// Get the PopupMenu Contents
File_Type = PM_Type.Text
// b.add some more parameters
If File_Type = "gif" Then
// Do Something
ElseIf File_Type = "jpg" Then
etc.
The code build an URL with different parameters depending on the target image file type (so texts). I add a System.DebugLog to get information while the project build my html list: I had two different reports for the same meaningful error.
Of course, I cleared the Cache folder, etc.
The only explanation is either esoteric or I am in the beginning of loosing my head and better go to the Sainte Anne Hospital.
Your thoughs ?
Yes, this is far beyond my understanding.
Xojo 2015r1 (it can’t be any different than the current version),
High Sierra
Internet is active
PS: this looks like all the troubles I had years ago. The project works until I shut down (to go home) and reboot the MacBook (after breakfast)… then it crashed… (using El Capitan or lower).