lable text syntax
Posted on 2006-06-21
I have a lable (lblPathway) I wanted added to an existing windows form.
I want the lable to read what is pulled over by a dataadapter.
I've created a dataset from this adapter (dsPathway) and it contains two fields
If fieldA = 1(it's a bit 1 or 0) then I want it to display some text and a FieldB. else I want to display only fieldB.
so something like If dsPathway.fieldA = '1' then lblPathway = "IMG + dspathway.fieldb.text" Else lblPathway = DsPathway.text
so does this look correct? do I need a function?
Thanks in advance.
Is this syntax correct?