Setting Text in a Text Object 
Author Message
 Setting Text in a Text Object

Hi

I was wondering how to set text in a textobject, I'm using the following
code, and I get an assignment argument error:

    mobjReport.Areas.Item("RH").Sections(1).ReportObjects.Item(4).SetText =
"Rik"

Any idea why this does not work.

--
Kind Regards

Rikesh
(Using Win2K/VB6/SQL2K/CR8.5Dev.Ed/CRAX.DRT)



Sun, 27 Mar 2005 12:52:40 GMT  
 Setting Text in a Text Object
SetText is a method, not a property.

mobjReport.Areas.Item("RH").Sections(1).ReportObjects.Item(4).SetText("Rik")
is the correct way of calling SetText


Quote:
> Hi

> I was wondering how to set text in a textobject, I'm using the following
> code, and I get an assignment argument error:

>     mobjReport.Areas.Item("RH").Sections(1).ReportObjects.Item(4).SetText
=
> "Rik"

> Any idea why this does not work.

> --
> Kind Regards

> Rikesh
> (Using Win2K/VB6/SQL2K/CR8.5Dev.Ed/CRAX.DRT)



Sun, 27 Mar 2005 18:26:32 GMT  
 Setting Text in a Text Object
Cheers, thanks for your help!!

Quote:
> SetText is a method, not a property.

mobjReport.Areas.Item("RH").Sections(1).ReportObjects.Item(4).SetText("Rik")
Quote:
> is the correct way of calling SetText



> > Hi

> > I was wondering how to set text in a textobject, I'm using the following
> > code, and I get an assignment argument error:

mobjReport.Areas.Item("RH").Sections(1).ReportObjects.Item(4).SetText
Quote:
> =
> > "Rik"

> > Any idea why this does not work.

> > --
> > Kind Regards

> > Rikesh
> > (Using Win2K/VB6/SQL2K/CR8.5Dev.Ed/CRAX.DRT)



Sun, 27 Mar 2005 21:20:55 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Setting properties on selected text in a text box

2. How to set text to align right in text box

3. Blank space at beginning of paragraph when Text Interpretation is set to HTML Text

4. Setting Text object at runtime.

5. Text File to VB Object (ListBox or Text)

6. How to access the text property in a text object

7. Changing the text of a text object on report

8. Changing text in a text object at run time using cpeaut

9. Converting text in text boxes to inline text

10. Rich Text Box: Can I remove text and keep multicolored text

11. Text box text on new page text box

12. how to get scrolling text in a text box or like Marquee text

 

 
Powered by phpBB® Forum Software