Diese Seite mit anderen teilen ...

Informationen zum Thema:
Forum:
WinDev Forum
Beiträge im Thema:
1
Erster Beitrag:
vor 6 Jahren
Beteiligte Autoren:
cccict

windev mobile files & reading files from web site

Startbeitrag von cccict am 26.03.2012 09:09

Hi all

I am completly new to windev, webdev & windev mobile and would appreciate some help on a few things to do with files. I have completed my first windev mobile android project but now need to get it to work on my mobile. I use text files to read/write data but they are refered to using full windows paths in the simulation. What paths should I be using for Android?

27th March 2011 - Update

I have not managed to resolve this part yet!

RC_pfile is string = "C:\My Mobile Projects\Recycling\win_rc_main.txt"
RC_pcdfile is string = "C:\My Mobile Projects\Recycling\cpcodes.csv"


27th March 2011 - Update
Reading Files From Web Site - WinDev Mobile - Resolved

I have found a way to do this. properly, I've used dots (.) instead of spaces as the editor seems to remove them on the posts/

IF InTestMode() THEN
........//Depends on your firewalls but I would recommend using Proxy function
........Proxy("corpproxy",80,"[username]","[password]")
END

//HTM_WEB is an HTML Contol on the page with visibility set to false
RC_pcdmfile is string = "http://samplewebsite.co.uk/cpcodes.csv";
RC_pcdmfile2 is string = "http://samplewebsite.co.uk/cpcodes.html";
ResStart is boolean
RS_HttpError is string = ""

ResStart = HTTPRequest(RC_pcdmfile)

IF ResStart = True THEN
........RC_htmel = HTTPGetResult()
........ IF Length(RC_htmel) = 0 THEN
................RS_HttpError = HTTPGetResult(httpHeader)
................ Error(RS_HttpError)
........ END
ELSE
.........//Only if HTTPRequest Fails
.........//Please note this has to be an HTML file only is cannot be a csv
.........HTM_WEB = RC_pcdmfile2
.........//The info is required to refresh the display and populate HTM_WEB
.........info("Click to Start Service")
.........// HTM_WEB is an HTML control on the main page with visibility set to false
.........RC_htmel = HTM_WEB..DisplayedValue
.........// Finally got the contents
.........Info(RC_htmel)
END

Your help would still be really appreciated on how to sort out the first part (paths on android).

Antworten:

Zur Information:
MySnip.de hat keinen Einfluss auf die Inhalte der Beiträge. Bitte kontaktieren Sie den Administrator des Forums bei Problemen oder Löschforderungen über die Kontaktseite.
Falls die Kontaktaufnahme mit dem Administrator des Forums fehlschlägt, kontaktieren Sie uns bitte über die in unserem Impressum angegebenen Daten.