Power sign (^) and 'continue' in loops

Hi guys,

I'm trying to do the simplest thing, and it seems like Solidworks doesn't support it even though VBA does.

<p>Sub main()</p><p>Dim swApp As Object</p><p>Set swApp = Application.SldWorks</p><p></p><p></p><p>Dim i As Double</p><p>i= i^ 2</p><p></p><p></p><p>End Sub</p>

This line gives me a syntax error because of the power symbol. I've seen the Microsoft VBA documentation and it's supported of course, it's even in the Solidworks help. The only problem is that it doesn't work. Any ideas? The above is a simplification, my actual line of code is lDblScaleLeft = lArrScaleFactors(j+1)*10^i 

My second question is regarding using 'continue' in do while and while loops. It seems that it is not supported, even when I follow the guidelines. The little bit of code should go straight from 5 to 9, but again I get a syntax error, now on the continue line.

<p></p><p></p><p>Sub main()</p><p>Dim swApp As Object</p><p>Set swApp = Application.SldWorks</p><p></p><p></p><p>Dim i As Integer</p><p>i = 0</p><p>Do While i < 10</p><p>    MsgBox ( i)</p><p>    If i = 5 Then</p><p>        i = 9</p><p>        continue do</p><p>    End If</p><p>    i = i + 1</p><p>Loop</p><p>End Sub</p><p></p>

Some documentation on the Do loop by microsoft here​.

What am I doing wrong?

SolidworksApi macros