Hi Garrett, > However, when I call it with the strings Kitten and Sitting, the return value isn't always 3.
Before you can call _HandToPtr(), you need to call _HLock() to prevent VFP from moving the string around. Afterwards you should call _HUnLock(). I also wouldn't bet that VFP terminates strings with CHR(0) in all cases. After all, the value structure contains the length in ev_length, so technically there isn't any need to do so, especially given that VFP strings can contain CHR(0). Hence, I'd copy the strings into a null-terminated string before passing them on to the calc function. -- Christof _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/profox OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/[EMAIL PROTECTED] ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

