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
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.