PowerBuilder Bugs: Using VB ActiveX control (OCX) in PowerBuilder 6.0
I'm going to write some VB ActiveX control (using Microsoft VB6.0 SP3)
to be used in PowerBuiler 6.5,
but I found that it's very easy to crash in PowerBuilder,
Here is the test case:
1) Create a very simple VB ActiveX control (only one button without any
script) in Visual Basic
2) Create a PB project to open a Main Window (w_1) with an ole object of
VB ActiveX control
3) Open another Window (w_2) with an ole object of VB ActiveX control
(can be same as previous or other control)
4) Click the OLE object in w_2 to make it get focus
5) Close w_2 -> it will crashed
If ...c:\inetpub\wwwroot\WebApplication1\subject_info.aspx.vb(658): Value of type '1-dimensional array of System.Data.DataRow' cannot be converted to 'System.Data.DataRow'.
I have a "select link" in one of the fields in the DataGrid. I want it retreive informations when i click on that link and display in the text box so i can modify data.
The problem is i always have this error when i COMPILE: " Value of type '1-dimensional array of System.Data.DataRow' cannot be converted to 'System.Data.DataRow' ".
Here's is my code:
Private Sub UpdateDetails(ByVal uSubjectID As String)
DaLecturer1 = Session("ds")
Dim dt As DataTable = DaLectur...Can we set control array for OCX like VB in PowerBuilder.
I am writing a winsock program using Microsoft mswinsock.ocx. One of the
requirements that the program can create a winsock.ocx to listen to a
new coming socket. In VB, we can create a control array of
mswinsock.ocx. But I cannot find a similar feature in PowerBuilder.
Can anybody help me on how I can implement a dynamic set of ocx?
I don't believe that control arrays (like the ones in VB) are possible in
Simon Poon wrote in message <38200B87.1C146B0A@hkstar.com>...
>I am writing a w...VB COM (ActiveX dll) OLE from Powerbuilder 10.5
I have folder/file backup function in my application.
To notify the PB window of the progress and status of the
I use the CopyFileEx (which uses callback) windows api
function in visual basic to achieve the file backup
The VB project has one main module and one class. The module
contains the callback function (the function that will be
called by CopyFileEx
to notify about the changes and progress of the copy. It
also contains the caller function that initiate the
All that the callback function does is to send a message to
a registered PB window ab...how can i use powerbuilder to develop an activex/ole/ocx? help me please!!!
Please do not cross-post.
Roy Kiesler [TeamSybase]
MySybase -- http://www.sybase.com/mysybase
"tadsun" <firstname.lastname@example.org> wrote in message
...Problem: Different Data type in Oracle 8.0.4 and PowerBuilder 6.5
I've enountered a problem, i.e. in the PowerBuilder
script, I need to select one table in Oracle 8, but the field type in Oracle
Number, I can't get the data because the script doesn't support the type
create table UserRole
( UserName varchar2(12),
in the script:
strUser = sle_1.text;
strPass = sle_2.text;
select RoleNum into :nRole from UserRole
where UserName = :strUser
and PassWord = :strPass
But it doesn't work, would you be kind enough to offer me a solution or...convert array of structure data type to array of object
I have a problem of send argument to a web service which take an
array of structure as argument.
anyone know how to convert a array of
structure to an array of object which can be recognise by external web
the error i got is "BC30333: Value of type '1-dimensional array
of ASP.cfctestSandBox_aspx.SandboxRules' cannot be converted to '1-dimensional
array of System.Object' because 'ASP.cfctestSandBox_aspx.SandboxRules' is not a
Thanks in advance...different versions of MySql return different data types ?
I've got a production MySql server (version 3.23.56) on a remote computer and a testing server installed locally (version 3.23.58-nt).
Both have a copy of the same database (done by dumping one to the other).
The problem is that I'm getting type DBNull returned from one (local) and type String returned from the other (remote). This happens when I try to execute reader.getValue(reader.getOrdinal("column_name")) on a record where the cell is empty. The column type in MySql is 'text' and 'Allow Null' is true.
The same code is run to achieve this, just with modification o...Enumerated data types/object type on an activeX control
I am experimenting with a 3D rendering activeX.
The activeX comes with VB and C++ examples. In the VB example
I see a declaration like:
Dim TubeFace As vdPolyface
From the activeX help file I understand that vdPolyface is an object
type. When I try doing a powerbuilder declaration like:
I get a message like 'unknown datatype vdPolyface'. I am not new
to powerbuilder but have not done a lot of work with OCX/ActiveX
controls. Any help would be appreciated.
I don't believe that PB can 'see' the enums. ...Need data items w/ same name but different data types
Using PD 184.108.40.2060.
While trying to map an existing database into a CDM I need to establish data
items with different types but identical codes: Let E1 and E2 be entities, and
E1 shall get an attribute with name/code CODE and type VA10, while E2 has a CODE
with VA20. Do not forget: it's no new model, so renaming data items or changing
data types is not an option.
PD will not let me a second data item with the same name/code, and if I try to
define the second attribute named code, it identifies it with the first one and
changes the data type of the code item defined first to t...How to convert varchar data type into datetime data type without data lose
i have stored date as varchar(30) data type and Date format is dd/MM/yyyy now i have to convert it into datatime data type can u help me in query ?
i have 330 records and each recod contain the Date in format of dd/MM/YYYY but due to varchar data type i can not perform calculation on Date so i have to convert into datetime without data lose.
please help me in this regard.
life is name of learning!Mark as an answer if it helps
You can check these posts
...copying data from one table to a new one with some different data types
Is it possible to easily copy data from one table to another if the data types don't match. I know you can do a INSERT INTO table1(col1,col2) SELECT (col2,col7) FROM table2 if the data types match but is there a way to do this if they don't. I'm not trying to copy date times into bit fields or anything. I just have an old table that I built when I really didn't know what I was doing now I at leastthink I have a better understanding of what data types to use, so I was wanting to move the data in the orignal table to my new one. Most of the fields in the oldd...Array of record type with array of record type...
I wonder how I can resolve these delphi code lines.
TRec1 = packed record
TRec2 = packed record
Rec1: array of TRec1;
CTERec: array[0..1] of TRec2 = (
(R2Name: 'R2Name1'; Rec1: ( (R1Name: 'R1Name1'; R1Int: 1),
R1Int: 2) ),
(R2Name: 'R2Name2'; Rec1: ( (R1Name: 'R1Name3'; R1Int: 3) )
Delphi compiler stop on the first R1Name with this me...Difference of array types
I'm curious if there is any explanation description of the side effects
of the following code segments:
procedure TForm1.Button1Click(Sender: TObject);
var a : Array of integer;
b : TIntegerDynArray;
i : Integer;
for i := 0 to 3 - 1 do
a[i] := -1;
b[i] := -1;
ShowMessage(IntToStr(a) + ' ' + IntToStr(a));
ShowMessage(IntToStr(b) + ' ' + IntTo...