473,385 Members | 1,893 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Data type in flex grid

akashazad
Hi,

In my VB application ,I have used a flex grid in which I had cols named Discount and Charges now I want to give a validation that if the person enters the Discount it should be less then Charges,for that I compared the data of Discount col with Zero to check wether the user had entered the Discount or not if Yes then I compared Discount with Charges .

I have defined the ColDatatype property of both the col as FlexDTDouble.
**************CODE*****************************
If vsfgInvestigations.TextMatrix(1, Discount) <> 0 Then
If vsfgInvestigations.TextMatrix(1, Discount) > vsfgInvestigations.TextMatrix(1, Charges) Then
MsgBox "Discount should be less then charges", vbInformation, Me.Caption
Exit Function
End If
End If
******************CODE**************************** **
Now the problem arises when I compare Discount Col with Zero it gives the Error as Datatype Mismatch.

So which Datatype should I use.
Feb 27 '08 #1
1 1607
debasisdas
8,127 Expert 4TB
I think while using ext matrix it considers everything as text not numbers. Try to use Val function before comparing.
Feb 27 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Qumer Mumtaz | last post by:
H How to us MS Flex Grid in C#.I mean how to add columns and rows at run time and how to assign values to the columns and rows ? Any help in this regard will be appriciated Plz reply sooon............
7
by: Tull Clancey | last post by:
Hi all. I'm fast becoming very fed up with the standard .net datagrid. I rely on grids a great deal, the .net grid is a pain to work with and very difficult to customise. Has anyone used any...
5
by: schapopa | last post by:
I have a flex grid and I am loading data to this flex grid in this way While sqldr.Read j = j + 1 MSFlexGrid1PLSummary.set_TextMatrix(MSFlexGrid1PLSummary.Row, MSFlexGrid1PLSummary.Col,...
9
by: Vincent | last post by:
I am trying to create a function that is called on the Flex Grid's MouseDown event. However, this event is not listed in the properties for this object. I tried to manually create the prototype...
1
by: Stroumfs | last post by:
Hi! Can anyone tell me how can i print a flex grid? I created a button print below the flex grid.What code should i write in order to print? and how can i can i change the colour and the font of...
10
by: Jules Winfield | last post by:
Guys, I've been designing applications for the financial services industry using MSFT technologies for many years (Win32 API, MFC, and now .NET WinForms). All applications are Internet-based,...
1
by: charvi | last post by:
hi now i want to add all the names from table to combo column in flex grid.whr is the syntax now my flex grid column 3 acta as combo box how can i code pls help
0
by: ganeshvkl | last post by:
hi please,how Calculate time for loading data from Ms Access into Flex Grid anybody known reply soon
1
by: Bills | last post by:
Hi, I am looking for a grid that supports the following requirements: Firstly, I need to bind a datatable (which I fetch from a database) to the grid. I then need to be able to add columns...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.