function key problem -
the scenario is I have runable program and is in .exe mode already.
for example i press F12. the .exe will be automatically read form windows.
example in my desktop i have the donload.exe file.when i clicked F12 the download.exe file will be automatically open. and is ready for access.
how can i do that?any idea?pls help?
Turning a var into a command -
Ok i've got a problem, and i'll try to explain. We know you can go to a function in a different sub by using sub.function
Now my problem is this. In one sub I set a var to some sub.function Then I call a global function in the same way, but it has to return me to another function. Af
Is possible !! -
I'm using a Dir function to get thru' all files in a folder.
All of these happen in a function.
Everything's fine but when I use this Dir function on the same path, in a different function and come back to my original function
then, I'm having a error :
"Invalid procedu
Mid Function (Well i think it's a function) question -
Hiuston i have a problem
I tried to make something with mid or mid$ functions but i failed.
My problem is that i have string "12.30.98" in my program and i need to get "30" from it with MID function (it's function right?)
Thanx
-Casparas
How to call Oracle function from VB.NET -
Could you please tell how I can call an Oracle function from VB.NET?
I can call Oracle procedure's without any problem, but can't get the return value of a function.
Also, I tried to use the function as an SQL like this
select myfunc(parameters) from dual
It sometimes work
Problem with a Crystal Report 8.5 customized Function dll -
Hi,
I have created a customized dll function for Crystal Report 8.5. I made a package and distribute it to several PC’s with VB6 application. I can run the Crystal reports with the dll function without any problem. But, I cannot display same Crystal Report which has a customized
Modules !!! -
i have inserted a module to my project and put in a function, i have no problem activating the function.
But i would like to know how can i set variables in form1 so that they are known to module1
Remember that the problem is not easy before you know what the problem solouti
Hmmmm how could I describe my problem -
Well, I'm not that of a experienced programmer, but I use VB to implement some Operations Reserach algorithms.
How can I do the following?
The user types in a textbox/inputbox some function (like 3*x+5). How can I use this function as an input in the following procedure, let's say:
Converting Java Function -
Hey guys Im working on a small program for a game I play. Its a small clock that shows when guilds are open and closed and when they will open and close. As well as if their guild holiday is that day.
My problem is, is that this function is using the function eval() and VB doesnt ha
Problem with Sum Function in Access97 -
Whenever I try to use the sum function in access 97 I get the error message
'Sub or function not defined'
Can anyone explain why I get this error as I thought it was a built in function?
Thanks
JFK
help function not completing -
hi, i run vb6 and when i run my server for a mudd game i was developing I have it check for if the user is logged in on data arrival.. and if they are then it checks for whatelse to do.. now the problem is it accesses three more functions after the dataarrival function is accessed and
Mid() in C++ -
I have a slight problem here...
I need a working Mid() function for C++ that returns the mid-text.
I've created one function for myself but it continues to crash, and i've downloaded some that set the variable I provide with the text, but those seemed to completely screw up the r
trigger event every second -
hi there..
i'm writing rfid code now, and i got some problem with event.
i need to trigger the OpenCard() function automatically, so that whenever i placed my tag on the reader, it automatically triger the function and open the card.
To solve this problem, i'm thinking of calling
Trigger event every second -
hi there..
i'm writing rfid code now, and i got some problem with event.
i need to trigger the OpenCard() function automatically, so that whenever i placed my tag on the reader, it automatically triger the function and open the card.
To solve this problem, i'm thinking of calling
Instead of looking this up... -
I'm sure someone can give me a quick answer of this problem...
I want a function...
Private Function NrOfFiles(Path As String) As Integer
...
End Function
Say That Path is "C:\Windows\a*.jpg"
Then I want the function to return every jpg-file that starts with an
Calling a function in SQL through ODBC -
I am converting a VB app to web app and I am having a problem. In some of my SQL string I reference a function (usually an NZ() function to convert a null to a default value) but they are blowing up in the new app. Can anyone help???
Thanks.
Problem with the find function -
I have a problem with the find function in RTB.
It's ok when i use it to find strings in ordinary way, but
my problem is that i want to begin searching from right to left, (persian,arabic language). how do i do that.
Get out in the middle of a sub or function -
Hi guys,
I'm converting a C++ program to VB. I have a minor problem. How do I get out of a subroutine or function before 'End Sub' and 'End Function' is reached?
Thank you!
P.S. I only lurk in the C++ forum of VBforums.
Custom MsgBox Loop Problem (Confusing Logic!!!) -
I wrote a custom MsgBox, and I'm having some trouble getting the return value. Maybe one of you can help me out with this problem.
I have a MsgBoxEx Function in a Module. This function creates a new frmMsgBox and stores all of the MsgBox info in several arrays. My problem is tha
AddressOf callback problem -
This is kind of hard to explain this problem because it has to do with C DLLs that my app interfaces with, but to make a long story short this is my problem:
My VB6 app interfaces with C DLLs that control a CD Duplicator. When I submit a job, I send a function pointer to a callback
problem using IRR function -
Hi everybody,
I have a peculier problem using IRR funciton in vb.
IRR function takes array (TYPE:double) as parameter.
Whenever i call IRR function like the following -
x=IRR(myarr())
I get following error "Invalid function arguments or type mismatch".I have to pop
Right/Left function -
Dear all,
everytime i use the Right or Left function i get the error "Datafield expected". I can remember that with SP2 for VB5 the function worked fine but now it doesn't why? To walk around that problem i'm always using the Mid function but i don't think that's a good solu
how to use cos functio in VB6 -
Hi,
I recently use this cos function in my VB program and i found out the value after the fuction is quite weird. Let say, cos 90 degree should be zero while the function will give -0.44 something and sin 90 degree should be one while the function will give 0.89 something. Do anyon
A "Microsoft Script Control" Question, Please help -
I use Script control to attach a function to aproject at runtime.
The first step is to add a Module by:
ScriptControl1.Modules.Add "Mod"
Then add a function to the module
ScriptControl1.Modules("Mod").AddCode "Function FName()......."
In the funct
Form Activate/Load/GotFocus -
I'm trying to have a function run IMMEDIATELY after a form is opened. Generally, I'd put a "CALL" to the function into the FORM_LOAD event, but my problem is that the form isn't being displayed and the function is already being called.
I've tried adding the "sleep&qu
Tough Puzzle -
here is a little problem solving quizz that u guys may find interesting...
A sine function is such that when u differentiate it, the resulting function has an amplitude twice the original function. If the original function passes through (PI/6,0) and the derivative passes through (7
Check if a function exists -
Hi guys,
How do I check to see if a form has a function before I call it. Here's the problem:
In my project I have 10 forms but only 5 of them have a function called Validate(). In a function within a module I have a public function whick take in the forms as a parameter.
Publ
array pointer -
Hy guys
here is the problem........
I have an array of type byte. Using varptrarray function i got a pointer to that array. I have another function say writefile with parametes as imagepointer as long. I am passing this pointer to this function writefile.
In the function writ
min()function -
Hi all.
I have a problem in programming a function to select minimum values which are stored in an array. The parameter of the min function are dynamic values.
For mow, I have an example on how to determine minimum value between 2 or 3 parameters. I need to create a function that can
Loading picture through my own procedure -
Hello!
I have kind an annoying problem. I created function for loading pictures and it uses some kind of "logic". But here's a problem:
Public Function LoadPic(ID As String, cond As Condition) as IPictureDisp
Dim SomeStr As String
'.....
'..... here goes
Retrieving the name of a control -
Hi there,
I have a slight problem, I wish to write a generic function which will work by receiving the name of the control into the function when that control has been clicked.
However, I do not know how to find the name of the control without explicitly passing the name into the
vb date problem -
Hi All
I have an app that allows entry. One of the fileds is a date field.
Now I check the entered text with the isDate function to make sure it is valid.
The problem is that the user can enter a date for example 1305/03 and the isDate function returns a true but of course whe
Keyboard Hook Problem -
hi,
i hv created a function to trap the pressing of the BackSpace key by a
user.Everyhting is working fine,except that my function is being called
twice.Once when the BackSpace key is PRESSED and the next when it is
RELEASED.
I dont want to call my function when the BackSpa
Kicked out of Designer with No Error -
Here's an error of a curious nature. I wrote a function within my programe that closes all open recordsets when a form is closed, it's a really simple function, looks like this:
Public Function closeRS()
On Error GoTo err
For Each Recordset In deRecsports2.Recordsets
If Recor
ATAN2 Function replacement -
I am looking for the math that performs the same thing as the ATAN2 function used in Excell. The problem is, in VB the only function available is ATAN.
Anyones help would be greatly appreciated.
Ron
problem with the function(square root) -
i have a problem with the function of a square root. anyone here who knows how to decode a square function into a VB codes would be grealy appreciated
Exporting functions in VB.NET -
I'm trying to create a DLL in vb.net, only when I try to call the function in the dll, it says the entry point is not found. Obviously this is because I haven't exported the function I'm trying to call - I had the same problem when I started messing with dlls vc.
Anyway, how do you
Passing integer arrays to a function -
I've made a dll in c++ to a few tasks, and I have a VB app that uses it, the problem is.. When I pass the integer array to the function, inside the function the int values are always the max int value, or some weird number.
So I tried passing them all as their own param in the funct
How to execute an EXE file with same code under98/NT and W2K -
Hi,
I have a problem with the execution of a exe file under W2K.
I'm using the CreateProcess function or the shell function to launch this executable.
It works well under NT and W98 but under W2K the CreateProcess function returns the 1 when the EXE is executed but it don't give t
Timestamp Problem -
Hi, I have a very wierd problem.
I have a recordset with a timestamp datatype. (adodb, mdac 2.8, vb6)
It my form(client) I have a function that calls to an activex dll function that in turn calls a stored procedure to insert the record into the database table.
The timestamp valu
Problem Using HLLAPI32 on ASP.Net -
Can someone help me to figure this out, I have a program on VB.Net implementing HLLAPI32 all function call was properly executed and return 0 values. I've tried to Implement HLLAPI on ASP.Net using the declaration below
Declare Function WinHLLAPI Lib "WHLAPI32.DLL" (By