From: Hett on 17 Oct 2005 07:01
I've a problems with getting the Color(property) after the ShowColor
The CommonDialog control has the Color property, which should return
the color code, but it's in OLE_COLOR type.
How I can convert this type into the standart types of Navision
(integer, text, etc.)?
It's possible to get the value of the Color into the Variant type
variable, but the Evaluate function brings the following error:
"You cannot enter '' in Integer. The cursor is in front of the invalid
How I can do this conversion?
Thanks in advance.
From: Andrzej on 18 Oct 2005 08:17
>I've a problems with getting the Color(property) after the ShowColor
Use Microsoft ScriptControl.
lcDialog OCX Microsoft Common Dialog Control, version 6.0
lcScript Automation 'Microsoft Script Control 1.0'.ScriptControl
lcScript.Language := 'VBScript';
RetVal := lcScript.Eval(lcDialog.Color);
riValue := RetVal;
From: Hett on 18 Oct 2005 09:31
You help me a lot. I've just completed the huge part of my task.