Solved

Oracle forms cast OleVar to Varchar2

Posted on 2001-08-08
2
1,122 Views
Last Modified: 2007-12-19
Hi,

I'm working with Oracle form 6i and I have a ActiveX
control on a form that has a property that I need to
read into a Varchar2 but the AxtiveX property is a OleVar.
How can I cast the OleVar to VarChar? I was looking at
the OLE2.Get_Char_Property, but I not sure if I'm using it
right, Then I tried the VBX.Get_Property, but I get error
FRM-41318 Item <myActiveX> is not a VBX item.

Thanks in advance.

Bill.
0
Comment
Question by:bnemmers
2 Comments
 
LVL 2

Accepted Solution

by:
vanmeerendonk earned 100 total points
ID: 6365616
try using the build in
VAR_TO_CHAR  
  (actually, there are also VAR_TO_NUMBER & VAR_TO_OBJ)

l_varchar := VAR_TO_CHAR(l_olevar);

I don't know if l_varchar2 has spaces concatenated, but you'll find out,
0
 
LVL 1

Author Comment

by:bnemmers
ID: 6488765
I had to revamp my form and I didn't need this type of
conversion. So I don't know if it work or not, but thanks
for your time.

Bill :-)
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This article started out as an Experts-Exchange question, which then grew into a quick tip to go along with an IOUG presentation for the Collaborate confernce and then later grew again into a full blown article with expanded functionality and legacy…
How to Create User-Defined Aggregates in Oracle Before we begin creating these things, what are user-defined aggregates?  They are a feature introduced in Oracle 9i that allows a developer to create his or her own functions like "SUM", "AVG", and…
This video explains at a high level with the mandatory Oracle Memory processes are as well as touching on some of the more common optional ones.
Via a live example, show how to restore a database from backup after a simulated disk failure using RMAN.

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now