Handel - Polecenia > Inne polecenia HM > CurrentMag - polecenie

Drukuj

CurrentMag - polecenie hmp

Polecenie odczytuje identyfikator magazynu ustawionego aktualnie jako bieżący.

 

Polecenie działa tylko w programie Handel.

 

Składnia

Long CurrentMag ( )

 

Argumenty

Brak.

 

Wartość zwracana

Identyfikator magazynu ustawionego jako bieżący.

 

Przykład

//Wykonanie polecenia
Long mg = CurrentMag()
//Wyświetlenie okna dialogowego z informacją o magazynie
Form "Wynik użycia polecenia CurrentMag", 400, 200
Ground 0,255,0
Button "O&K", 150, 120, 100, 24, -1
Edit "Bieżący magazyn nosi identyfikator:", mg, 250, 50, 40, 20
ExecForm
NoOutput()