Forum > General

How to rewrite this type example ?

(1/5) > >>

Re-searcher:
Hi everyone,

Congratulations to the designer for creating this Visual IDE and FPC

I am translating a program from basic to Laz/FPC but have the following problem.
The program does not know this example with type.
Have an error by compiling.
How can I rewrite this now?

Type ConstMeta
  Value As String
  Startup As String
End Type

With best regards,
Erik

MarkMLl:
Not knowing BASIC, but surely that's just a simple record containing two strings?

MarkMLl

Re-searcher:
Thanks MarkMLl for the quick response

the language was FreeBasic.

Erik

lucamar:
If that type is the FreeBASIC one then yes, it's (more or less) the equivalent of a Pascal record:


--- Code: Pascal  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---type  ConstMeta = record    Value: String;    Startup: String;  end;

Re-searcher:
Thanks lucamar for your answer.

The program was for programming PIC and AVR MCU's
But has no IDE for Linux , only for Windows.
It is gcbasic and made in FreeBasic
gcbasic has new keywords.
http://gcbasic.sourceforge.net/Typesetter/index.php/Home

Freebasic has no IDE and no designer like Lazarus in Linux.
Geany has an IDE but no designer.

I want to create a program with the designer and communicate with the PIC or AVR MCU (Microcontroller)
https://en.wikipedia.org/wiki/Microcontroller

With kind regards,
Erik

Navigation

[0] Message Index

[#] Next page

Go to full version