Search found 493 matches

by MystikShadows
Sep 10, 2020 15:33
Forum: General
Topic: USER TYPE ISSUE
Replies: 12
Views: 1959

Re: USER TYPE ISSUE

FleetSShips and FleetShips are different. Sorry me and my 2x4s i call my fingers are typing all kinds of hell. lol for the heck of it I opened it up in FBEDIT I can see the autocomplete shows me the items fine for workShip but still the same error occurs. somehow I can't assign workship to fleetshi...
by MystikShadows
Sep 10, 2020 15:17
Forum: General
Topic: USER TYPE ISSUE
Replies: 12
Views: 1959

Re: USER TYPE ISSUE

in typemodule.bi i have : TYPE ShipData ShipID AS long ShipTypeID as Long ShipClassID As Long ShipCallSign AS String * 40 UAPShipRegistryNumber AS String * 20 Location AS AstrometricPosition Position As SensoryPosition ShipWidth As Double ShipHeight AS Double ShipDepth AS Double ShipWeight As Double...
by MystikShadows
Sep 10, 2020 14:19
Forum: General
Topic: USER TYPE ISSUE
Replies: 12
Views: 1959

Re: USER TYPE ISSUE

winFBE Version 2.1.7 which i believe is the last version available. Bot only does it not save the type to update the autocomplete, but it does give it the type either during compilation. The executable doesn't work either.though it compiles without any warning or issue with the type. just seems to s...
by MystikShadows
Sep 09, 2020 19:51
Forum: General
Topic: USER TYPE ISSUE
Replies: 12
Views: 1959

USER TYPE ISSUE

In case it might help Ship data is a TYPE/END TYPE structure declared in a separate module. I declare these two in fhe sane sub name. DIM WorkShip AS ShipData REDIM PRESERVE FleetShips(460) AS ShipData REDIM PRESERVE cause I have FleetShips earlier as a DIM SHARED FleetShips() as ShipData it's not r...
by MystikShadows
Sep 09, 2020 19:03
Forum: General
Topic: READ/DATA statements limits
Replies: 2
Views: 687

Re: READ/DATA statements limits

Oh Damnit, I've been in data statements way too long...lol I just didn't see that. thanks.
by MystikShadows
Sep 09, 2020 18:22
Forum: General
Topic: READ/DATA statements limits
Replies: 2
Views: 687

READ/DATA statements limits

i have these 10 lines of data statement: Data 1, 1, 1, "UAP Analyst", "XTS-1023", 40, 2500, 500, 2400, 25000, 16, 4, 19, 22, 23, 100, 100, 100, 100, 100, 100, 4, 16, "Procyon Lazers", 100, "Phaser Banks", 100, "Deflector Array" 100, "Polarized H...
by MystikShadows
Dec 18, 2019 3:11
Forum: General
Topic: Writing Data to File Requires Two Attempts
Replies: 6
Views: 1158

Re: Writing Data to File Requires Two Attempts

i bet you it work if you on have your second open statement. like: do If Inkey <> "" Then Exit Do 'press any key to terminate program early GET_DATA3(Samples) PLOT1 DELAY_INTERVAL if elapsedtime >= DT then exit do 'loop until MultiKey(FB.SC_ESCAPE) 'didn't get the hang of how to use these ...
by MystikShadows
Dec 18, 2019 2:35
Forum: General
Topic: Profile Shows what is a picture but I can't change it.
Replies: 1
Views: 742

Profile Shows what is a picture but I can't change it.

when you go to my profile it tells me my picture is "THIS IMAGE" but nothing seems to allow me to change it. how can i change it?
by MystikShadows
Dec 18, 2019 2:12
Forum: General
Topic: FB OOP Inheritence
Replies: 12
Views: 2073

Re: FB OOP Inheritence

paul doe wrote:@MystikShadows: why don't you try with a header guard, like this?

Code: Select all

#ifndef __WHATEVER_BASEITEMCLASS__
#define __WHATEVER_BASEITEMCLASS__

/'
  Code for the BaseItemClass here
'/

#endif
I get the same results.
by MystikShadows
Dec 17, 2019 23:59
Forum: General
Topic: FB OOP Inheritence
Replies: 12
Views: 2073

Re: FB OOP Inheritence

I assume that your 2 modules are compiled as 2 separate files (and not one included in the other). So, only the declarations of the base type (Type BaseItem ... End Type) must be duplicated in the two modules, not the definitions of the procedures. To the best of my knowledge no. BaseItemClass.bi i...
by MystikShadows
Dec 17, 2019 22:17
Forum: General
Topic: FB OOP Inheritence
Replies: 12
Views: 2073

Re: FB OOP Inheritence

BaseItemClass: TYPE BaseItemClass EXTENDS Object Private: iUserID AS INTEGER iItemID as integer iParentID AS INTEGER iItemTypeID AS INTEGER sItemName as sTRING * 60 sDescription AS STRING * 80 iRelatedID AS INTEGER sDateCreated as STRING * 11 sTimeCreated AS STRING * 11 iIsGrouping AS INTEGER iIsAct...
by MystikShadows
Dec 17, 2019 22:08
Forum: General
Topic: FB OOP Inheritence
Replies: 12
Views: 2073

Re: FB OOP Inheritence

I'm trying that right now. and gives me the same warning whether I put it there or not. duplicate definitions of Base Item. or identifier expectedf BaseItem found. That's true whether BaseItem Extends Object of not.
by MystikShadows
Dec 17, 2019 21:40
Forum: General
Topic: FB OOP Inheritence
Replies: 12
Views: 2073

FB OOP Inheritence

OK It's probably been asked before. But How do I inherit? Scenario. BaseItem is a class in it's own module. contactItem is a baseItem I want to inherit from .. it has it's own module as well. how to I make that work? if i include once the baseitem I get messaged that multiple declarations exist. if ...
by MystikShadows
Nov 14, 2019 1:53
Forum: General
Topic: To Paul Squires
Replies: 5
Views: 1191

Re: To Paul Squires

Hi Imortis :) good to be back, but it's not because I haven't been posting that I wasn't still playing with freebasic lol.
by MystikShadows
Nov 13, 2019 16:27
Forum: General
Topic: To Paul Squires
Replies: 5
Views: 1191

Re: To Paul Squires

Thank you Deltaror,

God knows how often I've done the same thing. lol