I have the following code in a project:
Dim md As New MessageDialog
Dim mdb As MessageDialogButton
md.Title = "ArGest Backup"
md.Message = "Application Update Available"
md.Explanation = "There is an update for ArGest Backup available for download." + EndOfLine + EndOfLine + _
"Your Current Version: " + ABVersion + EndOfLine + _
"Available Version: " + CurrentVersion
md.CancelButton.Visible = True
md.CancelButton.Caption = "Later"
md.ActionButton.Caption = "Download"
mdb = md.ShowModalWithin(WMain)
Under 19r1.1, the EOL is properly displayed (the missing icon is ANOTHER discussion):
However, under 19r2.1, the EOLs are NOT handled properly:
macOS 10.13.6 - display is correct in either case on Windows and Linux.
Also, if I create a new, generic Desktop app and add that code into the Window1.Open event, it displays properly under both IDEs …
you havent somehow overridden the systems definition of endofline have you ?
everything has a proper encoding ? one of your vars with a nil encoding might result in this weird handling
They’re both NIL encoding regardless of the version of the IDE used. I’ll try forcing an encoding.
How could I override the EOL on the system and have it affect the two IDEs differently?
I’ve removed the line continuation characters and converted it to a single line and set it into a string variable:
expText = “There is an update for ArGest Backup available for download.” + EndOfLine + EndOfLine + "Your Current Version: " + ABVersion + EndOfLine + "Available Version: " + CurrentVersion
I’ve then tried multiple encoding changes - ASCII, UTF8, WindowsANSI, and others. the result is the same in each case.
However, if I remove the variable (CurrentVersion) that I’m pulling from the web, the EOLs are handled properly under both IDEs.
So, ideas on how to force the encoding of the string retrieved from the web?
Never mind - while the differences in the results of the IDE should no longer be a surprise, it will remain a mystery. I’ve defined the encoding of the string returned by the web check and it’s the same on both - AND the Icon is now appearing.
I should’ve gone Aviation Machinist Mate in the Coast Guard instead of SONAR tech …
We crossed in the posting …