Type: Posts; User: Arnoutdv
Search took 0.07 seconds.
Again, check the DateDiff function in the help!
Checking would be done like this:
If Option1.Value Then
' Code for option 1
ElseIf Option2.Value Then
' Code for option 2
Normally at least one optionbutton is automatically selected when a form is shown.
Or are the optionbuttons in different containers? (like in a frame or picturebox)
To my knowledge MSAccess 2002 uses VBA, but not the .Net variant.
Why do you think you need to change the actual executable?
Maybe you need to think of a way to let your program react on data from a database, input file, user input or whatever.
I never seen the...
Normally you should not bother about the printer installed.
The printer object has a kind of canvas on which you can draw/print items.
You can check it's paper width/heigh, perform a formfeed etc....
Check this thread on StackOverflow:
Are you really printing directly to an USB port?
Or do you use the Printer object in which you set the needed printer?
Please show some code.
VB syntax is not different, but the usage and behavior of the "net" program can be different on different platforms.
Please use the default font and colors.
Your postings are unreadable on portable devices.
Of course that can be an option.
But the company I work for rather spends some money on existing components than using our resources to create them ourselves.
On the other hand if such a component...
Something like the attached image
Thanks for the link Nightwalker.
But I'm not looking for a method to evaluate a boolean expression, but a visual component which can be used by end users to create/build a boolean expression.
I'm not aware of any situation at home, school or office where each device has it's own internet connection.
Then define slow internet, what kind of connection to the internet is there? ADSL,...
Does anyone know of an existing visual component for creating Boolean Logical conditions?
Or has an idea how to create an usercontrol like this.
It's kind of hierarchical structure like a tree...
Have a look at this thread:
Unless you modified the code by techgnome, there are still some variables within the quotes in the sample posted by techgnome.
Print #NameFile, "0,,," & txtpay.text & ",1,," & CmbPay.Text" &...
Is the output something you defined yourself or is it needed for some external program?
Can you share a piece of sample data, not generated by your program
You want the actual output to have quotations marks?
So the output would look like:
"0\t\t\t90\t1\t\tSome Text\t\t\tMore text\t\t\t\t\t"
Where the \t represents the Tab character
You should not use the " in the Print statement
Print #NameFile, "0,,,txtpay.text,1,,CmbPay.Text,,,TxtCust,,,,,"
Print #NameFile, 0,,,txtpay.text,1,,CmbPay.Text,,,TxtCust,,,,,
Even if you are going to use C++ I would start with The C Programming Language
It does, but you don't specify anything but a blank in the Debug.Print statement, so a blank is printed to the immediate window.
Basic FileExists() function
Public Function FileExists(ByVal sFileName As String) As Boolean
FileExists = (Len(Dir$(sFileName)) > 0)
The above code will create a file if it does not exist.
What do you want to happen when a file does exists?
It's part of the Microsoft Windows Common Controls, add this component to your project
Quite an interesting module here:
' Utility functions for SafeArrays. Visual Basic arrays are
If you want to read/write 2 bytes then use an integer, it's still the same value.
VB uses signed integers, so it can be a negative decimal number representation. The actual bytes are still the same.
The API is quite simple:
Private Declare Function SafeArrayGetDim Lib "oleaut32" (ByRef saArray() As Any) As Long
Private Sub Form_Load()
Dim testarray() As String
3 threads from the past:
If want an hexadecimal value to be long you have to append a &
num3 = &H9C7F&
There is recent thread discussing this topic.
But why insisting on not having error trapping?
Did you add the MSHFlexGrid to this project?
The UDTs should be declared in the DLL main class.
Combine the advice given in post #2 with the declarations in post #7
I a module:
Public recieveddata As Currency
Public sentdata As Currency
This makes the code slow:
str = str & strB(i) & vbCrLf
Every time the string needs to be reallocated to add 2 parts of data.
More efficient would be the calculate the total size of the...
I still need more of your code to see how you put the data from the Clipboard in the Grid.
I always wrote copy/paste routines for the vsFlexGrid myself and never had these problems.
You have to...
You can also set the correct ClipSeparators
No need to mess with the ClipBoard contents
Click Here to Expand Forum to Full Width
Survey posted by VBForums.