Douglas Farias Expert Licensed User Longtime User Jul 10, 2014 #1 HI i m using the kvs on my main to put this value my idsocial as string idsocial = 112847041627280480255 kv.Initialize(fp, "data") kv.PutSimple("idsocial",idsocial) Log(kv.GetSimple("redesocial")) = 1.12847e+20 why this ?
HI i m using the kvs on my main to put this value my idsocial as string idsocial = 112847041627280480255 kv.Initialize(fp, "data") kv.PutSimple("idsocial",idsocial) Log(kv.GetSimple("redesocial")) = 1.12847e+20 why this ?
M Mahares Expert Licensed User Longtime User Jul 10, 2014 #2 Try this Douglas, It should work for you. By the way, I hope you did not lose sleep over Brazil losing the match. Code: Copy Dim idsocial As String = "12847041627280480255" kv.Initialize(File.DirRootExternal, "data") kv.PutObject("idsocial",idsocial) Log(kv.GetObject("idsocial")) 'displays 12847041627280480255 Upvote 0
Try this Douglas, It should work for you. By the way, I hope you did not lose sleep over Brazil losing the match. Code: Copy Dim idsocial As String = "12847041627280480255" kv.Initialize(File.DirRootExternal, "data") kv.PutObject("idsocial",idsocial) Log(kv.GetObject("idsocial")) 'displays 12847041627280480255
Douglas Farias Expert Licensed User Longtime User Jul 10, 2014 #3 jajaja i dont like soccer xD I was rooting for any other team and not for Brazil. the Brazil this crap. and our president spending with world cup about the code i m using with last character c 12847041627280480255c < as string and now works *-* thx Upvote 0
jajaja i dont like soccer xD I was rooting for any other team and not for Brazil. the Brazil this crap. and our president spending with world cup about the code i m using with last character c 12847041627280480255c < as string and now works *-* thx
DonManfred Expert Licensed User Longtime User Jul 11, 2014 #4 Douglas Farias said: jajaja i dont like soccer xD I was rooting for any other team and not for Brazil. the Brazil this crap. and our president spending with world cup about the code i m using with last character c 12847041627280480255c < as string and now works *-* thx Click to expand... The problem is that the value 12847041627280480255 is interpreted in the log-command as an NUMBER which is too big so you get the result of 1.12847e+20 you dont need the c at the end... Try using putOBJECT to write this value OR create a string first and then read the value to this this string before you use log. Code: Copy idsocial = 112847041627280480255 kv.Initialize(fp, "data") kv.PutSimple("idsocial",idsocial) dim idsocial2 as string idsocial2 = kv.GetSimple("idsocial") ' ^^^^ In your code you have read the value with ' kv.GetSimple("redesocial") (probalby an other ' value which you expected. log(idsocial2) Last edited: Jul 11, 2014 Upvote 0
Douglas Farias said: jajaja i dont like soccer xD I was rooting for any other team and not for Brazil. the Brazil this crap. and our president spending with world cup about the code i m using with last character c 12847041627280480255c < as string and now works *-* thx Click to expand... The problem is that the value 12847041627280480255 is interpreted in the log-command as an NUMBER which is too big so you get the result of 1.12847e+20 you dont need the c at the end... Try using putOBJECT to write this value OR create a string first and then read the value to this this string before you use log. Code: Copy idsocial = 112847041627280480255 kv.Initialize(fp, "data") kv.PutSimple("idsocial",idsocial) dim idsocial2 as string idsocial2 = kv.GetSimple("idsocial") ' ^^^^ In your code you have read the value with ' kv.GetSimple("redesocial") (probalby an other ' value which you expected. log(idsocial2)