Variable types in COM-Objects

This is a discussion on Variable types in COM-Objects within the PHP Language forums, part of the PHP Programming Forums category; Hi, I have a problem, which is very difficult zu solve, so I try to explain short and simple (with ...


Go Back   Usenet Forums > PHP Programming Forums > PHP Language

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 11-05-2003
Kirsten
 
Posts: n/a
Default Variable types in COM-Objects

Hi,

I have a problem, which is very difficult zu solve, so I try to
explain short and simple (with examples).

I get an COM-Object (Crystal Report) in PHP an everything works
perfectly, but I have problems with one method of the COM-Object (but
I am not searching for an documentation or help directly for these
functions! The problem is deeper, please read on!):

GetNthDefaultValue (index)

Now, I have to explain: With this function I get the default value of
a parameter field in a Crystal Report. There are different field
types: Numbers, Strings, Dates, Time,...

--------------------------------------

Now my problem, explained in some examples:

For example, if I want to get a default value of a Date-Field in
Visual Basic, I call the GetNthDefaultValue-function and show the
result per MsgBox:

RESULT: 31.10.2003 00:00:00

If I want to get the value in PHP, there is another result:

RESULT: 1067554800

Well, I get the TimeStamp, and this is not really a problem... I can
convert the time stamp to the date

NOW THE PROBLEM:

If I want to do the same with a Time-Field

Visual-Basic-RESULT: 05:30:00

PHP-RESULT: -1

=> Error

Why does this happen? I think, that the called COM-Method is
overloaded with different variable types? Perhaps PHP wants to convert
the result into an integer forcefully (there is no Date/Time-structure
in PHP...), so the function fails? Do work-arounds for such problems
exist?

Please help!

Thank you!
Reply With Quote
  #2 (permalink)  
Old 11-08-2003
Kirsten
 
Posts: n/a
Default Re: Variable types in COM-Objects

Nobody knows anything about this topic?
I really need help!!
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 07:13 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0