Error 5 Invalid proceedyre call or arguement

Why am I getting this error for Me.ActiveControl.SelStart = 
InStr(Me.ActiveControl.SelStart, Me.ActiveControl.text, m_FR.FindWhat) 
- 1? If I replace Me.ActiveControl with the name of a textbox, it works 
but I am using two textboxes that I switch between depending on weather 
WordWrap is on or not.

-- 
ClassicVB Users Regroup! comp.lang.basic.visual.misc
Free usenet access at http://www.eternal-september.org


0
Leo
7/2/2010 9:47:53 AM
vb.general.discussion 1016 articles. 0 followers. Follow

3 Replies
840 Views

Similar Articles

[PageSpeed] 36

"Leo" <ttdhead@gmail.com> wrote
> Why am I getting this error for Me.ActiveControl.SelStart =
> InStr(Me.ActiveControl.SelStart, Me.ActiveControl.text, m_FR.FindWhat)
> - 1? If I replace Me.ActiveControl with the name of a textbox, it works
> but I am using two textboxes that I switch between depending on weather
> WordWrap is on or not.

At the time of the error, what are the values of all those variables?

My bet is that SelStart is 0, which won't work because strings start at
position 1, so trying to start at position 0 raises an error....

:FS


0
Larry
7/2/2010 10:02:11 AM
  If Larry's thought doesn't solve the problem:
How do you know the active control isn't
a button when you make the call?

| Why am I getting this error for Me.ActiveControl.SelStart =
| InStr(Me.ActiveControl.SelStart, Me.ActiveControl.text, m_FR.FindWhat)
| - 1? If I replace Me.ActiveControl with the name of a textbox, it works
| but I am using two textboxes that I switch between depending on weather
| WordWrap is on or not.


0
Mayayana
7/2/2010 1:33:13 PM
on 7/2/2010, Mayayana supposed :
>   If Larry's thought doesn't solve the problem:
> How do you know the active control isn't
> a button when you make the call?
>
>> Why am I getting this error for Me.ActiveControl.SelStart =
>> InStr(Me.ActiveControl.SelStart, Me.ActiveControl.text, m_FR.FindWhat)
>> - 1? If I replace Me.ActiveControl with the name of a textbox, it works
>> but I am using two textboxes that I switch between depending on weather
>> WordWrap is on or not.

Because the app is a specialised text editor with only a menu a common 
dialog and the textboxes.
The issue is sorted

-- 
ClassicVB Users Regroup! comp.lang.basic.visual.misc
Free usenet access at http://www.eternal-september.org


0
Leo
7/2/2010 1:40:34 PM
Reply:

Similar Artilces:

Business Portal Error-SQL server does not exist or access denied
Hi, We are running business portal 4.0 for one of our customer. It was running correctly, however, they have changed the SQL server port (previously it was set as default 1433). After that the business portal becomes very slow and while creating a new request (purchase requisition) if we open the item pop up; it is showing exception "SQL Server does not exist or access denied...." Can any body tell me how can I provide the new port number to business portal connection to the database. Thanks and Regards, Waliullah, Thanks for using the newsgroups. I have a...

How disable postmaster reply in exchange 5.5
I receive mail from virus in my Exchange 5.5 with this format name@mydomain with a virus attached My exchange server reply with postmaster with the original mail attached. I think that this is Mydoom virus. Please help me to disable NDR messages for any e-mail sent to an invalid address. Virus send e-mail with field FROM with addres that want attack and my exchange reply with postmaster with the original mail that contain mydoom virus. Excuse me for my bad english. It is not possible to disable generation of NDR with E55. Why not install antivirus for Exchange? ALEX wrote: > I rece...

crm 3.0 error 03-01-06
Hello, I'me getting this error while installing crm3.0 for SBS: "error writing to file microsoft.mshtml.dll verify that you have access to that directory" That file is in the C:\Program Files\Microsoft.NET\Primary Interop Assemblies directory. I (and 'everyone') has full access to that dir. What can I do about this?? kind regards, Thomas ...

Error in Outlook Today
Whenever I go to Outlook Today, I get a runtime error, line: 297 Error: Class Not Registered. Then I get the error two more times when I click 'Customize Outlook Today...' and the list 'Show Outlook Today In This Style' is empty, and the box under it has a broken image icon. What could be the cause of this? Sorry...forgot to say...I'm using Outlook 2003 Student and Teacher Edition on Windows XP. >-----Original Message----- >Whenever I go to Outlook Today, I get a runtime error, >line: 297 Error: Class Not Registered. Then I get the >error two more time...

Re: 'Uknown Error 0x800CCC97'
I just heard back from the folks with whom I filed this bug. They say the bug is fixed in cppop 5.4 - request that your ISP upgrade to that. -- Jeff Stephenson Outlook Development This posting is provided "AS IS" with no warranties, and confers no rights "Jeff Stephenson [MSFT]" <stephenson@online.microsoft.com> wrote in message news:... > See the attached reply to another similar question. Your ISP's POP3 server > has a bug, and they should get a fixed version of the server. > > -- > Jeff Stephenson > Outlook Development > This posting...

stop error defeating me
Hi, XP Pro PC. When I start the computer I can start in safe mode but when I try to start in normal mode it loads to the log on screen. I type the username and password in then it starts to load but stops after a few moments with a blue screen. The error is Stop: c000021a (fatal system error) The windows subsystem system process terminated unexpectedly with a status of 0xc0000005 (0x7c9106c3 0x0055f36c). Begininning dump of physical memory. I have uninstalled AVG, also taken out the graphics card and uninstalled all the drivers for it. I have also changed the RAM. I have also d...

Error in database....
A user posted a batch in payables management. After posting, there was an error encountered. It displays that the table updating was interrupted, use batch recovery to continue the posting. But when I used the batch recovery, it was not successful to continue the update process. When I click the "More Details" button it displays, A save operation on table 'PM_Transaction_WORK' caused a sharing error. How can I resolve this issue? Thanks, John John, it is a db sharing violation. Have all users logout DELETE tempdb..DEX_LOCK DELETE tempd..DEX_SESSION DELETE dynami...

error 553
The following error occurs when sending email from my business domain. It does not occur when sending through my roadrunner account. The following recipient(s) could not be reached: on 10/22/2003 2:05 PM 553 sorry, that domain isn't in my list of allowed rcpthosts (#5.7.1) What does this mean and how can it be fixed? ...

80070005 error #2
I am getting this error when trying to view public folder property from system manager. My issue is same as what you can find out from http://forums.msexchange.org/ultimatebb.cgi? ubb=get_topic;f=19;t=000114 Anyone has a clue? ...

How to use count for calls per hour
I am trying to create a pivot table and chart that will show me the # of calls per hour by day for a range of dates Aug 1 - Sept 19. My data looks like this where each line is the date and time of the call: How do I get a count of the # of the calls per hour by day? 8/1/08 12:48 AM 8/1/08 1:53 AM 8/1/08 2:36 AM 8/1/08 3:24 AM 8/1/08 3:37 AM 8/1/08 4:04 AM 8/1/08 4:44 AM 8/1/08 4:55 AM 8/1/08 4:58 AM 8/1/08 7:02 AM 8/1/08 7:28 AM 8/1/08 7:43 AM 8/1/08 7:47 AM 8/1/08 7:56 AM 8/1/08 7:58 AM 8/1/08 8:13 AM 8/1/08 8:33 AM 8/1/08 9:07 AM 8/1/08 10:28 AM 8/1/08 10:38 AM 8/1/08 10:44 AM 8/1/08 ...

formula to have 0 to 6.5 only in ref to other cell val of 0<=6.5
...

Moving exchange 5.5 to a new server exchange 2003
Good day all... how do I move exchange 5.5 to a brand new exchange server 2003. The new server will be in a new organization. Any info would be greatly appreciated. Thanks, Ray http://www.microsoft.com/usa/webcasts/ondemand/2340.asp http://support.microsoft.com/default.aspx?scid=fh;en- us;exch2003 Patrick Rouse Microsoft MVP - Terminal Server >-----Original Message----- >Good day all... how do I move exchange 5.5 to a brand new >exchange server 2003. The new server will be in a new >organization. Any info would be greatly appreciated. > >Thanks, >Ray > >. ...

CRM Error
Hello When a user replies to an CRM email, clicks the "reply" button or the "reply all" button, clicks in the body of the email message and clicks "insert template", this error appears. This does not happen every time, and happens to various users. Does anyone know why we would get this error? ...

smtp authentification errors
Hello, I just installed Exchange 2003. It all works fine. I=B4m now=20 retrieving the emails via pop-con and pop3. However I=20 cannot send any authenticicated emails, because the=20 exchange server sends a wrong authentification account to=20 the mail provider, despite the fact, that the right one to=20 be used is enterd. The mail provider tells me that he recives a smtp call,=20 but it=B4s aborted by his server. We do not have a static IP but a dynamic IP, that changes=20 every 24 hours. If a messages is sent to an existing hotmail account the=20 following error message is displayed in the ...

#error in the calculated field
Hello, I locked the data entered for some users, because their role is just to input the date of invoice for approval by Prj.Manager. My qeustion is, is it the reason we see the "# error" in the VAT checking field??. I tried to ck formula in the qrid query, nothing wrong Thanks for your explanation -- H. Frank Situmorang On Tue, 15 Jan 2008 23:33:01 -0800, Frank Situmorang <hfsitumo2001@yahoo.com> wrote: >Hello, > >I locked the data entered for some users, because their role is just to >input the date of invoice for approval by Prj.Manager. > >My q...

Error when changing average perpetual
I Have the following error in Microsoft Dynamics GP on the screen of average perpetual "Message #10577 Missing" somebody knows about this??? Thankļæ½s. Gabriela Martinez. ...

Query to Pull Most Recent Call with a Callback Date Scheduled
Hello, I'm trying to create a query that only pulls in patients that have a scheduled callback date, but only if the callback date was scheduled on there most recent call. So far I've been unsuccessful. Below is the SQL that I'm attempting to use- SELECT [Patients Table].[Patient ID], [Patients Table].[First Name], [Patients Table].[Last Name], [Patients Table].[Home Phone], [Patients Table].[Day Phone], Max([Call]) AS Expr1, [Calls Table].[Call Outcome], [Calls Table].[Callback Date] FROM [Patients Table] INNER JOIN [Calls Table] ON [Patients Table].[Patient ...

Replying to emails #5
I'm using Outlook 2007. Can someone tell me where is the setting I uncheck to not reply to messages in the same format that they were sent? I can't find it for the life of me. Thanks in advance. Wy "newtechie" <newtechie@nospam.com> wrote in message news:%23ehsbToQIHA.748@TK2MSFTNGP04.phx.gbl... > I'm using Outlook 2007. Can someone tell me where is the setting I > uncheck to not reply to messages in the same format that they were sent? > I can't find it for the life of me. > > Thanks in advance. > > Wy > AFAIK there IS no...

Outlook MAPI (WMS idle error message while shutting down)
I am loading the mapi32/mapisp32 dll in my program. When I shut down while my program is still running, I am getting "WMS Idle" message. 1. While shutting down, why i am not getting 'fnevCriticalError' notification in my IMAPIAdviseSink class?? and 2. What exactly is causing the WMS Idle message ? Any help will be appreciated... ...

Excel.Range.Name gives error an exception
Hi All, I am trying to execute below code but it gives me an COMException ///// Code Start //// public string GetName(Excel.Range range) { try { if (range.Name != null) { Excel.Name name = range.Name as Name; if (name.Name != null || name.Name.Length != 0) { return name.Name; } return string.Empty; } return string.Empty; } catch(Exception e) { return string.Empty; } } ///// Code End //// Now every time my very third line "if (range.Name != null)" gives me Exception an except...

WSDLReader error '80020009'
Hello, I have created an ASP page that calls a local webservice. Everything works fine on my system but once it is deployed to the server I get the following error. WSDLReader error '80020009' WSDLReader:XML Parser failed at linenumber 0, lineposition 0, reason is: WINHTTP5.DLL or higher must be registered to use the ServerXMLHTTP object. HRESULT=0x1: Incorrect function. - WSDLReader:Loading of the WSDL file failed HRESULT=0x80070057: The parameter is incorrect. - Client:One of the parameters supplied is invalid. HRESULT=0x80070057: The parameter is incorrect. Development Environme...

Error deleting a contact? How?
This is very odd. The CUserAuth I'm using to do this has Administrator rights, and there's no problem deleting any other contact. The difference is that this contact is held by a user that also has Administrator rights. The error I get is: @"80040220The user does not hold the necessary privileges.The caller does not hold the privilege with ID: {7E1CDC99-5379-429B-A8D2-AB6FE15F862B} D:\crm\Build\3297 \src\platform\include\OMCommon\OMSecurity.inl941" So the question is this - how do I delete users owned by other administrators? If you search the MS CRM SDK (or msdn...

Billing Address on Service Call Entry Screen
When in the service call entry screen, if you have selected a peice of equipment, which is covered under a support contract, the billing address changes to the billing address of the contract. However, if you subsequently remove the service call from being covered under the contract, the billing address should revert back to the billing address on firstly the service debtor extensions card, or the billing address on the debtor card. It currently does not. ---------------- This post is a suggestion for Microsoft, and Microsoft responds to the suggestions with the most votes. To vote fo...

An unexpected error occurred in Report Processing. (rsInternalErro
An unexpected error occurred in Report Processing. (rsInternalError) Culture name 'da-da' is not supported. Parameter name: name! I need to run reports but all i get is this! What can i do? thanks can a brother get some help around here?:) "Hasrett" wrote: > An unexpected error occurred in Report Processing. (rsInternalError) > Culture name 'da-da' is not supported. Parameter name: name! > > I need to run reports but all i get is this! > What can i do? > > thanks ------=_NextPart_0001_6F4D738D Content-Type: text/plain Content-Transfer-En...

error bar problem #2
I have a scatter plot chart with 3 different data sets. I need to add error bars to each individual data point in each data set. When I add error bars, it uses the same value for each point in the same data set. How do I get around this problem? Your help is greatly appreciated. ------------------------------------------------ ~~ Message posted from http://www.ExcelTip.com/ ~~View and post usenet messages directly from http://www.ExcelForum.com/ On Mon, 3 Nov 2003 14:28:18 -0500, mrh <mrh.wc1zo@excelforum-nospam.com>= = wrote: > I have a scatter plot chart with 3 different d...