PC SOFT

GRUPOS DE DISCUSSÃO PROFISSIONAL
WINDEVWEBDEV e WINDEV Mobile

Inicio → WINDEV Mobile 2024 → How to save Picture on Ios
How to save Picture on Ios
Iniciado por Nicu, jan., 25 2017 10:15 AM - 2 respostas
Publicado em janeiro, 25 2017 - 10:15 AM
Hello, I use Windev mobile 18
This is not working on IOS
Can anyone tell me how i can use camera to capture picture on IOS?

sPhoto is string
sPhoto = VideoStartApp(viPictureCapture)
IF sPhoto <> "" THEN
Info("Photo saved in the file " + sPhoto)
END
Membro registado
19 mensagems
Popularité : +1 (1 vote)
Publicado em fevereiro, 01 2017 - 9:35 AM
http://doc.windev.com/en-US/…

nRecordingType is int

// Let the user choose the type of capture
IF Dialog("Do you want to save an image or a video?", ["An image", ...
"A video"], 1, 2, dlgIconQuestion) = 1 THEN
nRecordingType = viPictureCapture
ELSE
nRecordingType = viVideoCapture
END

// Starts the application
VideoStartApp(nRecordingType, CB_VideoStartApp)

INTERNAL Procedure CB_VideoStartApp(sPath is string)

// If the return is an empty string vide (""), an error occurred
IF sPath ~= "" THEN
Error(ErrorInfo())
RETURN
END

// Message for end of recording
Info("The file was saved here: " + sPath)
Membro registado
19 mensagems
Popularité : +1 (1 vote)
Publicado em fevereiro, 01 2017 - 11:50 AM
Hm you use WM18, sorry