|
Read this article:
http://office.microsoft.com/en-us/excel/HA011117011033.aspx?pid=CL100570551033[^]
OK. I have an array created inside the function, and then I search through the array for a match of a value and return the second value as the result. The problem is that it does not make sense to create the array each time the function is run. Can it be stored some place else so that the function has access to it?
|
|
|
|
|
How to colorize partial background of item in rowset of listview?
example:
have my_var=75 colorize 3/4 of item, have my_var=50 colorize 1/2 of itema, have my_var=72 colorize ecc...
Similar a progressbar but stop for filling based value in my_var...
|
|
|
|
|
sal21 wrote: How to colorize partial background of item in rowset of listview?
You can "enable" drawing your own stuff by using owner-drawing[^] for the ListBox. Next, use the e.Graphics.FillRectangle method to fill your cell to the desired value. There's an example on drawing your own ListBox-parts.
Good luck
I are troll
|
|
|
|
|
but i need for vb6 classic, no net.
tks.
|
|
|
|
|
When i try to add a SQL Database item from "Add New Item" menu to my ASP.NET project i always get this error message
an error occurred while processing the local data file:
key not valid for use in specified state.
Help, thanks
|
|
|
|
|
Hi,
Kindly let me know that, How may I use following Oracle Query into MSACCESS ?
SELECT PCODE,PNAME FROM PRODUCT WHERE PNAME LIKE('%APPLE%')
Thank you in Advance
(Riaz)
|
|
|
|
|
Try exchanging the "%" for "*".
|
|
|
|
|
You can use * instead of %.
|
|
|
|
|
Hi man,
In Ms Access, it can be achieved by
SELECT PCODE,PNAME FROM PRODUCT WHERE PNAME LIKE('*APPLE*')
Just replace '%' sign by '*' sign
Hope this helps
Niladri Biswas
|
|
|
|
|
I've developed this project that uses SQL Server CE. I've got my reference in and everything works fine for me. But when the user tries to install the program, she gets an error that says she's unable to load sqlceme35.dll.
So now I'm really confused. I could just include a reference to sqlceme but then when I send it to her again she'll probably get another error for another dll with my luck. I'm not sure what all files I need to include to make sure she can run this program. And I'm not sure where to look....help?
Denise "Hypermommy" Duggan
|
|
|
|
|
I had this same error here while migrating a windows CE system from VS 2003 to VS 2008.
There were a number of workarounds suggested on Google, none of which worked for me. I ended up re-writing quite a lot of code on the forms that were causing that error, however, I also installed the following on my Windows Mobile device.
sqlce.ppc.wce4.armv4.CAB
sqlce.repl.ppc.wce4.armv4.CAB
They can be found on your computer at this location: C:\Program Files\Microsoft SQL Server Compact Edition\v3.5\Devices\wce400\armv4
Whether it was the change in my code or the files I installed, I can't say (I was getting a massive set of random errors in the converted code, which went round in circles for quite some time, so can't remember off the top of my head if it was the code change or files installed that sorted out that specific error).
Good luck with it!
|
|
|
|
|
I found something on another board that answered this question for me. I hope I'm not breaking the rules, but I do wish to give credit where it's due. The link to what I found is http://www.eggheadcafe.com/conversation.aspx?messageid=31741425&threadid=31741420[^]
Basically, four files need to be included. These are:
System.Data.SqlServerCe.dll
sqlceme35.dll
sqlceqp35.dll
sqlcese35.dll
I had the first and 2nd, but not the other two. These just need to be included in the project, not installed or anything.
Whew!!!! At least that's that.
Denise "Hypermommy" Duggan
|
|
|
|
|
Forgot to mark previous as an answer.
Denise "Hypermommy" Duggan
|
|
|
|
|
I am using the free version of SQL 2008 that comes with Visual Studio. If i wanted my windows VB program to allow more than one user to add, edit, delete info is that possible? Are there limits to number of people accessing the database or limits on installing that on our server at work for 2-3 people to access?
|
|
|
|
|
|
|
If 'C' is constant or it is positional you can use substring to identify the following #n characters and isolate them into a variable. Then just include it in your insert.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Hi friends
Has anyone done a db for a multi-level compensation structure? I'm talking about a company that is MLM or a multi-level marketing network. Where distributors sign up under other distributors and the "downline" can go down many levels(but limited levels!). I need a sample MLM structure.Could anybody help me please.
Thank You
http://tutorialcode.blogspot.com/
|
|
|
|
|
wajans wrote: Has anyone done a db for a multi-level compensation structure?
Yes, lots of people
wajans wrote: I need a sample MLM structure
Think in terms of parent/child relationships, that should get you going in the right direction.
Bob
Ashfield Consultants Ltd
Proud to be a 2009 Code Project MVP
|
|
|
|
|
Hello.
I am a total newbie to SQL Server, having worked extensively on MS Access and VB 6.0 only. But now i have upgraded to Visual studio 2008 and have slowly started to update myself on the new platform. I have SQL Server 2005 and I i know how to create tables and database files. But I don't have any clue whatsoever as to how to deploy/migrate the database that I have created as on a server whose address I can reference by its IP address.
Could someone help me or point me out to good articles or links to PDF's where I might find step by step instructions? By the way, my next project is a web application in ASP.Net.
Thanks and regards,
Kumar.
|
|
|
|
|
Backup and Restore is the best option. Back your db up, copy the file to the server and restore it from there. Job done.
In many places they use something like LiteSpeed or Red Gate's SqlBackup for this.
Regards,
Rob Philpott.
|
|
|
|
|
I'm new to sqlite and a novice at sql in general. I have a sqlite 3.1 database that I would like to edit. I have used several browsers/editors but seem to be running into a small problem.
It seems that the varchar fields are terminated by what I thing is a NULL,it looks like a small box with 00 00 inside, close to this but not quite ->.
Any select or update statement I run comes up blank because I can not reproduce that char.
Something Like:
UPDATE table SET field = 'text' WHERE field = 'text';
but with the correct termination on the field.
Thanks in advance for any help.
|
|
|
|
|
Sounds like you have some unicode in your data. You may want to try LIKE in your where clause but you are going to have to look into your data source and identify the crappy char and deal with it on the way in.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Thats what I was thinking but I don't have any way to modify the data source. The LIKE will work to query data just fine but when I need to update the field, the source program will not read the data correctly. It seems to look for the terminator to separate each varchar field. If it is not there, the data from the next varchar field is mixed in with the first when displayed.
If I use a browser such as Sqliteman I can copy and paste the data just fine including the terminator but if I try it with an update statement it breaks down. Not going to update each line one at a time for 2000 fields lol.
If I use the SQlite manager plug-in for Firefox and copy/paste the update statement in sql as it should be, it drops everything after the terminator.
If I can use SQliteman to do a record at a time I would think there should be a way to include it in an UPDATE statement.
Thanks
|
|
|
|
|
You have a table with 2000 fields
I see some empirical testing coming your way.
Get the incriminating char into a variable using select & substring
loop through each record/field and do a replace on the variable value (you do not need to know it's value)
you still have a problem with crappy data getting into your DB!
Never underestimate the power of human stupidity
RAH
|
|
|
|