Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Technical Support
 VAX 1206c on VC6 - Convert dot to pointer
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

LarryLeonard
Tomato Guru

USA
1041 Posts

Posted - Dec 12 2003 :  1:00:51 PM  Show Profile
(VAXLL23) I've had to turn that "convert dot to arrow" feature off, because I had to type in some code for OLE Automation of Excel:

     Range rCol(cell.GetEntireColumn());
     rCol.AutoFit();
     cell.GetEntireColumn()

Now, I want to hit the "period" key to place a dot on the last line, so that it will eventually look like:

     Range rCol(cell.GetEntireColumn());
     rCol.AutoFit();
     cell.GetEntireColumn().AutoFit();

But I can't, because VAX converts it to an arrow!

     Range rCol(cell.GetEntireColumn());
     rCol.AutoFit();
     cell.GetEntireColumn()->AutoFit();    // Oops!

And there's no way out of this, either, that I could find, so I had to turn that feature off.

Edited by - LarryLeonard on Dec 22 2003 2:29:09 PM

support
Whole Tomato Software

5566 Posts

Posted - Dec 22 2003 :  1:50:02 PM  Show Profile
Hitting backspace or undo once should change the the inserted "->" back into a ".". Did this not happen?

VA should only do the ". to ->" if it thinks the method returns a pointer. If you click on "GetEntireColumn", what does VA display as the definition? Is is correct?

Whole Tomato Software, Inc.
Go to Top of Page

LarryLeonard
Tomato Guru

USA
1041 Posts

Posted - Dec 22 2003 :  2:27:12 PM  Show Profile
Oh good grief... never mind. VAX is correct. GetEntireColumn() returns an IDispatch*, which Range uses in its constructor. I was so focused on VAX that I wasn't reading what the code is doing. For my punishment, I will re-read the first chapter of Box's "Essential COM". Sorry about that.


Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000