Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Oracle forms cast OleVar to Varchar2

Posted on 2001-08-08
2
Medium Priority
?
1,138 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 2

Accepted Solution

by:
vanmeerendonk earned 300 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

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

Question has a verified solution.

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

Cursors in Oracle: A cursor is used to process individual rows returned by database system for a query. In oracle every SQL statement executed by the oracle server has a private area. This area contains information about the SQL statement and the…
Shell script to create broker configuration file using current broker Configuration, solely for purpose of backup on Linux. Script may need to be modified depending on OS-installation. Please deploy and verify the script in a test environment.
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
This video shows how to Export data from an Oracle database using the Original Export Utility.  The corresponding Import utility, which works the same way is referenced, but not demonstrated.

610 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