Announcement

Collapse
No announcement yet.

Flexibility formatted input & output for DOS

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Flexibility formatted input & output for DOS

    Hi Bob Zale,

    I will see more advanced, powered en flexibility formated input and
    output routines like this used in C.
    I give an Example:

    FUNCTION PBFInput
    ("[%<datatype>],_
    <variabels> )

    FUNCTION PBFPrint
    ("[%<datatype>],_
    [strings],_
    [chr$<escape_sequences>]",
    <variabels> )

    ==> %<datatype><pos>.<precision>

    Datatypes in PB:

    %? or %BYTE
    %% or %INTEGER
    %@ or %PTR
    %& or %LONG
    %&& or %QUAD
    %?? or %WORD
    %??? or %DWORD
    %! or %SINGLE
    %# or %DOUBLE
    %## or %EXT
    %@ or %CURRENCY
    %@@ or %CUX
    %$ or %STRING
    %ASCIIZ

    Is it posibble that are extended libraries for the powerbasic compilers
    PBL with the most used I/0 functions and others like C used static
    libraries.

    I will see the keyword : #DEFINE for defining constants and
    creeting macros

    EXAMPLE:

    #DEFINE PI 3.141592

    I will so also indexed string like C.
    DIM a AS CHAR

    Greetings,
    Stephane




    ------------------
Working...
X