Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how do I get a rich text box to save as text only 1

Status
Not open for further replies.

Horrid

Programmer
May 20, 1999
373
don't know what I am doing wrong, I just can't get a rich text box to save as text only, it will only save as rich text. I know that I need to use a flag but what is the correct syntax?<br>
rtxtHTML.SaveFile(&quot;c:\autohtml.html&quot;, ?????) what flag do I use?<br>

 
found the solution, had to remove the brackets.<br>
rtxtHTML.SaveFile &quot;c:\autohtml.html&quot;, 1.<br>
<br>
I haven't used VB for a year or 2 so I'm a bit rusty on the syntax.
 
That keeps on getting me.<br>
<br>
If you call something as a function - or use the Call statement - you have to use the brackets. eg.<br>
<br>
lsResult=SomeStringFunction(1,2,3,&quot;Hi There&quot;)<br>
<br>
or<br>
<br>
Call SomeStringProcedure(1, 2, 3, &quot;Hi There&quot;)<br>
<br>
But if you omit the Call statement (which you're allowed to do) or call a function as a procedure, a Sub( which you're allowed to do) you can't then use the brackets. Like this.<br>
<br>
SomeStringFunction 1, 2, 3, &quot;Hi There&quot;<br>
<br>
or<br>
<br>
SomeStringProcedure 1, 2, 3, &quot;Hi There&quot;<br>
<br>
<br>
Mike<br>
<p>Mike Lacey<br><a href=mailto:Mike_Lacey@Cargill.Com>Mike_Lacey@Cargill.Com</a><br><a href=http:// Cargill's Corporate Web Site</a><br>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top