Author Topic: What does in mean when code runs in debug but not in operation?  (Read 473 times)

0 Members and 1 Guest are viewing this topic.

paulv45

  • Jr. Member
  • **
  • Posts: 51
I am manipulating shape text.
When I do:
objChar.CharProps(visCharacterSize) = 8#
Code runs fine when in debugger using <f8> to step through.
When run normally it exhibits bad behavior.

Is there anything in general this implies?

If I precede the line with a MsgBox to force user interaction, also runs fine.

I've tried update false/true and timer.

Any thoughts?

Yacine

  • Hero Member
  • *****
  • Posts: 2950
Re: What does in mean when code runs in debug but not in operation?
« Reply #1 on: May 08, 2022, 04:36:48 AM »
I know Wapperdude tried it already, but can you too try putting a doevents, once before and once after the assignment?
Yacine

paulv45

  • Jr. Member
  • **
  • Posts: 51
Re: What does in mean when code runs in debug but not in operation?
« Reply #2 on: May 09, 2022, 09:02:38 PM »
I did the DoEvents before and after and that fixes the problem.
Tried just before and that also works.
Tried just after and that, not surprisingly to me, fails.
I think we have a fix.
Thanks so much, Yacine.  Nice work.