Using The To-rowid Function

KrisM

Member
Do you think this code should raise a compilation error ?
Currently you can compile it but it will not work when you run it.
(Openedge 11.4)

Code:
define variable cdemo as longchar no-undo.
define variable rdemo as rowid no-undo.

cdemo = "xx,0x00000000000048e7".   /* random rowid */
rdemo = to-rowid (entry(2,cdemo)).
MESSAGE "OK?" (rdemo <> ?)
    VIEW-AS ALERT-BOX INFO BUTTONS OK.
 

TomBascom

Curmudgeon
You might try to be a bit less obscure... I'm guessing that you expect a compilation error because to-rowid() expects a CHARACTER argument rather than LONGCHAR?
 

KrisM

Member
Yes i should have mentioned this explicitely: if you replace longchar with character the example is working as expected.
 
Top