PROFESSIONAL NEWSGROUPS
WINDEV
,
WEBDEV
and
WINDEV Mobile
Home
|
Recent messages
|
Connect
|
Sign out
|
English
Home
→
WINDEV 2024
→
WM22 HreadseekFirst not working on Android 6.0
WM22 HreadseekFirst not working on Android 6.0
Started by DW, Mar., 20 2018 3:44 PM - 1 reply
Connect yourself…
DW
#1
Posted on March, 20 2018 - 3:44 PM
Hello All,
I am sure I am doing something wrong but when I call hReadSeekfirst(Items,Barcode,sScanCode)
I get nothing reruns false.
changing that field type from string to Numeric it works.
The original field type was string 24 (Not Unicode) indexed
DW
Report
0
0
Fabrice Harari
#2
Posted on March, 20 2018 - 4:19 PM
Hi Dennis,
it COULD be (nees testing) that the key was an ANSI string, and the sscancode a unicode one...
you can try by doing a unicodetoansi(sscancode) in your hreadseekfirst.
I find it a good idea to always declare my string EXPLICITELY and prefix them accordingly...
so instead of doing
sScanCode is string
I do
usScanCode is unicode string
or
asScanCode is ansi string
And I do the same thing for the items in the DB...
this way, if end up doing hReadSeekfirst(Items,asBarcode,usScanCode), I can easily see that I may have a type of variable problem.
This is particularly usefull when you share code between mobile and web/windows, where one default is unicode and the other is ansi. Relying on the default type becomes a VERY bad idea.
Best regards
Report
0
0
→ Go back to WINDEV 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (earlier versions)
Français
English
Español
Portuguesa
Close this window
Search type
Only topics
All the messages
Search period
Any time
Past hour
Past 24 hours
Past week
Past month
Past year
Cancel
Preview of your message
Adding an image
Import an image from a URL
Send an image from a file of your disk
Drop a file or click "Browse..."
or
Cancel
0%
WLanguage
SQL
XML, HTML
JAVA, Javascript
Text