Solved

Oracle forms cast OleVar to Varchar2

Posted on 2001-08-08
2
1,119 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Join & Write a Comment

This post first appeared at Oracleinaction  (http://oracleinaction.com/undo-and-redo-in-oracle/)by Anju Garg (Myself). I  will demonstrate that undo for DML’s is stored both in undo tablespace and online redo logs. Then, we will analyze the reaso…
Checking the Alert Log in AWS RDS Oracle can be a pain through their user interface.  I made a script to download the Alert Log, look for errors, and email me the trace files.  In this article I'll describe what I did and share my script.
This video shows information on the Oracle Data Dictionary, starting with the Oracle documentation, explaining the different types of Data Dictionary views available by group and permissions as well as giving examples on how to retrieve data from th…
Via a live example, show how to restore a database from backup after a simulated disk failure using RMAN.

747 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

11 Experts available now in Live!

Get 1:1 Help Now