Problem with pointers
Posted: Tue Jan 31, 2023 8:51 pm
Hi im recently using pointers to have more efficient code in my app and im finding some weird behaviours that i cant explain, maybe im making any kind of beginner error as pointers is a thing i dont use very often
I have this code
And the log is returning the following
pointer value pre
assets/007-Swamp01.png
105553140510020
pointer value post
뺭
105553140510020
pointer value
뺭
Why is this happening? the pointer imageFiles()\origURLp = @globalListMaps()\fileURL
Any ideas? many thanks!
I have this code
Code: Select all
SelectElement(imageFiles(),globalListMaps()\fileData)
Debug "pointer value pre"
Debug PeekS(imageFiles()\origURLp)
Debug imageFiles()\origURLp
RenameFile(globalProjectDirectory+globalListMaps()\fileURL,globalProjectDirectory+urltopaste+"/"+globalListMaps()\file)
globalListMaps()\fileURL = urltopaste+"/"+globalListMaps()\file
globalListMaps()\folderURL = urltopaste+"/"
urlNew = urltopaste+"/"+globalListMaps()\file
Debug "pointer value post"
Debug PeekS(imageFiles()\origURLp)
Debug imageFiles()\origURLp
pointer value pre
assets/007-Swamp01.png
105553140510020
pointer value post
뺭
105553140510020
pointer value
뺭
Why is this happening? the pointer imageFiles()\origURLp = @globalListMaps()\fileURL
Any ideas? many thanks!