English
Source / code snippets

Reading reading Hilong class Lolong Makequad Quadint structure

 

Jörg
Sellmeyer

CompileMarkSeparation
Proc HiLong

    Parameters  Quad Zahl
    Return Zahl  >> 16

EndProc

Proc LoLong

    Parameters  Quad Zahl
    Return Zahl & $FFFF

EndProc

Proc MakeQuad

    Parameters LHi&,LLo&
    Return (LHi& << 16) | LLo&

EndProc

Struct Test = F!,L1&,L2&,S$(8)
Declare Quad q,B#
q = $FFFFFFFF
Dim B#,Test

With B#

    .F! = q
    .S$ = Hex$(q)
    .L1& = HiLong(q)
    .L2& = LoLong(q)
    Print SizeOf(.F!),SizeOf(.L1&),SizeOf(.L2&),SizeOf(.S$)
    Print .F!,.L1&,.L2&,.S$
    Print "Rückgabe aus Float:    ",Int(.F!)
    Print "Rückgabe aus zwei Long:",MakeQuad(.L1&,.L2&)
    Print "Rückgabe aus String:   ",Val("$" + .S$)

EndWith

WaitInput
 
Windows XP SP2 XProfan X4
... und hier mal was ganz anderes als Profan ...
03/06/12  
 



Zum Quelltext


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

4.070 Views

Untitledvor 0 min.
Walter01/13/23
Member 891870711/16/21
ByteAttack12/02/18
Wilfried05/24/16
More...

Themeninformationen

this Topic has 1 subscriber:

Jörg Sellmeyer (1x)


Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie