Way To View Preset Functions Like Int Function
Nov 16, 2009Is there a way to view preset functions like the Int() function.
View 6 RepliesIs there a way to view preset functions like the Int() function.
View 6 RepliesI'm trying to create classes, functions, etc that present a preset list of options to users (in the same way that messagebox control will show the available button options). A simple example is readFile(ByVal strPath as string, ByVal strFileType as string) where the user will see a list of acceptable file types when they put the comma after strPath.
View 2 RepliesI'm writing a VB.NET function with a ton of overloads. I've seen that most .NET functions have parameter descriptions in IntelliSense. For example, when typing in String.Compare(, IntelliSense says Compares two specified System.String objects and returns... you get the idea. This description changes and you click through different overloaded versions of the same functions. When you start typing in something for a parameter, it describes the parameter you're currently inputting as well. Example: strA: The first string to compare..
View 5 Replies [[code] 1) Is this violating the phrase static classes should not have state?
2) How can I modify the functions such that they can accept any function (instead of my above situation which only works with F(TResult) and F(T, TResult). [code]
What I am trying to do is have a class where the functions of the same name are both instance functions and shared functions.
Public Shared Function Get...(byval xx as xx)
and
Public Function Get...
The Public Function uses a Property xx created in the constructor, whereas the Shared Function has the parameters (byval xx as xx).
Is there a way in vb.net to create a sub/function that will take as an argument some kind of pointer to another function, and allow this new sub/function to execute the passed function? What I have are 10-12 xml-rpc functions I am calling against a remote server. Each of these functions has different argument lists (one takes 1 string, another might take 3 strings and one int, etc). All of them return an object.
[Code]...
I get this error: Cannot refer to an instance member of a class from within a shared method or shared member initializer without an explicit instance of the class.
Partial Class _Default
Inherits System.Web.UI.Page
<WebMethod()> _
[Code]....
I know it has something to do with the fact that the first function is shared and the second function should probably be Public as well but I don't fully understand the reason behind it. Probably not relevant but I'm calling the web method from some javascript.
I am currently working on a project witch contains lots of functions and properties. These functions and properties are stored in the dll. If I reference to this from within my project, these functions and properties are all in the same namespace or class. (I don;t know how it is called)Example:If I type the root namespace: Functions. I get all the functions. I would like to organize them in:
Functions.Maths (All the functions involving maths)
Functions.Internet (All the functions involving the internet)
Functions.Language (All the functions involving languages)
I tried using classes but I cant access the properties when they are stored in a class. I don't know why.
I am trying to clean up my code a bit.
I made the following function:
Public Sub sqlUpdate(ByVal table As String, ByVal column As String, ByVal var1 As String, ByVal column1 As String, ByVal var2 As String)
Public CN As New MySqlConnection
Public cmd As New MySqlCommand
[CODE]...
Which is fine, if I want to use mysql update all I have to do is call something like: sqlUpdate("test", "test", 0, "test", test) I was wondering if I could do the same with the SELECT statement and make a function. I cant think of a way to do it though...
sqlConnect()
Dim cmd As New MySqlCommand
With cmd
.CommandText = "SELECT * FROM users WHERE username=""" & lblAccountName.Text & """"
[CODE]...
The data I would want to extract would be different every time.
I have a midterm project where we must replicate what our teacher has made, it is a convenience store program. I am having trouble calling the functions, he wants us to use these:
PopulateItems => Populate Items listbox based on the category selected
GetItemPrice => Retrieve the price for a given item
GetItemPriceFromPurchases => Retrieve the item price from the purchases list box (optional. You may not need
[CODE]...
So far I have the first list box populated when the form loads. However outside of that I do not know where to call the function in order to populate the second list box upon selection of the first.
If I have two threads both calling a normal function at the same that appends strings, sometime the output string is a combination from both threads as the function had not finished executing the code before it was called again... Would a shared function wait to finish first?
View 9 RepliesI have a DLL file (VB6 DLL file) , I want use it but I don't know it have any function, sub name. Any way to view it.
View 5 RepliesOkay, so I have to convert letters to numbers, each letter in the alphabet is assigned a value that I've assigned. But I need to run through a textbox letter by letter, and convert that letter to the numbers that I have, and append. So if I had a textbox with "JANE", it would output 942383312318265498643 assuming that the following letter values were true
A - 833123
B - 2277765
C - 33935654
[code].....
i want to make a program that will 'clean' up a computer, so far i can make it delete temp files, clear history, empty the recycle bin, even startup windows disk defrag... basic stuff like that Now i want it to go into windows registry and add some preset values, for example: HKEY_CURRENT_USER // Control Panel // Desktop // MenuShowDelay is by default 400, but i want to set it to 200 or something...i would also need the program to figure out which OS the computer is running (xp/vista/7) and only use the appropriate key and value,
View 1 RepliesPreviously I asked about sending emails. And now, I have a related question.How to use a preset message in the email ?
Dim strMessage As String = "Hi [USERNAME]..! You have not paid your due amount of Rs. [DUEAMOUNT]. The last date for payment is [LASTDATE]. I want it to be in such a way that, when a button is clicked, all users with pending amount will be selected (from db) and the above preset message is formatted with each user's USERNAME, DUEAMOUNT & LASTDATE, and finally added it to another table in my db.
Presently my idea is to use a SELECT query for getting all the pending users and then loop through each user (record) and add the preset message to a separate table (this table contains all drafted messages which will be then sent to the recipients), by replacing the USERNAME, DUEAMOUNT & LASTDATE using the Replace function.
I have a ton of MP3's that have an extremely high bitrate (like 200+) and I am trying to create a program that will
1. Read my MP3 Folder structure (DONE),
2. Create a list of MP3's that need to be rebit (DONE with UltraID3Lib), and
3. Resample the file to be a preset bitrate like 128...
I don't want to have to reinvent the wheel on this one.
I have a connection to an access database, I have used the data sources tool provided because in this particular instance I don't want to do much with it other than display the records (which I can do) and edit them (which I'm haveing some trouble with).I have created a system whereby the database is connected to using the preset tools available like; BindingSource, TableAdapter, BindingNavigator etc.
I also have a button for edit. This doesn't work and I was wondering if anyone could help me with this? I can't really provide any code for this, because I didn't code the connection by hand and the code I have been attempting to use for editting the records in the database doesn't even sort of work.
How can I crop an Image to preset dimensions and size using code.I can do this with MS Office Picture Manager, but I want my users to do this from within the app. using the preset dimentiomns and sizes.[URL]
View 1 RepliesI am rather new to VB and every now and then I get an idea of a small project I would like to work on to increase my skills. What I am trying to do is:
1. Input the sound from the microphone
2. Detect what pitch the sound is
3. Compare it to the pitch displayed
For example, lets say I was to have the button "Start". When start is clicked, a pre determined (Or possibly random) note is displayed through a Label for 5 seconds (Lets use C as an example). During this time, the user can attempt to match the note C. When the user sings through the microphone VB picks it up, detects what note the user is singing at, and then scores him over the 5 seconds based on the difference between his note and C. It would also be nice if I could display the volume of the microphone, but this is not too important.
Question:Given a SQL string like
CREATE VIEW TestView AS
SELECT value1, value2
FROM TABLE_0[code]...........
for each strObjectName in tables, to check whether or not the view depends on this object.But this fails on table_12 (and results in cyclic dependencies) for example, because tables contains "table_1". Aaargh.I need a regex that can check if the view definition contains a function name, table-valued function or another view...
(
For checking with
System.Text.RegularExpressions.Regex.IsMatch([code].....
But it fails, plus it doesn't account for object names embraced in brackets, like
"[TABLE_NAME]"
Is it possible to check locale format on form_load and change it to en-us via registry if any other is preset?
View 5 Replieshow I can make my Application to automatically create preset folders with files when installing the application? The files should be under user/documents/MyApplication/Newpresetfolder
View 5 RepliesI thought I was done with the tree view control until i realised that my tree view control was behaving differently when it came to sub nodes . I have attached my treeview pic and also a sample tree view.
(-)D:
|_config.msi
|_netfile.sys
[Code]....
Since I clicked on subfolder1 i was expecting the msgbox to display D:Folder1Subfolder1 but unfortunately the msg box doesnto even have the name of the node i clicked on but when i use selectednode.text I get the correct node text. Anyways why isnt my full path working. I then tried manually designing the entire scenario using tree node editor and the code which i mentioned above works. But whenever i populate the trr programatically the above problem starts.
I am looking for assistance writing code, (VB 05), that would cause an object, (like a circle on screen), to get larger and smaller over preset periods of time, (about ten second increments).
View 6 Replies1) Is it possible to access the Excel mathematical functions without actually opening Excel?
I was thinking of through a DLL WinAPI call or maybe a delegate function or smaller program?
2) Does anyone know of a MS link or area that gives instruction on "how to" use every function of every Windows DLL at all?
Or for all those that Microsoft have chosen to document online at least.
i have a question in vb about inside a data grid view i need to create a combo box...
View 1 RepliesWhile converting types, I have found myself using both VB functions and BCL Convert.To* methods.
E.g.)
Cstr() vs. Convert.ToString()
CInt() vs. Convert.ToInt32()
CDbl() vs. Convert.ToInt64()
etc...
Are there any subtle differences that should be noted?
Is there a way to see exactly what the functions are doing. What i mean is there a way to see the class? I know what it does, i just want to know the code.
For example the function: Membership.FindUsersByName()
a program and i need to have a button put a file into a folder, i know how the button works i already have it doing some other stuff. i just don't know the code to copy and past it to a folder.
View 1 Repliesi have seen this in many codes, just not sure where to start and how to call the command. what i'm talking about is having code as such (this is for save file dialog):
[Code]...