|
String$(1024, 0) creates a string 1024 characters long filled with nulls.
Is that going to be too hard in vb7.net?
Panic, Chaos, Destruction.
My work here is done.
|
|
|
|
|
Hi,
the string class has a constructor that takes one character and one number; it builds a string using that character count times, which AFAIK is what String$() used to do.
Luc Pattyn [Forum Guidelines] [My Articles]
DISCLAIMER: this message may have been modified by others; it may no longer reflect what I intended, and may contain bad advice; use at your own risk and with extreme care.
|
|
|
|
|
Thank you very much, Luc.
Sometimes these stupid questions are the most difficult for me.
Time to come clean...
Vive y deja vivir / Live and let live
Javier
|
|
|
|
|
you're welcome.
Luc Pattyn [Forum Guidelines] [My Articles]
DISCLAIMER: this message may have been modified by others; it may no longer reflect what I intended, and may contain bad advice; use at your own risk and with extreme care.
|
|
|
|
|
hi,
i did simple crystal report in my application.
run in visual studio 05 working good.
but if we convert setup install another one system.
its show some error in crystal report.
thanks in advance
Yours,
KaNNaN
-----------------------------------------------------------------
"Success is When Ur Signature Becomes An Autograph"
Mail To : foreverkans@gmail.com
|
|
|
|
|
|
Hi All,
I am using FileSystemWatcher for checking the files in drive("C:\"). and add those files who are adding in "c:\"Drive to copy in "D:\".
It's working normally but when i try to copy file which size is large. then the error is generated file not found.
So How to check file is in progress of Coping.
Thanks
If you can think then I Can.
|
|
|
|
|
What's the error message?
Steve Jowett
-------------------------
Real programmers don't comment their code. If it was hard to write, it should be hard to read.
|
|
|
|
|
File system wather shows that the file is added and at that time i try to start copy of that file.
Then following error message is displayed while the file is large.
The process cannot access the file 'E:\test.dat' because it is being used by another process.
If you can think then I Can.
|
|
|
|
|
You are getting the error because the file is still open/being written too, therefore your program cannot gain access.
What you need to do is keep checking the state of the file until it has been released and the perform whatever tasks you need for example :-
Dim OK As Boolean
Do
Try
'Open file and perform tasks here
OK = True
Catch
OK = False
End Try
Until OK
Steve Jowett
-------------------------
Real programmers don't comment their code. If it was hard to write, it should be hard to read.
|
|
|
|
|
Thanks for reply,
I have already using it.But it creates problem while File Can't Copy or Cancelation of Copy.
Because Do While Loop Not Found status of File.
If you can think then I Can.
|
|
|
|
|
You have to make the loop try to open the file for exclusive read. If not, you sleep for a couple of seconds, then do it again. When you get the file opened, close it. Then you should be able to use the File.Copy method to copy your file.
The FileSystemWatcher told you that a new filename appeared in the directory, not that the file was completely written.
|
|
|
|
|
Hi,
lets see some of your code...
thanks
|
|
|
|
|
I made one application form in vb.net and access as database,in this form there is a picturebox1 field where i can upload the images.i put one default image when the form gets loaded. i want to save this default image if i dont upload an image.And another problem i'm facing is i want to deploy my project on another system but when i'm deploying my project, the database is not connecting so i've to add database separately on the other system even though i'm adding database during setup.May be i'm going somewhere wrong.Please tel me how should i add database while setup and save the default image.
Thanks for your help.
Note:I'm saving an image path in the database not the images.
modified on Monday, June 29, 2009 5:16 AM
|
|
|
|
|
mirzamujib wrote: i want to save this default image if i dont upload an image
OK. Where are you uploading to ? Is this a web app ? What is the issue ?
mirzamujib wrote: but when i'm deploying my project, the database is not connecting so i've to add database separately on the other system even though i'm adding database during setup
What is your connection string ? If the DB will be local, use localhost, not the machine name.
Christian Graus
Driven to the arms of OSX by Vista.
"! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums.
I can do things with my brain that I can't even google. I can flex the front part of my brain instantly anytime I want. It can be exhausting and it even causes me vision problems for some reason. - CaptainSeeSharp
|
|
|
|
|
Hello,
Its not a web application.Its a windows based client application
Thanks
|
|
|
|
|
Then I don't get your question. That's why I asked you to clarify.
Christian Graus
Driven to the arms of OSX by Vista.
"! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums.
I can do things with my brain that I can't even google. I can flex the front part of my brain instantly anytime I want. It can be exhausting and it even causes me vision problems for some reason. - CaptainSeeSharp
|
|
|
|
|
I have 5 form in my project
I want List My Form Name in a combobox
and when I add a form in my project the name of new form automaticlly fill in the combo box
please help me
|
|
|
|
|
Application.Current.OpenWindows will give you want you need.
Christian Graus
Driven to the arms of OSX by Vista.
"! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums.
I can do things with my brain that I can't even google. I can flex the front part of my brain instantly anytime I want. It can be exhausting and it even causes me vision problems for some reason. - CaptainSeeSharp
|
|
|
|
|
I m using vb6 and access 97 for a project
i m entering data in the access
but the problem is when i insert null values(Empty String) it give
'syntax error in insert into statement'
when i enter all the value it doesnt give any error
but sometimes it happens that i dont want to enter some values
what can i do ??
pls help me...
spruha
modified on Monday, June 29, 2009 6:41 AM
|
|
|
|
|
Check your Database field which you R Trying to insert null value is not a required filed in that table, and it's not a *NOT NULL* Field.
Rajesh B --> A Poor Workman Blames His Tools <--
|
|
|
|
|
i check access for any option so that i can it will accept null values(Empty String)
i can't see any option for tat...
spruha
modified on Monday, June 29, 2009 6:40 AM
|
|
|
|
|
Don't think Access'97 supports null strings.
Panic, Chaos, Destruction.
My work here is done.
|
|
|
|
|
VB6 and Access 97? Why are you developing in dead software/languages?
Steve Jowett
-------------------------
Real programmers don't comment their code. If it was hard to write, it should be hard to read.
|
|
|
|
|
If the field is able to store NULL values, then you should also use the NULL in your insert statement:
insert into table (field, field, ...) values ('value', null, ...
|
|
|
|