473,385 Members | 1,848 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.

vbnewline

I am using MSFlexGridcontrol.In that i want input value in to next line of the row @ run time in a single row
I used VBNEWLINE ,but i didnt get correct result..
My code is

Do Until rec.EOF
MSFlexGrid1.RowHeight(1) = i
If first = True Then
If rec!BOOK_ID = VALU1 And rec!TYPE_NAME <> VALU2 And test_value = False Then
If rec!TYPE_NAME = FVALU1 Then
test_value = True
GoTo x
End If
' r = r + 1
' MSFlexGrid1.Rows = r + 1
MSFlexGrid1.TextMatrix(1, 3) = vbNewLine & rec!TYPE_NAME
VALU1 = rec!BOOK_ID
VALU2 = rec!TYPE_NAME
VALU3 = rec!AUTHOR_NAME
i = i + 200
End If
x: If rec!BOOK_ID = VALU1 And rec!AUTHOR_NAME <> VALU3 Then
MSFlexGrid1.TextMatrix(1, 4) = vbNewLine & rec!AUTHOR_NAME
s = s + 1
VALU3 = rec!AUTHOR_NAME
End If
Else
For c = 0 To count - 1
MSFlexGrid1.TextMatrix(1, c) = "" & rec.Fields(c)
VALU1 = rec!BOOK_ID
VALU2 = rec!TYPE_NAME
VALU3 = rec!AUTHOR_NAME
FVALU1 = rec!TYPE_NAME
first = True
Next c
End If
rec.MoveNext
Loop

Please give me good solution
Sep 8 '08 #1
1 2469
QVeen72
1,445 Expert 1GB
Hi,

You have to take care of 2 things:
First Check Property "WordWrap" for the Grid,
and Corresponding Row Height need to be Increased..

Grd.RowHeight(1) = 500

Regards
Veena
Sep 8 '08 #2

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

Similar topics

13
by: TinyTim | last post by:
I'm a newbie at ASP & HTML. It seems that when you use server side code and you're going to return a customized HTML form with several fields and labels, you have to do an extensive amount of...
1
by: Viktor Popov | last post by:
Hi, I'm trying to upload a file and I do that with this code, but there is a thing which doesn't work. I can't understand how to check if it isn't written the path to the file(the text field of...
3
by: Burning_Ranger | last post by:
If I do something like: txtAddress.Text = "test1" & vbCrLf & "test2 All I get is: test1test2 The represents a character that looks like a rectangle. Why is this?
6
by: ErwinF | last post by:
Hi there, I would like to know the following: How to send send email attachments using WebDAV in VB .NET? Sample code please................... Thanks for your help.
11
by: John Ortt | last post by:
Hi everyone. I have a database which I have developed in Access 2000 which is working nicely. The problem is that my customer only has Access 97. I tried to convert the database but the main...
6
by: SLH | last post by:
if i have a text area on a page that i want to validate, and i dont want there to ever be 2 "enter"s in a row, how can i check for this? ive been playing with something like: If InStr(string,...
10
by: MLH | last post by:
Gentlemen: I am having one heck of a time taking a DAO walk through the records in an SQL dynaset. I'm trying to walk a set of records returned by a UNION query. I'm attempting to filter the...
3
by: Lou | last post by:
Which is more efficient? -Lou
0
by: iain654 | last post by:
I have finally worked out how to automatically send a range of cells in the body of an email using Outlook but it is very clumsy and I have to build up the email using the limit of line...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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.