FORUMS PROFESSIONNELS
WINDEV
,
WEBDEV
et
WINDEV Mobile
Accueil
|
Messages récents
|
Connexion
|
Déconnexion
|
Français
Accueil
→
WINDEV Mobile 2024
→
Directory - Diretorios in Mobile SDCARD
Directory - Diretorios in Mobile SDCARD
Débuté par adrianoboller, 18 nov. 2014 13:54 - 1 réponse
Connectez-vous…
adrianoboller
#1
Membre enregistré
3 651 messages
Popularité : +175 (223 votes)
Posté le 18 novembre 2014 - 13:54
Procedure
DB_Diretorios
(
)
ok is
boolean
=
False
//Verifica
IF
InSimulatorMode
(
) =
False
THEN
gs
DirTempPhotos
=
gs
AppDir
+ [
"/"
] +
"VideosFotos/"
gs
ArquivosTXT
=
gs
AppDir
+ [
"/"
] +
"Arquivos/"
gs
AutorunPath
=
gs
AppDir
+ [
"/"
] +
"Arquivos/autorun.ini"
gs
AppDir
=
"/mnt/sdcard/TaxiFv/"
IF
fDirectoryExist
(
gs
AppDir
) =
False
THEN
ok
=
fMakeDir
(
gs
AppDir
)
END
IF
INIRead
(
"Camera"
,
"DiretorioRaiz"
,
""
,
gs
AutorunPath
) <
>
""
gs
AppDir
=
INIRead
(
"Camera"
,
"DiretorioRaiz"
,
""
,
gs
AutorunPath
)
END
IF
fDirectoryExist
(
gs
AppDir
) =
False
THEN
ok
=
fMakeDir
(
gs
AppDir
)
END
IF
fDirectoryExist
(
gs
AppDir
) =
False
AND
INIRead
(
"Camera"
,
"DiretorioRaiz"
,
""
,
gs
AutorunPath
) =
""
gs
AppDir
=
"/mnt/sdcard/TaxiFv/"
fMakeDir
(
gs
AppDir
)
END
IF
gs
AppDir
=
""
gs
AppDir
=
"/sdcard/TaxiFv/"
fMakeDir
(
gs
AppDir
)
END
IF
fDirectoryExist
(
gs
DirTempPhotos
) =
False
THEN
ok
=
fMakeDir
(
gs
DirTempPhotos
)
IF
ok
=
False
THEN
gs
DirTempPhotos
=
gs
AppDir
+ [
"/"
] +
"VideosFotos/"
fMakeDir
(
gs
DirTempPhotos
)
END
END
IF
fDirectoryExist
(
gs
AppDir
+ [
"/"
] +
"Arquivos/"
) =
False
THEN
ok
=
fMakeDir
(
gs
AppDir
+ [
"/"
] +
"Arquivos/"
)
END
IF
fDirectoryExist
(
gs
AppDir
+ [
"/"
] +
"Agenda/"
) =
False
THEN
ok
=
fMakeDir
(
gs
AppDir
+ [
"/"
] +
"Agenda/"
)
END
IF
fDirectoryExist
(
gs
AppDir
+ [
"/"
] +
"Install/"
) =
False
THEN
ok
=
fMakeDir
(
gs
AppDir
+ [
"/"
] +
"Install/"
)
END
IF
NOT
fDirectoryExist
(
gs
AppDir
)
THEN
fMakeDir
(
gs
AppDir
)
END
DirDb is
string
=
gs
AppDir
+ [
"/"
] +
"DB/"
IF
NOT
fDirectoryExist
(
DirDb
)
THEN
fMakeDir
(
DirDb
)
END
Arquivos is
string
=
gs
AppDir
+ [
"/"
] +
"Arquivos/"
IF
NOT
fDirectoryExist
(
Arquivos
)
THEN
fMakeDir
(
Arquivos
)
END
Notas is
string
=
gs
AppDir
+ [
"/"
] +
"Notas/"
IF
NOT
fDirectoryExist
(
Notas
)
THEN
fMakeDir
(
Notas
)
END
VideosFotos is
string
=
gs
AppDir
+ [
"/"
] +
"VideosFotos/"
IF
NOT
fDirectoryExist
(
VideosFotos
)
THEN
fMakeDir
(
VideosFotos
)
END
backup is
string
=
gs
AppDir
+ [
"/"
] +
"Backup/"
IF
NOT
fDirectoryExist
(
backup
)
THEN
fMakeDir
(
backup
)
END
Temprestore is
string
=
gs
AppDir
+ [
"/"
] +
"Restore/"
IF
NOT
fDirectoryExist
(
Temprestore
)
THEN
fMakeDir
(
Temprestore
)
END
ELSE
gs
AppDir
=
"c:\Temp"
gs
DirTempPhotos
=
"c:\Temp\VideosFotos"
gs
ArquivosTXT
=
"c:\Temp\Arquivos"
gs
AutorunPath
=
"c:\Temp\Arquivos\autorun.ini"
Dirarq is
string
=
"c:\Temp\Arquivos"
IF
NOT
fDirectoryExist
(
Dirarq
)
THEN
fMakeDir
(
Dirarq
)
END
DirDbs is
string
=
"c:\Temp\DB\"
IF
NOT
fDirectoryExist
(
DirDbs
)
THEN
fMakeDir
(
DirDbs
)
END
Dirvf is
string
=
"c:\Temp\VideosFotos"
IF
NOT
fDirectoryExist
(
Dirvf
)
THEN
fMakeDir
(
Dirvf
)
END
Dirnotas is
string
=
"c:\Temp\Notas"
IF
NOT
fDirectoryExist
(
Dirnotas
)
THEN
fMakeDir
(
Dirnotas
)
END
Dirbkp is
string
=
"c:\Temp\Backup"
IF
NOT
fDirectoryExist
(
Dirbkp
)
THEN
fMakeDir
(
Dirbkp
)
END
Dirres is
string
=
"c:\Temp\Restore"
IF
NOT
fDirectoryExist
(
Dirres
)
THEN
fMakeDir
(
Dirres
)
END
END
Signaler
0
0
BOLLER
#2
Membre enregistré
3 651 messages
Popularité : +175 (223 votes)
Posté le 14 novembre 2016 - 12:25
Dear,
If you do not attach the .fic files in the project root to Others, the base is created empty.
This applies not only to database, but also to images and .jar files or third-party SDK libraries as bluetooth printers.
If you do not call there in "others" that is a little above Analysis and below procedures, it will remain as empty null tables.
I hope you understood my explanation.
Click on other, search the .fic and ok
If you want to put .fic files in another location on the sdcard, it is also possible with this link:
http://forum.pcsoft.fr/fr-FR/pcsoft.us.windevmobile/596-directory-diretorios-mobile-sdcard/read.awp
Connection =
http://help.windev.com/en-US/…
HCreationIfNotFound =
http://help.windev.com/en-US/…
Simple like that, strong hug.
==
Prezados,
Se voce nao anexar em Others os arquivos .fic na raiz do projeto, a base é criada vazia.
Isso vale não só para base de dados, mas tambem para imagens e arquivos .jar ou blibliotecas SDK de terceiros como impressoras bluetooth.
Se não ligar ali em "others" que fica um pouco acima da Analysis e abaixo de procedures, vai ficar como tabelas nulas, vazias.
Espero que tenha entendido a minha explicação.
Clica em other, busca os .fic e ok
Caso queira colocar os arquivos .fic em outro local do sdcard tambem é possivel com esse link:
http://forum.pcsoft.fr/fr-FR/pcsoft.us.windevmobile/596-directory-diretorios-mobile-sdcard/read.awp
Connection =
http://help.windev.com/en-US/…
HCreationIfNotFound =
http://help.windev.com/en-US/…
Simples assim, forte abraço.
--
Adriano José Boller
______________________________________________
Consultor e Representante Oficial da
PcSoft no Brasil
+55 (41) 9949 1800
adrianoboller@gmail.com
skype: adrianoboller
http://wxinformatica.com.br/
Message modifié, 14 novembre 2016 - 12:26
Signaler
0
0
→ Revenir à WINDEV Mobile 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (précédentes versions)
Français
English
Español
Portuguesa
Fermer cette fenêtre
Type de recherche
Uniquement les sujets
Tous les messages
Période de recherche
Date indifférente
Moins d'une heure
Moins de 24 heures
Moins d'une semaine
Moins d'un mois
Moins d'un an
Annuler
Aperçu de votre message
Ajouter une image
Importer une image depuis une URL
Envoyer une image depuis un fichier de votre disque
Déposez ici un fichier ou cliquez sur "Parcourir..."
ou
Annuler
0%
WLangage
SQL
XML, HTML
JAVA, Javascript
Texte