Mike Davis wrote:
>
> I call the function StrToLL, below, with the following call like:
>
> unsigned long long x;
> x = StrToLL(inputStr); // string filled with input from field
> FrmCustomAlert(altNotice, "x=", StrIToA(buf, x), "Ok!");
>
> I make this call to convert a string to a Long. The function
> works because I can see the value in the Debug Popup form in the
> function. But when I check the return value, right after the call,
> with the Debug Popup form, the value is zero.
>
'buf' is probably part of the stack. String constants passed to FrmCustomAlert
should be global. So FrmCustomAlert currupts the stack and may or may not
change x. Put 'buf' in global space (either declaring it global or
put buf on heap by buf = MemPtrNew(sizeof(Char)*12)) and it will work.
Regards
Holger Klawitter
--
Holger Klawitter +49 (0)251 484 0637
[EMAIL PROTECTED] http://www.klawitter.de/