Hi all,
I have been trying to get this code below to compile or am open for a better method to do it with. I need to strip out illegal characters that users might enter into a textbox. I have a routine that should work but keeps error and i have no clue why. This is written in VFP 6.
thanks in...
Francis,
are you meaning that you want to format the cells within a datagrid? if so then what you need to do is to add a tablestyle to the datagrid and then you can set the width of each column.
HTH,
bueller
Jonathan,
my first question is are you really using question marks in those fields? if so then try setting them to nothing or 0 or ''. Also what type of fields are they.
HTH,
bueller
Bjorn,
to add something to the toolbox right click on something in the toolbox then go down to customized toolbox. Here you can add in any stuff that you want to.
HTH,
bueller
Hi,
How are you guys connecting to the SQL serves. are you using a data adapter and sqlconnector or straight ADO. another thing to do is to see how are you connecting to sql server named pipes or tcp/ip. also make sure you are running the latest version of ado.
HTH,
bueller
Jonathan,
not sure if this helps but encompass the select query in a string then just call the strin
lstrsql = "SELECT COUNT(*) AS Expr1 FROM(tblCustomer)" & pstrSQL
myCommand.CommandText = lstrsql
hth,
bueller
tekhed,
Here is a way to force it. i do not know if this works in 2003 but it should.
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup>
<requiredRuntime version="v1.0.3705" safemode="true"/>
</startup>
</configuration>
HTH...
AkutaSame,
No, i am saying that i believe it is easier to do it in code using ado instead of using the wizard since i have not done it using the wizard to generate the dataset/adapter/connection/etc.
The way i have done my databinding is to do it all in code without any wizards. that way i can...
tekhed,
you can force the app to use the 1.0 dll's. Check in the app.config file. It does it by default vs 2002. if i find how to do it i will post it.
HTH,
Bueller
Steve,
I have been having the fun or getting windows services to run and do kinda what you want them to do. After much messing around i use a different method to do my windows services. I create a base class that has all of the onstart onstop,etc services commands then in he main service i...
bigfoot,
this is what i used to get logged in user and computer name works quick and easy.
Public gstrUserName As String = System.Windows.Forms.SystemInformation.ComputerName.ToString & "\" & System.Windows.Forms.SystemInformation.UserName.ToString
hth,
Bueller
AkutaSame.
Have you tried removing all binding to the label withing code and then rebinding the data to it. i had a similar problem and that is all i had to do to get it working.
HTH,
bueller
Manch,
Are you using a dataset or connecting each thing to a datasource and retreiving the data. You could you a dataset that has multiple data tables in it then have each tab use a different data table within the dataset. or if it is driven off of one datatable then you can have each tab page...
IcTech,
are you attaching directly to the DB or are you going thru a DSN. It might work if you go thru a DSN instead of direct connection to the database.
HTH,
Bueller
Joe,
My suggestion would be if you just need to grab a quick static recordset and then store it locally store it in a local XML file on the Pocket PC. It is easy to do with .NET. as long as the XML file is not to huge.
HTH,
Bueller
Jamie,
Is this a bound recordset or a disconnected recordset that is being displayed. The way i do it is i move the data into a dataset then work with it.
HTH,
Bueller
Hi,
I have run into a weird problem with a panel on one of my forms. I have a sub that all it does it clear out the 10 texts boxes and inactivates them on the panel. i also have refresh button on the panel. Now when i call the sub from a button just sitting on the form it goes thru the steps of...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.