close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Microsoft VBScript runtime error '800a005e'. Invalid use of Null: 'CStr'

Thread began 12/11/2020 5:26 am by Nathon Jones Web Design | Last modified 12/16/2020 8:35 am by Ray Borduin | 1445 views | 4 replies |

Nathon Jones Web Design

Microsoft VBScript runtime error '800a005e'. Invalid use of Null: 'CStr'

Why would this...

<%
' WebAssist iRite: Rich Text Editor for Dreamweaver
Dim WARichTextEditor_1 : Set WARichTextEditor_1 = CreateRichTextEditor ("SWPCsummary", "../WA_iRite/", "97%", "200px", "Custom", "../custom/edit-property-details_SWPCsummary1.js", "" & cStr((rsEDITPROP.Fields.Item("SWPCsummary").Value)) & "")
%>


...now be throwing the following error:

Microsoft VBScript runtime error '800a005e'
Invalid use of Null: 'CStr'
/swpcadmin/edit-property-details.asp, line 283

Page attached.
Thank you.
NJ

Sign in to reply to this post

Ray BorduinWebAssist

The value of this:
rsEDITPROP.Fields.Item("SWPCsummary").Value

is null.

Sign in to reply to this post
Did this help? Tips are appreciated...

Nathon Jones Web Design

What might the issue be if the value of:
rsEDITPROP.Fields.Item("SWPCsummary").Value

...isn't null?

This is happening for all of the rows in the database, and not one of them has a NULL value for the "SWPCsummary" field.
The Summary and Description fields both utilise iRite and I wondered if this was something to do with that? In particular the default value for these fields, which is taken from the database.

As you'll see, when you try to access this form it initially shows the first value "SWPCsummary" so to then display a problem with Null is confusing.

Log in details and information are provided below.
Thank you.
NJ

Sign in to reply to this post

Ray BorduinWebAssist

It appears that in your code a variable becomes null after referencing it once. I'm not sure why, but you were populating a <textarea> above the text editor with the same value. Once I removed the textarea tag above, the rich text editor began to work properly on the page.

Sign in to reply to this post
Did this help? Tips are appreciated...

Nathon Jones Web Design

The only thing I can think of is that I opened this page, which has been working fine for almost a decade (!), in the latest version of Dreamweaver and I wonder if it tried to edit/update the ASP code? It has clearly added additional textarea fields that weren't there before anyway.

Appreciate the help Ray. Have forwarded a donation payment for that.
NJ

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...