Skip to main content

[archive] Date Time Picker Activex

  • December 10, 2009
  • 20 replies
  • 0 views

[Migrated content. Thread originally posted on 10 December 2009]

Hello,
can someone please give me a short example about using the Microsoft Date Time Picker via ActiveX?
I tried it several times, but every time I get compilation errors like:
datetimepicker.def, line 9: Warning '.' expected, ?? found
datetimepicker.def, line 9: Warning PROCEDURE expected, ?? found
.
.
.


Thanks.

20 replies

[Migrated content. Thread originally posted on 10 December 2009]

Hello,
can someone please give me a short example about using the Microsoft Date Time Picker via ActiveX?
I tried it several times, but every time I get compilation errors like:
datetimepicker.def, line 9: Warning '.' expected, ?? found
datetimepicker.def, line 9: Warning PROCEDURE expected, ?? found
.
.
.


Thanks.
Are you using Acubench or manually adding the .def file in your code?

[Migrated content. Thread originally posted on 10 December 2009]

Hello,
can someone please give me a short example about using the Microsoft Date Time Picker via ActiveX?
I tried it several times, but every time I get compilation errors like:
datetimepicker.def, line 9: Warning '.' expected, ?? found
datetimepicker.def, line 9: Warning PROCEDURE expected, ?? found
.
.
.


Thanks.
The .def file was generated by the axdefgen tool and than manually added to the code in the special-names section.

[Migrated content. Thread originally posted on 10 December 2009]

Hello,
can someone please give me a short example about using the Microsoft Date Time Picker via ActiveX?
I tried it several times, but every time I get compilation errors like:
datetimepicker.def, line 9: Warning '.' expected, ?? found
datetimepicker.def, line 9: Warning PROCEDURE expected, ?? found
.
.
.


Thanks.
The .def file was generated by the axdefgen tool and than manually added to the code in the special-names section.

[Migrated content. Thread originally posted on 10 December 2009]

Hello,
can someone please give me a short example about using the Microsoft Date Time Picker via ActiveX?
I tried it several times, but every time I get compilation errors like:
datetimepicker.def, line 9: Warning '.' expected, ?? found
datetimepicker.def, line 9: Warning PROCEDURE expected, ?? found
.
.
.


Thanks.
The .def file was generated by the axdefgen tool and than manually added to the code in the special-names section.

[Migrated content. Thread originally posted on 10 December 2009]

Hello,
can someone please give me a short example about using the Microsoft Date Time Picker via ActiveX?
I tried it several times, but every time I get compilation errors like:
datetimepicker.def, line 9: Warning '.' expected, ?? found
datetimepicker.def, line 9: Warning PROCEDURE expected, ?? found
.
.
.


Thanks.
Paste your special-names section please.
Your probably missing a "." I'd say.

[Migrated content. Thread originally posted on 10 December 2009]

Hello,
can someone please give me a short example about using the Microsoft Date Time Picker via ActiveX?
I tried it several times, but every time I get compilation errors like:
datetimepicker.def, line 9: Warning '.' expected, ?? found
datetimepicker.def, line 9: Warning PROCEDURE expected, ?? found
.
.
.


Thanks.
The section is:

SPECIAL-NAMES.
COPY "../addinn/datetimepicker.def".
DECIMAL-POINT IS COMMA.

[Migrated content. Thread originally posted on 10 December 2009]

Hello,
can someone please give me a short example about using the Microsoft Date Time Picker via ActiveX?
I tried it several times, but every time I get compilation errors like:
datetimepicker.def, line 9: Warning '.' expected, ?? found
datetimepicker.def, line 9: Warning PROCEDURE expected, ?? found
.
.
.


Thanks.
Don't know sorry.
What version are you running
Definately looks like a decimal point type error.

[Migrated content. Thread originally posted on 10 December 2009]

Hello,
can someone please give me a short example about using the Microsoft Date Time Picker via ActiveX?
I tried it several times, but every time I get compilation errors like:
datetimepicker.def, line 9: Warning '.' expected, ?? found
datetimepicker.def, line 9: Warning PROCEDURE expected, ?? found
.
.
.


Thanks.
Don't know sorry.
What version are you running
Definately looks like a decimal point type error.

[Migrated content. Thread originally posted on 10 December 2009]

Hello,
can someone please give me a short example about using the Microsoft Date Time Picker via ActiveX?
I tried it several times, but every time I get compilation errors like:
datetimepicker.def, line 9: Warning '.' expected, ?? found
datetimepicker.def, line 9: Warning PROCEDURE expected, ?? found
.
.
.


Thanks.
The Compilation works fine now. I had a problem with the file format. The .def was generated in Windows but i am using it in a Linux environment. Now i only have to figure out how this control works.

Thanks a lot.

[Migrated content. Thread originally posted on 10 December 2009]

Hello,
can someone please give me a short example about using the Microsoft Date Time Picker via ActiveX?
I tried it several times, but every time I get compilation errors like:
datetimepicker.def, line 9: Warning '.' expected, ?? found
datetimepicker.def, line 9: Warning PROCEDURE expected, ?? found
.
.
.


Thanks.
Don't know sorry.
What version are you running
Definately looks like a decimal point type error.

[Migrated content. Thread originally posted on 10 December 2009]

Hello,
can someone please give me a short example about using the Microsoft Date Time Picker via ActiveX?
I tried it several times, but every time I get compilation errors like:
datetimepicker.def, line 9: Warning '.' expected, ?? found
datetimepicker.def, line 9: Warning PROCEDURE expected, ?? found
.
.
.


Thanks.
Now i have the problem that the Date Time Picker is not visible at all clients.
Does someone know which requirements must fit in order that the DTP works?

[Migrated content. Thread originally posted on 10 December 2009]

Hello,
can someone please give me a short example about using the Microsoft Date Time Picker via ActiveX?
I tried it several times, but every time I get compilation errors like:
datetimepicker.def, line 9: Warning '.' expected, ?? found
datetimepicker.def, line 9: Warning PROCEDURE expected, ?? found
.
.
.


Thanks.
What version though?

I presume you're running under thin client also?

I don't use that particular control per say, but the "standard" acucobol one which was brought into V8.1 maybe.
I'm pretty sure it just uses the Microsoft control behind the scenes.
So far I haven't experienced any such issues and we've got thin client with Unix & windows setups

Is the control actually present on the machine which doesn't display it?

[Migrated content. Thread originally posted on 10 December 2009]

Hello,
can someone please give me a short example about using the Microsoft Date Time Picker via ActiveX?
I tried it several times, but every time I get compilation errors like:
datetimepicker.def, line 9: Warning '.' expected, ?? found
datetimepicker.def, line 9: Warning PROCEDURE expected, ?? found
.
.
.


Thanks.
What version though?

I presume you're running under thin client also?

I don't use that particular control per say, but the "standard" acucobol one which was brought into V8.1 maybe.
I'm pretty sure it just uses the Microsoft control behind the scenes.
So far I haven't experienced any such issues and we've got thin client with Unix & windows setups

Is the control actually present on the machine which doesn't display it?

[Migrated content. Thread originally posted on 10 December 2009]

Hello,
can someone please give me a short example about using the Microsoft Date Time Picker via ActiveX?
I tried it several times, but every time I get compilation errors like:
datetimepicker.def, line 9: Warning '.' expected, ?? found
datetimepicker.def, line 9: Warning PROCEDURE expected, ?? found
.
.
.


Thanks.
What version though?

I presume you're running under thin client also?

I don't use that particular control per say, but the "standard" acucobol one which was brought into V8.1 maybe.
I'm pretty sure it just uses the Microsoft control behind the scenes.
So far I haven't experienced any such issues and we've got thin client with Unix & windows setups

Is the control actually present on the machine which doesn't display it?

[Migrated content. Thread originally posted on 10 December 2009]

Hello,
can someone please give me a short example about using the Microsoft Date Time Picker via ActiveX?
I tried it several times, but every time I get compilation errors like:
datetimepicker.def, line 9: Warning '.' expected, ?? found
datetimepicker.def, line 9: Warning PROCEDURE expected, ?? found
.
.
.


Thanks.
You're right, we are using the thin client.
Our current version is ACUCOBOL-GT 6.1 in which the acucobol date-entry isn't available.

How do i find out whether the control is present?

[Migrated content. Thread originally posted on 10 December 2009]

Hello,
can someone please give me a short example about using the Microsoft Date Time Picker via ActiveX?
I tried it several times, but every time I get compilation errors like:
datetimepicker.def, line 9: Warning '.' expected, ?? found
datetimepicker.def, line 9: Warning PROCEDURE expected, ?? found
.
.
.


Thanks.
Axdefgen will tell you the location/name of the control
I think you'll be looking for mscomctl2.ocx - maybe someone more experienced than me can help you more.

[Migrated content. Thread originally posted on 10 December 2009]

Hello,
can someone please give me a short example about using the Microsoft Date Time Picker via ActiveX?
I tried it several times, but every time I get compilation errors like:
datetimepicker.def, line 9: Warning '.' expected, ?? found
datetimepicker.def, line 9: Warning PROCEDURE expected, ?? found
.
.
.


Thanks.
You're absolutly right. The necesarry file is mscomct2.ocx and this is missing on the "faulty" clients. I've found a guide in this forum which shows how to check whether a control is installed or not. I am going to try this.

[Migrated content. Thread originally posted on 10 December 2009]

Hello,
can someone please give me a short example about using the Microsoft Date Time Picker via ActiveX?
I tried it several times, but every time I get compilation errors like:
datetimepicker.def, line 9: Warning '.' expected, ?? found
datetimepicker.def, line 9: Warning PROCEDURE expected, ?? found
.
.
.


Thanks.
You're absolutly right. The necesarry file is mscomct2.ocx and this is missing on the "faulty" clients. I've found a guide in this forum which shows how to check whether a control is installed or not. I am going to try this.

[Migrated content. Thread originally posted on 10 December 2009]

Hello,
can someone please give me a short example about using the Microsoft Date Time Picker via ActiveX?
I tried it several times, but every time I get compilation errors like:
datetimepicker.def, line 9: Warning '.' expected, ?? found
datetimepicker.def, line 9: Warning PROCEDURE expected, ?? found
.
.
.


Thanks.
You're absolutly right. The necesarry file is mscomct2.ocx and this is missing on the "faulty" clients. I've found a guide in this forum which shows how to check whether a control is installed or not. I am going to try this.

[Migrated content. Thread originally posted on 10 December 2009]

Hello,
can someone please give me a short example about using the Microsoft Date Time Picker via ActiveX?
I tried it several times, but every time I get compilation errors like:
datetimepicker.def, line 9: Warning '.' expected, ?? found
datetimepicker.def, line 9: Warning PROCEDURE expected, ?? found
.
.
.


Thanks.
We check for controls and if they're not present we'll either copy the control from our Unix or Windows server to the client, register the control and carry on seamlessly

I'm pretty sure I stuck the example on here