| Mirage Source http://web.miragesource.net/forums/ |
|
| Compile error help: http://web.miragesource.net/forums/viewtopic.php?f=201&t=2064 |
Page 1 of 1 |
| Author: | genusis [ Fri Jun 15, 2007 7:26 pm ] |
| Post subject: | Compile error help: |
well it said compile error: sub or function not defined. Code: Sub LoadElements() Dim FileName As String Dim i As Long Dim f As Long Call CheckElement For i = 1 To MAX_ELEMENTS Call SetStatus("Loading elements... " & Int((i / MAX_ELEMENTS) * 100) & "%") FileName = App.Path & "\Elements\Element" & i & ".dat" f = FreeFile Open FileName For Binary As #f Get #f, , Element(i) Close #f DoEvents Next End Sub It highlighted this. Element(i) |
|
| Author: | William [ Fri Jun 15, 2007 7:38 pm ] |
| Post subject: | Re: Compile error help: |
I suggest you check how the Map rec is setup and such and learn how it works. |
|
| Author: | genusis [ Fri Jun 15, 2007 7:48 pm ] |
| Post subject: | Re: Compile error help: |
Thankx Fixed It know this is throwing an error: Code: Public Sub ElementEditorInit() frmElementEditor.txtName.Text = Trim(Element(EditorIndex - 1).Name) frmElementEditor.scrlStrong.Value = Element(EditorIndex - 1).Strong frmElementEditor.scrlWeak.Value = Element(EditorIndex - 1).Weak frmElementEditor.Show vbModal End Sub frmElementEditor.txtName.Text = Trim(Element(EditorIndex - 1).Name) frmElementEditor.txtName.Text =<object varible or block varible not set> thats what it says. |
|
| Author: | Lea [ Fri Jun 15, 2007 8:44 pm ] |
| Post subject: | Re: Compile error help: |
frmElementEditor.txtName.Text = Trim(Element(EditorIndex).Name) |
|
| Author: | genusis [ Fri Jun 15, 2007 8:46 pm ] |
| Post subject: | Re: Compile error help: |
These two problems are know fixed just the other ones which i don't have a clue about in the other post. Thanks DAVE! |
|
| Page 1 of 1 | All times are UTC |
| Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |
|