Type: Posts; User: DataMiser
Search took 0.11 seconds; generated 9 minute(s) ago.
August 23rd, 2014, 01:34 AM
How did you try to do it?
August 23rd, 2014, 01:32 AM
You are using a Type so you can simply get the length of the type
Open Filename for Random as #1 len=Len(g)
a date data type is 8 bytes if I'm not mistaken
August 19th, 2014, 09:55 AM
Here are a couple of simple examples that show how to save data from a textbox to a file with each textbox being written on a separate line and then read the data from the file into those text...
August 19th, 2014, 09:42 AM
Yes though you should use descriptive names for your variables
Dim Qty As Integer
Dim Cost as Currency
Dim PartNumber as String
You can also place more than one on a line...
August 19th, 2014, 12:00 AM
Loop looks ok to me, or sort of anyway. The while part probably should be on the Do rather than the loop so that it does not execute it a>f on the first pass
It assigns a starting value to f and to...
August 18th, 2014, 11:51 PM
Actually Long is a bit faster I think and can hold larger values than an Integer can up to 2 billion as opposed to 32k for an Int. Long does use more memory but is processed faster on 32 bit systems...
August 18th, 2014, 11:49 PM
You should always Dim all variables.
You should also have the little box checked under the editor properties to require variable declaration also known as Option Explicit.
Not dimming your vars...
August 12th, 2014, 04:01 PM
So the learning curve has nothing to do with actually understanding how to write code using the tool? I downloaded it and checked it out a bit. It looks like it has potential but will take a while...
August 12th, 2014, 10:34 AM
Well the only difference between save and save as is the file name selection. Save would save to the existing file should it already exist and save as would let you choose a file name/location to...
August 12th, 2014, 01:25 AM
I'm not sure why that Excel related code is posted? Are you trying to save an Excel worksheet? I did not see anything in the OP about that.
The error message you are getting most likely means that...
August 7th, 2014, 06:01 PM
I was just looking at the link, They claim a learning curve of 8-12 hours for a Novice programmer and 2-4 hours for experienced. Surely they can't be serious. Unless it is almost exactly the same as...
August 7th, 2014, 01:52 PM
Since this is not a VB question I am moving it to the proper location.
August 6th, 2014, 09:04 AM
I advised you to use .Net because it handles this directly, you even found the sample code to do it. VB6 does not.
As for making the DLL can't say for sure as I have not built any Dlls in .Net for...
August 6th, 2014, 01:34 AM
Users would need to d/l what?
August 5th, 2014, 10:07 AM
Yes that is .Net code using a .Net library. You could create a dll in VB.Net and then use that from VB6 but you would be better off just using VB.Net
July 14th, 2014, 12:06 AM
Cells(x, 27).Value = DateDiff("yyyy", fromDate, toDate)
Else maybe you should tell us what problem you are having.
You can place code in the change event of the text boxes or perhaps just the last text box, or use a timer or other depending on what you want to do.
Also note that VB2008 is not VB6.
This thread/question is over 12 years old and has nothing to do with C#. Please do not revive old threads like this and when you do answer try to stay with in the same language as the question.
Moved to VB.Net forum
You really should be using the .SubString method rather than all those VB.Right and VB.Left statements
June 27th, 2014, 01:20 AM
Well as I see it you are making a copy of Form1. I would not expect the name to change, it is assigned in the original Form1 properties.
June 27th, 2014, 01:16 AM
Not sure what you are asking, you are only executing 4 cycles of the loop and you only have 4 values
There are numerous ways you could make it do the little bit you showed but not sure what ........
June 27th, 2014, 01:10 AM
sql = " select * from ea00 where reptrc=Fr2ComBo.text"
Since that is all in quotes it would be looking for the literal text " Fr2ComBo.text"
You need to build the string so that it gets the...
June 10th, 2014, 03:49 PM
The error message is telling you that you are not using the correct data type.
Since you just attached a picture that does not show the dim statement nor the assignment of the var throwing the error...
Well you need to give us some info first, telling us what problem you are having would be a good start.
Also would be good to post some related code as text in your post.
Use Zip instead of rar...
I am curious how you were doing it before. I've not saw any issues using streamwriter. I would suspect it was related to your methods.
Click Here to Expand Forum to Full Width
This is a CodeGuru survey question.