Search found 155 matches

by Frank Maraite
Fri Dec 22, 2017 9:14 am
Forum: Product
Topic: 'Do Case' - good example to share ???
Replies: 20
Views: 7139

'Do Case' - good example to share ???

<r>Hi Wolfgang,<br/>
<br/>
I would not say that. You have a complex and feature rich application running almost bug free. You must be a good programmer!<br/>
<br/>
If you or others like I will show in more detail later how I would refactor your code and why. BTW: My code looks he same after the ...
by Frank Maraite
Fri Dec 22, 2017 8:05 am
Forum: Product
Topic: 'Do Case' - good example to share ???
Replies: 20
Views: 7139

'Do Case' - good example to share ???

<t>Wolfgang,<br/>
<br/>
I hope you don't take it personal. We all have good and not so good code. But here we want to help each other. In this sense I take the opportunity to show how code can be made better. And: Phil asked for 'good example to share'.<br/>
<br/>
I'm very happy about that you show ...
by Frank Maraite
Fri Dec 22, 2017 7:30 am
Forum: Product
Topic: 'Do Case' - good example to share ???
Replies: 20
Views: 7139

'Do Case' - good example to share ???

<r>Hi,<br/>
<br/>
@Karl:<br/>
Unit tests are your friend <E>:-)</E>. Once you are familiar with you know the outstanding value.<br/>
<br/>
@Wolfgang:<br/>
Your example shows what is named 'feature envy'. Put the boolean logic to where it belongs, the class oVariante, as some kind of 'super property ...
by Frank Maraite
Thu Dec 21, 2017 8:12 pm
Forum: Product
Topic: 'Do Case' - good example to share ???
Replies: 20
Views: 7139

'Do Case' - good example to share ???

<t>Karl,<br/>
<br/>
did you mean two CASE conditions with two different case blocks? Or two differetn CASE conditions with the same case block?<br/>
<br/>
Thas last one comes with (from Phil's example):<br/>
<br/>
SWITCH MaskOption<br/>
CASE MaskOption.None<br/>
myRXO := RegExOptions.None<br/>
CASE ...
by Frank Maraite
Thu Dec 21, 2017 3:47 pm
Forum: Product
Topic: 'Do Case' - good example to share ???
Replies: 20
Views: 7139

'Do Case' - good example to share ???

<r>Phil,<br/>
<br/>
SWITCH is checking against constanst, DO CASE checks anything.<br/>

<CODE><s>[code]</s>Local test as STRING
Local age as int
local Name as STRING
... // something stored in test

SWITCH Test
CASE "a" // "a" is a constant
...
CASE "b"
...
OTHERWISE // I have always OTHERWISE, so ...
by Frank Maraite
Mon Dec 18, 2017 1:32 pm
Forum: Chit-Chat
Topic: Virtual Reality - Headset + ... help please
Replies: 5
Views: 2823

Virtual Reality - Headset + ... help please

<r>Hi Phil and Julie,<br/>
<br/>
please look here:<br/>
<br/>
<URL url="https://sketchfab.com">https://sketchfab.com</URL><br/>
<br/>
and in more detail here:<br/>
<URL url="https://sketchfab.com/vr">https://sketchfab.com/vr</URL><br/>
<br/>
The sketchfab guys are very close to VR. Search on the ...
by Frank Maraite
Fri Dec 15, 2017 6:52 am
Forum: Product
Topic: Use of unassigned vars
Replies: 6
Views: 2647

Use of unassigned vars

<r>Hi Karl,<br/>
in your first line after try you have<br/>

<CODE><s>[code]</s>Response := (HttpWebResponse)Request:GetResponse()<e>[/code]</e></CODE>

This may fail to another then a System.Net.WebException. This (other) exception is not catched. So the second line<br/>

<CODE><s>[code]</s>SR ...
by Frank Maraite
Wed Dec 13, 2017 8:52 pm
Forum: Chit-Chat
Topic: Latest version (96) of 'ClickStartXSharp' link ...
Replies: 5
Views: 2729

Latest version (96) of 'ClickStartXSharp' link ...

Karl,

thanks. Works now.

Frank
by Frank Maraite
Wed Dec 13, 2017 7:57 pm
Forum: Chit-Chat
Topic: Latest version (96) of 'ClickStartXSharp' link ...
Replies: 5
Views: 2729

Latest version (96) of 'ClickStartXSharp' link ...

Hi Phil, Karl,

I downloaded (thanks Phil) but don't see anything on the right. The index is ok, I can search, but nothing to read.

What is the trick? Using Win10 Pro 1709 16299.98.

Frank
by Frank Maraite
Wed Dec 13, 2017 6:22 pm
Forum: Chit-Chat
Topic: Holiday
Replies: 11
Views: 4361

Holiday

Hi Robert,

I wish you a great journey! Enjoy the nature and don't think about coding or these things.

You deserve it!

Frank