I have been playing around with the Email Checker code Mel posted:
and have run up against a puzzler:
Why does the second MessageBox work but not the first? Do I have another Dell XPS "anomaly"? Or am I doing something really really stupid (remote but not outside the realm of possibility in this modern world of Real Men {grin}).
=========================================
"He who loses money, loses much;
He, who loses a friend, loses much more;
He, who loses faith, loses all."
Eleanor Roosevelt
=========================================
and have run up against a puzzler:
Code:
' Ask to execute mail client Local disp$, i&, sptr As Asciiz Ptr disp$ = Using$("#, Messages in your in-box: ", Num_Msgs) i = InStr(-1, zMailClient, "\") 'strip location disp$ = disp$ & Mid$(zMailClient, i + 1) 'add to display$ disp$ = disp$ & $CrLf & $CrLf & "Run the default mail client now?" disp$ = disp$ & Chr$(0) ' expects zstring sptr = StrPtr(Disp$) 'tried pointer but no good either ' If MessageBox(0, disp$, _ '[COLOR=red][B]<<< Yields 480 "Parameter Mismatch Error"[/B][/COLOR] ' "MainClientFinder", %MB_ICONQUESTION Or %MB_YESNO) = %IDYES Then If MessageBox(0, "test", _ [B][COLOR=red]'<<< Works[/COLOR][/B] "MainClientFinder", %MB_ICONQUESTION Or %MB_YESNO) = %IDYES Then '[B][COLOR=red]```````````` Also works (original code)[/COLOR][/B] ' If MessageBox(0, "Messages in your in-box: " + zMailClient + $CrLf + $CrLf + "Run the default mail client now?", _ ' "MainClientFinder", %MB_ICONQUESTION Or %MB_YESNO) = %IDYES Then '
=========================================
"He who loses money, loses much;
He, who loses a friend, loses much more;
He, who loses faith, loses all."
Eleanor Roosevelt
=========================================
Comment