|
Are you trying to see if the string contains a quote character? If so you need to double it up inside the string. Also are you using vb.net or vb6. If it's .net you should use the 'contains' method
sfile.Contains("""")
If it's not .net then just use
InStr(sFile,"""")
|
|
|
|
|
I am using vb6 not .net
I want to check for a double quote but only " once.
Will the expression you stated above check for "" or just " , which i want
|
|
|
|
|
It will check for a single double quote as in ". You need to double it up inside the string though to use it as a literal quote so you need """".
|
|
|
|
|
|
|
I don't understand the question ?
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
|
How do I check if a folder already exists on the system without including any classes in my code?
I dont know why the Try-Catch block does not work in my code. It gives compilation error that try is not excepted
|
|
|
|
|
if (System.IO.Folder.Exists(
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
First, what version of VB are you using? Second, what does you code look like?? Without that, it's really hard to tell you what you did wrong.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Heah thanx, I got the thing working with the following piece of code
Dim folderPath As String
Dim fs
folderPath = "C:\test"
Set fs = CreateObject("Scripting.FileSystemObject")
If (fs.folderexists(folderPath) <> True) Then
MsgBox "Folder does not Exist"
Else
MsgBox "Folder Exists"
End If
|
|
|
|
|
Is there a best practices guideline for creating forms that are least likely to look different across deployment (that is, with users using different display sizes, fonts, font sizes, etc.)?
Thanks
|
|
|
|
|
less is more
My advice is free, and you may get what you paid for.
|
|
|
|
|
I have to write a program, in vb.net 05, that does some clean up. The desired time for the program to run is when the user logs off and the computer begins the shutdown process. I realize I could probably use "Scheduled Tasks" to run the program at log off/shut down, but I'd like to use the registry to execute the program at logoff/shutdown.
I've got the guts of the program already written, I just need to figure out how to write to the registry to run at logoff/shutdown. Any help is appreciated!!!
|
|
|
|
|
|
hi,
what is the exact keyword for vb.net Freind access modifier type in C# ??
Thanks,
Rahi
If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
|
thanks! please let me know if any site which gives us basic syntactical/language differences between C# and VB.Net........
i appreciate ur help!
Thanks,
Rahi
If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
|
Thanks very much......... i saw the articles. it's really good in this site (codeproject).
Thanks once again for the response,
Rahithi
If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
All you have to do is look at thousands of code samples on MSDN. Most examples are in both languages, supplying you with quite a large Rosetta Stone to translate between the two.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Despite a signifigant amount of research I have yet to be able to crack this one: I Need to be able to adjust the amount of items displayed in the listbox of the combobox - i.e. sometimes 4, sometimes 24, sometimes in between. I've noticed the windows API has a CB_SETDROPPEDWIDTH - but cannot find an equivilant for height (CB_SETITEMHEIGHT sets individual item height - doesn't adjust the listbox size). If it cannot be done through API calls (and i'm beginning to think it can't) then how? If it needs to be painted I would appreciate a brief example if possible?
thanks much
|
|
|
|
|
ComboBox1.MaxDropDownItems should work in vb.net, in vb6 there is not a corresponding function, and in the api there is only a function to find out what the size and position of the dropdown CB_GETDROPPEDCONTROLRECT. You might look into creating a custom control in vb.net expose it to com and use it in your vb app.
Sorry I don't have anything more concrete, maybe someone else does.
|
|
|
|
|
Much Thanks - It is indeed a VB6 project. I suppose that means my only options are to create the vb.net control or to manually paint the control in VB6?
|
|
|
|
|
Thats what I think, someone else may have another idea though.
|
|
|
|