AnsweredAssumed Answered

VRf-Compare_Records

Question asked by VRFuser on Apr 17, 1997
send q VRf-Compare_Records vrf mgustin@smsmfg.sms.siemens.com

from: Greg Goebel / HP-MXD
      gvg@lvld.hp.com / 970-679-3030 / FAX 970-679-5971
to:   VRf / Mike Gustin
date: Thursday, 17 April 1997 1545 MDT

> I am trying to compare a text string with a record text string to see if
> they are equal, using the relational operator == . When I do this I get an
> error message "Unable to convert text to record"  or "Unable to convert
> record to text" depending on how I hook it up.
>
> I have tried using "Get Field" and the A.B syntax in relational expression
> to extract the field back as text but it does not work.

Works fine here.  See example program below.

> I have tried all of your suggestions, unfortunately they do not work. I am
> using V3.12 running on WIN3.11.

The program below was run on the same configuration.  I think there is some
subtle point that is not being conveyed in the message.  An example program
might clarify.

> Frustrated,
> Mike Gustin
> Siemens Medical
> mgustin@sme.siemens.com

Please stay in touch.

[%%] regards -- gvg

--------------------------------- cut here ----------------------------------
#! D:VW/vee -r
(saveFormat "1.2")
(date "Thu 17/Apr/1997")
(SaveCF "no")
(filterNAN 0)
(component 0 "ROOTCONTEXT"
(name "Untitled")
(interface
)
(implementation
  (locked no)
  (trigMode deg)
  (nextID 3)
  (component 0 "RECCONST"
   (name "Record")
   (interface
    (sequence in)
    (sequence out)
    (output 1
     (name "Record")
     (lock name constraints)
    )
   )
   (implementation
    (component value Record
     (schema
      (numFields 2)
      (fieldName "A"
       (type Text)
      )
      (fieldName "B"
       (type Real)
      )
     )
     (data
      (record
       ( "A" "warthog")
       ( "B" 1.25)
      )
     )
    )
   )
   (views
    (icon
    )
    (detail
     (origin 39 90)
     (extent 183 101)
     (formatters
     )
    )
    (active detail)
   )
  )
  (component 1 "FORMULA"
   (interface
    (sequence in)
    (sequence out)
    (input 1
     (name "A")
     (optional yes)
    )
    (output 1
     (name "Result")
     (lock name constraints)
    )
   )
   (implementation
    (component expr 1 "A.A=="warthogx"")
   )
   (views
    (icon
    )
    (detail
     (origin 171 274)
     (extent 138 32)
    )
    (terminals on)
    (active detail)
   )
  )
  (component 2 "TEXTDISPLAY"
   (interface
    (sequence in)
    (sequence out)
    (input 1
     (name "Data")
    )
   )
   (implementation
    (component clearAtPrerun 1)
    (component clearAtActivate 1)
   )
   (views
    (icon
    )
    (detail
     (origin 425 276)
     (extent 131 28)
    )
    (active detail)
   )
  )
  (configuration
   (connect D0:1 D1:1)
   (connect D1:1 D2:1)
  )
)
(views
  (detail
   (origin 0 24)
   (extent 640 418)
   (configuration
    (connect D0:1 D1:1
     (Point 224 140)
     (Point 240 140)
     (Point 240 210)
     (Point 120 210)
     (Point 120 290)
     (Point 138 290)
    )
    (connect D1:1 D2:1
     (Point 361 290)
     (Point 422 290)
    )
   )
   (stackingOrder 0 2 1)
  )
  (active detail)
  (numberFormats
   (realFormat standard)
   (realSigDigits 4)
   (realRadixSpec 4)
   (integerBase decimal)
  )
)
)

Outcomes