No, it's not a garbage. strToFind is just strAsTyped transformed (with
caseless
values table) so it can be used with FindStrInStr() function.
convTab = GetCharCaselessValue();
for (i=0; strAsTyped[i] != 0; i++)
strToFind[i] = convTab[strAsTyped[i]];
Regards
Bozidar
> In debugging my app, I've found that although findParams->strAsTyped has
> the string that the user entered, findParams->strToFind has garbage in it!
>
> Anybody know why?
>
> Thanks!
>
> Below is the code that calls the search routine.
>
> DWord PilotMain(Word cmd, Ptr cmdPBP, Word launchFlags)
> {
> Word error = RomVersionCompatible (version20, launchFlags);
> if (error)
> return error;
>
> switch(cmd)
> {
> case sysAppLaunchCmdNormalLaunch:
> PrefGetPreferences(&SysPrefs);
>
> // Initialize the application's global variables and database.
> StartApplication();
>
> // Start the event loop.
> EventLoop();
>
> // P5. Clean up before exiting the applcation.
> StopApplication();
> break;
>
> case sysAppLaunchCmdFind:
> Search ((FindParamsPtr)cmdPBP);
> break;
>
>
>
> - Alan Macy
> http://www.ResponsiveSoftware.com
> Time and Billing for Consultants and Others
>
>
>