-
I'm Doing a Fractal Control and I want to have a couple of properties as Complex Numbers, I have a UDT
Code:
Public Type Complex
Real As Double
Imaginary As Double
End Type
but this is pretty useless in the Design Time Property Window, I want to have a String in the Property Window like "4+3i" but at Runtime I want this to be my UDT.
Is there any way of doing this, obviously I can do the conversions myself but How do I handle this conflict in Types?
Thanks in adv
-
I don't really get what you're saying? You want to convert a String to a Double?
[b]
Code:
Complex.Real = MyString
-
Hehe, Sam, i'm sure you can do it with a classmodule, but for an udt, maybe you should use a function or something:
Function cx2str$(Cx as complex)
and
Function str2cx(str$) as complex
-
No, That's not what I want at all.
I have my User Defined Type Complex and a property
Centre as Complex
This is fine to do at runtime but you can't have a udt appear in the property window, it's expecting a string.
How Do I controll the string interface to the property window without having the property a string at runtime?