Solved

Oracle forms cast OleVar to Varchar2

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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Truncate is a DDL Command where as Delete is a DML Command. Both will delete data from table, but what is the difference between these below statements truncate table <table_name> ?? delete from <table_name> ?? The first command cannot be …
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.
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
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.

717 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