Comparing 2 strings from 2 files -match
using udt's and MDI forms how do you compare
to lines from two different files
Web Development
using udt's and MDI forms how do you compare
to lines from two different files
by glen_mcleod
The question seems a little vague, but once you hve read the data into your UDT's, you can use the standate string comparison operators for your language. In VB you can use the 'equals' sign or the function StrComp.
If myUdtFromFile1.strInfo = myUdtFromFile2.strInfo then ...
If this doesn't help, post some more specific information, and I'll figure it out for you.
Glen
by glen_mcleod
by rpar855305
Patrons have reserved seats at a PlayHouse
If a performance date is clicked:
IF the id number for reservation selected
equals performance id number
then my label array of seats should color
the label red
This is what I have
Reservations - one file
Performances - another file
g_ID equals performance id
For intIndex = 0 To 47 'There are 48 seats
ReDim Preserve udt_Reservations(intIndex)
If (RTrim(udt_Reservations(intIndex).id))=
g_ID Then
lblSeats(RTrim(udt Reservations(intIndex).
seat).BackColor = vbRed
End If
Next intIndex
'Only seats previously reserved should be
red for that particular performance
by rpar855305
Patrons have reserved seats at a PlayHouse
If a performance date is clicked:
IF the id number for reservation selected
equals performance id number
then my label array of seats should color
the label red
This is what I have and it doesn't work
Reservations - one file
Performances - another file
g_ID equals performance id
For intIndex = 0 To 47 'There are 48 seats
ReDim Preserve udt_Reservations(intIndex)
If (RTrim(udt_Reservations(intIndex).id))=
g_ID Then
lblSeats(RTrim(udt Reservations(intIndex).
seat).BackColor = vbRed
End If
Next intIndex
'Only seats previously reserved should be
red for that particular performance
This discussion is closed to new replies.
Sort by Trending