×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Using powercobol 5.0 controls with ole..

Using powercobol 5.0 controls with ole..

Using powercobol 5.0 controls with ole..

(OP)
Hi all

I would like to use the static and text (and others) powercobol 5.0 controls by calling and (above all) creating them by using the ole method.

I wrote (for manage the static controls):

 ENVIRONMENT     DIVISION.
 DATA            DIVISION.
 WORKING-STORAGE SECTION.
 01 OGGETTO      OBJECT REFERENCE OLE GLOBAL.
 01 G-SUBFORM-OLENAME PIC X(32) VALUE        "Fujitsu.PcobStaticText.4" GLOBAL.
 01 testo PIC X(100) VALUE "sample text".
 01 POS    PIC S9(4) COMP-5 VALUE 100.

 PROCEDURE       DIVISION.

          INVOKE OLE "CREATE-OBJECT"
          USING G-SUBFORM-OLENAME RETURNING OGGETTO

      INVOKE OGGETTO "SET-caption" using TESTO.

---------------------trouble at this line

          INVOKE OGGETTO "SET-Width" using POS.

Last invoke issues a object error. I have seen by using the oleview.exe program that the property "Width" is not present inside the COM control. So I can guess that I need to get and instance of other object.. Has someone any feedback about this ?


Thanks in advance
Federico

RE: Using powercobol 5.0 controls with ole..

Federico,

Not sure this helps,but the Fujitsu help states Position made up of the following elements. This property corresponds to the POS-Width
01  Positions.
    02 POS-X pic s9(4) comp-5.
    02 POS-Y pic s9(4) comp-5.
    02 POS-WIDTH pic s9(4) comp-5.
    02 POS-HEIGHT pic s9(4) comp-5.

Bruce

RE: Using powercobol 5.0 controls with ole..

(OP)
The invoke OGGETTO "SET-POW-WIDTH" .... do the same error.

It isn't inside the property's list of the oggetto item.

Federico

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close