Patrick Ouellet wrote in message <[EMAIL PROTECTED]>...
>
>Ok...
>I'll try to make myself clear... well better than I did before
>
>I made this
>
>char TempCode[5] = "";
>int CurChar = 0;
>
>//Some code between
>
>// if it's button labeled 1
>StrCat( TempCode, "1");
>CurChar++;
>
>//if its button labeled 2
>StrCat(TempCode, "2");
>CurChar++;
>
>//some code after
>
>ok.. the problem is that TempCode value is always ""
>whatever I do...it's value doesn't change...
>So does CurChar... always 0
>
Ok, again I have to ask how you are determining that the
contents does not change. Using a debugger (POSE)?
Throwing up alert boxes?
However, I only recall before that you had said that
TempCode never changed. I don't recall ever hearing
that CurChar was also not being incremented. This
implies to me that your code for determining which button
was pressed is at fault.
>From an earlier posting that code looks like this:
static Boolean MainFormHandleEvent(EventPtr eventP)
{
Boolean handled = false;
FormPtr frmP;
switch (eventP->eType)
{
case ctlSelectEvent:
{
switch(eventP->data.ctlEnter.controlID)
{
case MainBtnStarButton:
break;
case MainBtnToeButton:
break;
case MainBtn0Button:
break;
...
Unfortunately, that seems OK too. If you are using a debugger,
you might want to put a breakpoint at the two "switch" statements
and take a look at what is coming through.
Or here's a basic (and I hope not insulting) question: did you
tell the system to use MainFormHandleEvent() when you brought
up the main form?
--
-Richard M. Hartman
[EMAIL PROTECTED]
186,000 mi/sec: not just a good idea, it's the LAW!
--
For information on using the ACCESS Developer Forums, or to unsubscribe, please
see http://www.access-company.com/developers/forums/