Hi, Andrew. Thanks for your advice. The application has been developed in 2002 and successfully run on ArcPad 6 and 7. Unfortunately, it appears abnormally in ArcPad 10.0.2 (PC Version only). I just want to know whether it is a bug of ArcPad. If affirmative, I do not have to waste my time to refine the program codes.I observed that it appears on combobox that all items have no alpha char. If I added an item with alpha char, the combobox showed correct value.SCProgram codes:******************************************************Sub SetComboBox(objCtr, mValue, mFieldName, mSQL, mBlank)Dim condb Dim objRSDim mCountDim mListIndexDim mDataSet condb = CreateObject(gtxtConnection)condb.ConnectionString = gstrConncondb.OpenSet objRS = CreateObject(gtxtRecordset)objRS.Open mSQL, condb, 1mCount = 0mListIndex = -1mValue = Trim(DefVal(mValue, ""))If mValue = mBlank Then mListIndex = 0Call objCtr.ClearCall objCtr.AddItem(mBlank, mBlank)Do While (Not objRS.EOF) mCount = mCount + 1 mData = Trim(DefVal_Str(objRS.Fields(mFieldName).Value, mBlank)) If (mListIndex < 0) And (mValue = mData) Then mListIndex = mCount Call objCtr.AddItem(mData, mData) objRS.MoveNextLoop If (mListIndex < 0) And (mValue <> mBlank) Then Call objCtr.AddItem(mValue, mValue) mListIndex = mCount + 1End IfobjCtr.ListIndex = mListIndexobjCtr.Value = mValueobjRS.CloseSet condb = NothingSet objRS = NothingEnd Sub******************************************************
I am adding the following information to the Combo Box of a Form using additem on ArcPad 10 and set the objCtr.ListIndex = 17objCtr.Value = �??1100 �?? 1730�?�In WM6.5, it shows a correct value of �??1100 �?? 1730�?� onscreen, however the PC version shows a value of �??1300 �?? 2000�?�.For those Combo Boxes with alpha elements, it shows correctly in both PC and WM. Also, the VBS codes have been executed by ArcPad 6 and 7 and no problem occurred.How can I solve the problem in ArcPad 10?Elements--------------blank 00800 - 1515 10815 - 1515 20900 - 1200 30900 - 1230 40900 - 1530 50900 - 1600 60900 - 1600 70900 - 1615 80900 - 1700 90915 - 1600 100930 - 1130 110930 - 1530 120930 - 1600 131000 - 1130 141030 - 1730 151045 - 1430 161100 - 1730 171300 - 2000 181300 - 2000 191300 - 2015 20--------------_________SC Wong
Los miembros registrados pueden publicar, seguir actualizaciones y más. ¿Nuevo aquí? Regístrate gratis.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.