How do I add " to a string in VBScript? What is the escape charter I need to use?
358620
VBScript uses the quotation mark as an escape character.\n\nEssentially, use two quotation marks ("") within a string to represent a single quotation mark.\n\nExample: Quoting nicknames\n\nWscript.Echo "Bret ""Hitman"" Hart" 'Using double quotes
997808
Build an Update Query. . .  \n\nTo capture the characters to the left of the comma, you would use:  Left([Name Field],(InStr(1,[Name Field],",")-1)))\n\nFor the characters to the right of the comma: \nRight([Name Field],(Len([Name Field])-(InStr(1,[Name Field],",")+1)))\n\nI couldn't respond to your email as it said that it wasn't confirmed.  After you confirm your email, try emailing me again and I'll explain the above.
565567
A code snippet would be useful here as I'm not sure what it is you are trying to do.\n\nI assume that you have to insert one string into another.  The attached snippet accomplishes this.\n\nSourceString is the string you want to insert into\nInsertSegment is the string you want to insert\nInsertPosition is the position in SourceString that you want the insertion to start at.\n\nPublic Function InsertIntoStringExample(SourceString As           String, _\n                                        InsertSegment As String, _\n                                        InsertPosition As Long) As String\n                                        \nDim ReturnString As String\n\n    If InsertPosition > 1 Then\n        If InsertPosition < Len(SourceString) Then\n            ReturnString = Mid(SourceString, \n                               1, \n                               InsertPosition - 1) & _\n                           InsertSegment & _\n                           Mid(SourceString, InsertPosition)\n        Else\n            ReturnString = InsertSegment & SourceString\n        End If\n    Else\n        ReturnString = SourceString & InsertSegment\n    End If\n    \n    InsertIntoStringExample = ReturnString\n\nEnd Function
329175
I'm assuming your accessing it from another class? \n\nPrivate declaration stops this from occuring. You need to provide a public property ie.\n\nprivate _str as string = ""\nPublic Property etc as string\nGet\nreturn _str\nEnd Get\nSet(value as string)\n_str = value\nEnd Set\nEnd Property\n\nOtherwise if you are accessing a class-scope variable normally, you could do:-\n\nPublic class Class1\n Private Str as string = ""\n Private Sub New()\n   Str = "Hehehe"\n End Sub\nEnd Class\n\nQuestion wasn't clearly stated, but i think that should answer it...
635745
How's this? \n\nfunction addText(text) {\n  t = document.forms[0].mytextarea;\n  t.value = text + t.value;\n}\n\nFor the highlighting stuff, have a look at the documentation for things like createTextRange .
1084791
You could use Instr() and Mid() to find the spaces and replace the character in the next position.\n\nBut the Split() function will eliminate the need to you search for spaces, and it will return each segment of the string in its own array element, so you can just UCase() the first character of each element, and then piece it back together.\n\nFunction ProperCase(asSourceString As String) As String\n    Dim pvSplit As Variant, psTemp As String, plCounter As Long\n    \n    pvSplit = Split(asSourceString, " ")\n    For plCounter = LBound(pvSplit) To UBound(pvSplit)\n        If Len(pvSplit(plCounter)) > 0 Then\n            pvSplit(plCounter) = UCase$(Left$(pvSplit(plCounter) , 1)) & Mid$(pvSplit(plCounter), 2)\n        End If\n        psTemp = psTemp & pvSplit(plCounter)\n        If plCounter < UBound(pvSplit) Then\n            psTemp = psTemp & " "\n        End If\n    Next\n    \n    ProperCase = psTemp\nEnd Function
1087068
This snippet works for me.\n\n<script type="text/javascript">\nvar localtime = new Date();\ndocument.write (localtime.toUTCString())\ndocument.write("<br>");\ndocument.write(localtime. toLocaleString())\n</script>\n\nI messed around with your code, and it seems that capitalization was to blame. Capitalize 'Date' in "var localtime = new Date();", and make sure methods 'toLocaleString' and 'toUTCString' are properly camel-cased.
551354
It's a bit tricky, but the function you want to call is the Interaction.Command function  This exists in both VB6 and VB.NET, although the .NET version is enhanced to a be a bit more powerful.  \n\nWhen you call the interaction.command function, it returns a variant data type containing everything in the line after the program name.  So, if you had typed something like:\n\nmyExecutable.exe /a=myName /b=myHeight\n\nyou would do the following:\n\ndim strCommand as string\nstrCommand=interaction.command\n\nThe value in strCommand at this point would be:  \n\n/a=myName /b=myHeight\n\nYou have to parse through the return to find whatever separator characters you defined, count arguements, etc. The best way I've found to do this in VB6 is with a loop from 1 to the len(strCommand).  Test each character looking for your separator charactors, and then you just use the MID function to extract thos parts to wherever you need to put them.
761102
i think its variable1 = (object name).text.value\nor variable1 = (object name).value, something like that, i nt very good though
483236
Do it using the system set to english, then if you need a special character, go Insert > Special Character
300546
The two bars afterwards are ascii characters that reprsent cariage returns or it tells them when the enter key was pressed.  Such as:\n\nThis here | would be\n\nThis here\nwould be\n\nSo you would have to input the test file into a string and then parse out the | with a valid carriage return character before applying it to the text box.  Hope this helps.
614180
In VBA (as used in PowerPoint) declaring a variable and assigning a value must be separated.\n\nDim astring as String\nastring = "Test"\n\nIn VB 2005, VB.NET, etc. - your expression would be fine.\n\n*** Additional Stuff ***\nSounds like you're really struggling ... In the code module for the presentation you'll need to put the code in a procedure ... here's an example\n\nSub TestThis()\n    Dim astring As String\n    astring = "Test"\n    MsgBox (astring)\nEnd Sub\n\nAfter this, you'll be able to run this code as a macro ... Tools >> Macro >>> Macros ... then select the "TestThis" macro and run it ... you'll get your message box.\n\nGood luck!
85088
U must have given the name of the variable in the "  ".\nGive it outside double quotes.
990624
try using "T/F"\np.s. include " (double quotes) in your search string
256294
Sometimes, JavaScript / VBScript used by an application has errors in it. That's what this message is telling you.\n\nSomewhere, in your system tray, is a widget -- a printer utility, or some gizmo of some sort -- that is causing the problem. Your best bet: start turning them off one at a time until you find the offender.
137598
Might help if you can explain what it is you're doing a little.  But, I'd just use the Ctrl+F and type in the keyword and search that way.  Also, you may try researching assistive devices and software used by blind or other disabled peoples that has the ability to 'read' text.  Or find someone to write a macro that uses Ctrl+F and calls and runs a .wav file when it returns a positive hit and then make the program loop after the refresh program runs (it would execute itself automatically after each time a page refreshes).  Hmmm... I'm not a great programmer (it takes me a really long time and I usually just use VBScript).  Sorry I can't give you code, but the idea there is sound.
638752
Put this in an asp page and try it.I jus did it and it worked. \n\n<%@ Language=VBScript %>\n<HTML>\n<HEAD>\n<META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">\n</HEAD>\n<BODY>\n<form name="frmTest" method="post">\n<img src="Bluebar.gif" ></img>\n<br>\n<LABEL id="lblclick" onclick="ShowList()">Click on this</LABEL>\n<P> </P>\n<br>\n<LABEL id="lblShow" ></LABEL>\n</form>\n</BODY>\n</HTML>\n<script language="javascript">\nfunction ShowList()\n  {\n   window.document.getElementById('lblShow').innerHTML = "Hey ! you just viewed and clicked me :)"\n  }\n</script>\n\nDude.....the window.document.getElementById will show as .... I tried all methods and yahoo still sucks...\nSo here I will explain.  getElementBytId() .In this bracket you need to give the Label which is displaying the text, its id , i.e in this case getElementBytId('lblShow'), and after the close parenthesis we give ".innerHTML" and then "=" what value we want to give.\nhave issues still then, send me a mail at nigeljd@gmail.com